[−][src]Struct game::app::App
The top-level data that lasts through the entire game, no matter what state the game is in.
Fields
primary: PerMap
cs: ColorScheme
opts: Options
per_obj: PerObjectActions
session: SessionState
Static data that lasts the entire session. Use sparingly.
Implementations
impl App
[src]
pub fn has_prebaked(&self) -> Option<(&MapName, &String)>
[src]
pub fn prebaked(&self) -> &Analytics
[src]
pub fn set_prebaked(&mut self, prebaked: Option<(MapName, String, Analytics)>)
[src]
pub fn draw(
&self,
g: &mut GfxCtx<'_>,
opts: DrawOptions,
show_objs: &dyn ShowObject
)
[src]
&self,
g: &mut GfxCtx<'_>,
opts: DrawOptions,
show_objs: &dyn ShowObject
)
pub fn recalculate_current_selection(&mut self, ctx: &EventCtx<'_>)
[src]
Assumes some defaults.
pub fn mouseover_unzoomed_roads_and_intersections(
&self,
ctx: &EventCtx<'_>
) -> Option<ID>
[src]
&self,
ctx: &EventCtx<'_>
) -> Option<ID>
pub fn mouseover_unzoomed_intersections(&self, ctx: &EventCtx<'_>) -> Option<ID>
[src]
pub fn mouseover_unzoomed_buildings(&self, ctx: &EventCtx<'_>) -> Option<ID>
[src]
pub fn mouseover_unzoomed_everything(&self, ctx: &EventCtx<'_>) -> Option<ID>
[src]
pub fn mouseover_debug_mode(
&self,
ctx: &EventCtx<'_>,
show_objs: &dyn ShowObject
) -> Option<ID>
[src]
&self,
ctx: &EventCtx<'_>,
show_objs: &dyn ShowObject
) -> Option<ID>
fn calculate_current_selection(
&self,
ctx: &EventCtx<'_>,
show_objs: &dyn ShowObject,
debug_mode: bool,
unzoomed_roads_and_intersections: bool,
unzoomed_buildings: bool
) -> Option<ID>
[src]
&self,
ctx: &EventCtx<'_>,
show_objs: &dyn ShowObject,
debug_mode: bool,
unzoomed_roads_and_intersections: bool,
unzoomed_buildings: bool
) -> Option<ID>
fn get_renderables_back_to_front<'a>(
&'a self,
bounds: Bounds,
prerender: &Prerender,
agents: &'a mut AgentCache,
show_objs: &dyn ShowObject
) -> Vec<&'a (dyn Renderable + 'a)>
[src]
&'a self,
bounds: Bounds,
prerender: &Prerender,
agents: &'a mut AgentCache,
show_objs: &dyn ShowObject
) -> Vec<&'a (dyn Renderable + 'a)>
pub fn clear_everything(&mut self, ctx: &mut EventCtx<'_>)
[src]
Ensure the map edits are blank, reset the simulation, and blank out prebaked results.
impl App
[src]
pub fn click_on_intersection<S: Into<String>>(
&mut self,
ctx: &mut EventCtx<'_>,
label: S
) -> Option<IntersectionID>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
label: S
) -> Option<IntersectionID>
If an intersection was clicked, return its ID.
pub fn click_on_lane<S: Into<String>>(
&mut self,
ctx: &mut EventCtx<'_>,
label: S
) -> Option<LaneID>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
label: S
) -> Option<LaneID>
If a lane was clicked, return its ID.
Trait Implementations
impl AppLike for App
[src]
fn map(&self) -> &Map
[src]
fn sim(&self) -> &Sim
[src]
fn cs(&self) -> &ColorScheme
[src]
fn mut_cs(&mut self) -> &mut ColorScheme
[src]
fn draw_map(&self) -> &DrawMap
[src]
fn mut_draw_map(&mut self) -> &mut DrawMap
[src]
fn opts(&self) -> &Options
[src]
fn mut_opts(&mut self) -> &mut Options
[src]
fn map_switched(
&mut self,
ctx: &mut EventCtx<'_>,
map: Map,
timer: &mut Timer<'_>
)
[src]
&mut self,
ctx: &mut EventCtx<'_>,
map: Map,
timer: &mut Timer<'_>
)
fn draw_with_opts(&self, g: &mut GfxCtx<'_>, opts: DrawOptions)
[src]
fn make_warper(
&mut self,
ctx: &EventCtx<'_>,
pt: Pt2D,
target_cam_zoom: Option<f64>,
id: Option<ID>
) -> Box<dyn State<App>>
[src]
&mut self,
ctx: &EventCtx<'_>,
pt: Pt2D,
target_cam_zoom: Option<f64>,
id: Option<ID>
) -> Box<dyn State<App>>
fn sim_time(&self) -> Time
[src]
fn current_stage_and_remaining_time(
&self,
id: IntersectionID
) -> (usize, Duration)
[src]
&self,
id: IntersectionID
) -> (usize, Duration)
fn change_color_scheme(
&mut self,
ctx: &mut EventCtx<'_>,
cs: ColorSchemeChoice
) -> bool
[src]
&mut self,
ctx: &mut EventCtx<'_>,
cs: ColorSchemeChoice
) -> bool
impl MinimapControls<App> for MinimapController
[src]
fn has_zorder(&self, app: &App) -> bool
[src]
fn has_layer(&self, app: &App) -> bool
[src]
fn draw_extra(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn make_unzoomed_panel(&self, ctx: &mut EventCtx<'_>, app: &App) -> Panel
[src]
fn make_legend(&self, ctx: &mut EventCtx<'_>, app: &App) -> Widget
[src]
fn make_zoomed_side_panel(&self, ctx: &mut EventCtx<'_>, app: &App) -> Widget
[src]
fn panel_clicked(
&self,
ctx: &mut EventCtx<'_>,
app: &mut App,
action: &str
) -> Option<Transition<App>>
[src]
&self,
ctx: &mut EventCtx<'_>,
app: &mut App,
action: &str
) -> Option<Transition<App>>
fn panel_changed(&self, _: &mut EventCtx<'_>, app: &mut App, panel: &Panel)
[src]
impl SharedAppState for App
[src]
fn before_event(&mut self)
[src]
fn draw_default(&self, g: &mut GfxCtx<'_>)
[src]
fn dump_before_abort(&self, canvas: &Canvas)
[src]
fn before_quit(&self, canvas: &Canvas)
[src]
impl SimpleState<App> for LaneEditor
[src]
fn on_click(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
fn panel_changed(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
panel: &Panel
) -> Option<Transition<App>>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
panel: &Panel
) -> Option<Transition<App>>
fn on_mouseover(&mut self, ctx: &mut EventCtx<'_>, app: &mut App)
[src]
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Transition<App>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
impl SimpleState<App> for StopSignEditor
[src]
fn on_click(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
fn on_mouseover(&mut self, ctx: &mut EventCtx<'_>, _: &mut App)
[src]
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Transition<App>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
fn draw_baselayer(&self) -> DrawBaselayer
impl SimpleState<App> for ChangeDuration
[src]
fn on_click(
&mut self,
_: &mut EventCtx<'_>,
_: &mut App,
x: &str,
panel: &Panel
) -> Transition<App>
[src]
&mut self,
_: &mut EventCtx<'_>,
_: &mut App,
x: &str,
panel: &Panel
) -> Transition<App>
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut App
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut App
) -> Transition<App>
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
fn on_mouseover(&mut self, &mut EventCtx<'_>, &mut A)
fn draw(&self, &mut GfxCtx<'_>, &A)
impl SimpleState<App> for ShowAbsolute
[src]
fn on_click(
&mut self,
_: &mut EventCtx<'_>,
_: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
[src]
&mut self,
_: &mut EventCtx<'_>,
_: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
fn on_mouseover(&mut self, ctx: &mut EventCtx<'_>, app: &mut App)
[src]
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Transition<App>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
fn draw_baselayer(&self) -> DrawBaselayer
impl SimpleState<App> for ShowRelative
[src]
fn on_click(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
fn on_mouseover(&mut self, ctx: &mut EventCtx<'_>, app: &mut App)
[src]
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Transition<App>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
fn draw_baselayer(&self) -> DrawBaselayer
impl SimpleState<App> for TuneRelative
[src]
fn on_click(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
panel: &Panel
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
panel: &Panel
) -> Transition<App>
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut App
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut App
) -> Transition<App>
fn draw(&self, g: &mut GfxCtx<'_>, _: &App)
[src]
fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
fn on_mouseover(&mut self, &mut EventCtx<'_>, &mut A)
fn draw_baselayer(&self) -> DrawBaselayer
impl SimpleState<App> for ChangeScenario
[src]
fn on_click(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
fn on_mouseover(&mut self, &mut EventCtx<'_>, &mut A)
fn other_event(&mut self, &mut EventCtx<'_>, &mut A) -> Transition<A>
fn draw_baselayer(&self) -> DrawBaselayer
impl SimpleState<App> for UberTurnPicker
[src]
fn on_click(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
fn on_mouseover(&mut self, ctx: &mut EventCtx<'_>, app: &mut App)
[src]
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App
) -> Transition<App>
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
fn draw_baselayer(&self) -> DrawBaselayer
impl SimpleState<App> for UberTurnViewer
[src]
fn on_click(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
fn panel_changed(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
panel: &Panel
) -> Option<Transition<App>>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
panel: &Panel
) -> Option<Transition<App>>
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut App
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut App
) -> Transition<App>
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_mouseover(&mut self, &mut EventCtx<'_>, &mut A)
impl SimpleState<App> for MergeIntersections
[src]
fn on_click(
&mut self,
_: &mut EventCtx<'_>,
_: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
[src]
&mut self,
_: &mut EventCtx<'_>,
_: &mut App,
x: &str,
_: &Panel
) -> Transition<App>
fn other_event(
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut App
) -> Transition<App>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
_: &mut App
) -> Transition<App>
fn draw(&self, g: &mut GfxCtx<'_>, _: &App)
[src]
fn panel_changed(
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
&mut self,
&mut EventCtx<'_>,
&mut A,
&Panel
) -> Option<Transition<A>>
fn on_mouseover(&mut self, &mut EventCtx<'_>, &mut A)
fn draw_baselayer(&self) -> DrawBaselayer
impl State<App> for CutscenePlayer
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for FYI
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, _: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for AllRoutesExplorer
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for DebugMode
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for ScreenshotTest
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, _: &mut GfxCtx<'_>, _: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for CollisionsViewer
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for PopularDestinations
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for ViewKML
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for PolygonEditor
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for ScenarioManager
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for StoryMapEditor
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for DevToolsMode
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for ChallengesPicker
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for BulkSelect
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for BulkEdit
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, _: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for ClusterTrafficSignalEditor
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, _: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for RouteEditor
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, _: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for SignalPicker
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for PreviewTrafficSignal
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, _: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for TrafficSignalEditor
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for ZoneEditor
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for EditMode
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for SaveEdits
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for Warping
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, _: &mut App) -> Transition<App>
[src]
fn draw(&self, _: &mut GfxCtx<'_>, _: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for LoadEdits
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for ConfirmDiscard
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, _: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for PickLayer
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for TitleScreen
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, _: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for MainMenu
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for About
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, _: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for Proposals
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for CommuterPatterns
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl<T: 'static, F: 'static, P: 'static + Fn(&mut EventCtx<'_>, &App, &Table<App, T, F>) -> Panel> State<App> for GenericTripTable<T, F, P>
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for ActiveTraffic
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for DebugWarp
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for TransitRoutes
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for TripSummaries
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for TrafficSignalDemand
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for AgentSpawner
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for EditScenarioModifiers
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for ChangeMode
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for FinalScore
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for TrafficRecorder
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for JumpToTime
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for JumpToDelay
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for Viewer
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for TimeWarpScreen
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, _: &mut EventCtx<'_>, app: &mut App)
[src]
impl State<App> for SandboxMode
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn on_destroy(&mut self, _: &mut EventCtx<'_>, app: &mut App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
impl State<App> for BackToMainMenu
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, _: &mut GfxCtx<'_>, _: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for SandboxLoader
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, _: &mut GfxCtx<'_>, _: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for Floodfiller
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for PathCounter
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for PolygonDebugger
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, _: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for RouteExplorer
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
Auto Trait Implementations
impl !RefUnwindSafe for App
impl !Send for App
impl !Sync for App
impl Unpin for App
impl !UnwindSafe for App
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,