[−][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 new(
flags: Flags,
opts: Options,
ctx: &mut EventCtx<'_>,
splash: bool
) -> App
[src]
flags: Flags,
opts: Options,
ctx: &mut EventCtx<'_>,
splash: bool
) -> App
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_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.
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 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 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 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 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 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 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 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 LaneEditor
[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 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 StopSignEditor
[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 ChangeDuration
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, _: &mut App) -> Transition<App>
[src]
fn draw(&self, g: &mut GfxCtx<'_>, _: &App)
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
impl State<App> for ShowAbsolute
[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 ShowRelative
[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 TuneRelative
[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 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 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 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 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 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<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 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 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 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 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 UberTurnPicker
[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 UberTurnViewer
[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 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 DebugMode
[src]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
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.
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.
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>,