mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-19 12:21:55 +03:00
355 lines
219 KiB
HTML
355 lines
219 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `App` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, App"><title>game::app::App - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct App</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.cs">cs</a><a href="#structfield.opts">opts</a><a href="#structfield.per_obj">per_obj</a><a href="#structfield.primary">primary</a><a href="#structfield.session">session</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.calculate_current_selection">calculate_current_selection</a><a href="#method.clear_everything">clear_everything</a><a href="#method.click_on_intersection">click_on_intersection</a><a href="#method.click_on_lane">click_on_lane</a><a href="#method.draw">draw</a><a href="#method.get_renderables_back_to_front">get_renderables_back_to_front</a><a href="#method.has_prebaked">has_prebaked</a><a href="#method.mouseover_debug_mode">mouseover_debug_mode</a><a href="#method.mouseover_unzoomed_buildings">mouseover_unzoomed_buildings</a><a href="#method.mouseover_unzoomed_everything">mouseover_unzoomed_everything</a><a href="#method.mouseover_unzoomed_intersections">mouseover_unzoomed_intersections</a><a href="#method.mouseover_unzoomed_roads_and_intersections">mouseover_unzoomed_roads_and_intersections</a><a href="#method.prebaked">prebaked</a><a href="#method.recalculate_current_selection">recalculate_current_selection</a><a href="#method.set_prebaked">set_prebaked</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-AppLike">AppLike</a><a href="#impl-MinimapControls%3CApp%3E">MinimapControls<App></a><a href="#impl-SharedAppState">SharedAppState</a><a href="#impl-SimpleState%3CApp%3E">SimpleState<App></a><a href="#impl-State%3CApp%3E">State<App></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">app</a></p><div id="sidebar-vars" data-name="App" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../index.html">game</a>::<wbr><a href="index.html">app</a>::<wbr><a class="struct" href="">App</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/app.rs.html#32-43" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct App {
|
||
pub primary: <a class="struct" href="../../game/app/struct.PerMap.html" title="struct game::app::PerMap">PerMap</a>,
|
||
pub cs: <a class="struct" href="../../map_gui/colors/struct.ColorScheme.html" title="struct map_gui::colors::ColorScheme">ColorScheme</a>,
|
||
pub opts: <a class="struct" href="../../map_gui/options/struct.Options.html" title="struct map_gui::options::Options">Options</a>,
|
||
pub per_obj: <a class="struct" href="../../game/app/struct.PerObjectActions.html" title="struct game::app::PerObjectActions">PerObjectActions</a>,
|
||
pub session: <a class="struct" href="../../game/app/struct.SessionState.html" title="struct game::app::SessionState">SessionState</a>,
|
||
}</pre></div><div class="docblock"><p>The top-level data that lasts through the entire game, no matter what state the game is in.</p>
|
||
</div><h2 id="fields" class="fields small-section-header">
|
||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.primary" class="structfield small-section-header"><a href="#structfield.primary" class="anchor field"></a><code>primary: <a class="struct" href="../../game/app/struct.PerMap.html" title="struct game::app::PerMap">PerMap</a></code></span><span id="structfield.cs" class="structfield small-section-header"><a href="#structfield.cs" class="anchor field"></a><code>cs: <a class="struct" href="../../map_gui/colors/struct.ColorScheme.html" title="struct map_gui::colors::ColorScheme">ColorScheme</a></code></span><span id="structfield.opts" class="structfield small-section-header"><a href="#structfield.opts" class="anchor field"></a><code>opts: <a class="struct" href="../../map_gui/options/struct.Options.html" title="struct map_gui::options::Options">Options</a></code></span><span id="structfield.per_obj" class="structfield small-section-header"><a href="#structfield.per_obj" class="anchor field"></a><code>per_obj: <a class="struct" href="../../game/app/struct.PerObjectActions.html" title="struct game::app::PerObjectActions">PerObjectActions</a></code></span><span id="structfield.session" class="structfield small-section-header"><a href="#structfield.session" class="anchor field"></a><code>session: <a class="struct" href="../../game/app/struct.SessionState.html" title="struct game::app::SessionState">SessionState</a></code></span><div class="docblock"><p>Static data that lasts the entire session. Use sparingly.</p>
|
||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/game/app.rs.html#45-453" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.has_prebaked" class="method"><code>pub fn <a href="#method.has_prebaked" class="fnname">has_prebaked</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>&<a class="struct" href="../../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>, &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../../src/game/app.rs.html#47-49" title="goto source code">[src]</a></h4><h4 id="method.prebaked" class="method"><code>pub fn <a href="#method.prebaked" class="fnname">prebaked</a>(&self) -> &<a class="struct" href="../../sim/analytics/struct.Analytics.html" title="struct sim::analytics::Analytics">Analytics</a></code><a class="srclink" href="../../src/game/app.rs.html#50-52" title="goto source code">[src]</a></h4><h4 id="method.set_prebaked" class="method"><code>pub fn <a href="#method.set_prebaked" class="fnname">set_prebaked</a>(&mut self, prebaked: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../../sim/analytics/struct.Analytics.html" title="struct sim::analytics::Analytics">Analytics</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>)</code><a class="srclink" href="../../src/game/app.rs.html#53-113" title="goto source code">[src]</a></h4><h4 id="method.draw" class="method"><code>pub fn <a href="#method.draw" class="fnname">draw</a>(<br> &self, <br> g: &mut GfxCtx<'_>, <br> opts: <a class="struct" href="../../map_gui/render/struct.DrawOptions.html" title="struct map_gui::render::DrawOptions">DrawOptions</a>, <br> show_objs: &dyn <a class="trait" href="../../game/app/trait.ShowObject.html" title="trait game::app::ShowObject">ShowObject</a><br>)</code><a class="srclink" href="../../src/game/app.rs.html#115-227" title="goto source code">[src]</a></h4><h4 id="method.recalculate_current_selection" class="method"><code>pub fn <a href="#method.recalculate_current_selection" class="fnname">recalculate_current_selection</a>(&mut self, ctx: &EventCtx<'_>)</code><a class="srclink" href="../../src/game/app.rs.html#230-233" title="goto source code">[src]</a></h4><div class="docblock"><p>Assumes some defaults.</p>
|
||
</div><h4 id="method.mouseover_unzoomed_roads_and_intersections" class="method"><code>pub fn <a href="#method.mouseover_unzoomed_roads_and_intersections" class="fnname">mouseover_unzoomed_roads_and_intersections</a>(<br> &self, <br> ctx: &EventCtx<'_><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>></code><a class="srclink" href="../../src/game/app.rs.html#235-237" title="goto source code">[src]</a></h4><h4 id="method.mouseover_unzoomed_intersections" class="method"><code>pub fn <a href="#method.mouseover_unzoomed_intersections" class="fnname">mouseover_unzoomed_intersections</a>(&self, ctx: &EventCtx<'_>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>></code><a class="srclink" href="../../src/game/app.rs.html#238-244" title="goto source code">[src]</a></h4><h4 id="method.mouseover_unzoomed_buildings" class="method"><code>pub fn <a href="#method.mouseover_unzoomed_buildings" class="fnname">mouseover_unzoomed_buildings</a>(&self, ctx: &EventCtx<'_>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>></code><a class="srclink" href="../../src/game/app.rs.html#245-247" title="goto source code">[src]</a></h4><h4 id="method.mouseover_unzoomed_everything" class="method"><code>pub fn <a href="#method.mouseover_unzoomed_everything" class="fnname">mouseover_unzoomed_everything</a>(&self, ctx: &EventCtx<'_>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>></code><a class="srclink" href="../../src/game/app.rs.html#248-250" title="goto source code">[src]</a></h4><h4 id="method.mouseover_debug_mode" class="method"><code>pub fn <a href="#method.mouseover_debug_mode" class="fnname">mouseover_debug_mode</a>(<br> &self, <br> ctx: &EventCtx<'_>, <br> show_objs: &dyn <a class="trait" href="../../game/app/trait.ShowObject.html" title="trait game::app::ShowObject">ShowObject</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>></code><a class="srclink" href="../../src/game/app.rs.html#251-253" title="goto source code">[src]</a></h4><h4 id="method.calculate_current_selection" class="method"><code>fn <a href="#method.calculate_current_selection" class="fnname">calculate_current_selection</a>(<br> &self, <br> ctx: &EventCtx<'_>, <br> show_objs: &dyn <a class="trait" href="../../game/app/trait.ShowObject.html" title="trait game::app::ShowObject">ShowObject</a>, <br> debug_mode: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> unzoomed_roads_and_intersections: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> unzoomed_buildings: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>></code><a class="srclink" href="../../src/game/app.rs.html#255-350" title="goto source code">[src]</a></h4><h4 id="method.get_renderables_back_to_front" class="method"><code>fn <a href="#method.get_renderables_back_to_front" class="fnname">get_renderables_back_to_front</a><'a>(<br> &'a self, <br> bounds: <a class="struct" href="../../geom/bounds/struct.Bounds.html" title="struct geom::bounds::Bounds">Bounds</a>, <br> prerender: &Prerender, <br> agents: &'a mut <a class="struct" href="../../map_gui/render/agents/struct.AgentCache.html" title="struct map_gui::render::agents::AgentCache">AgentCache</a>, <br> show_objs: &dyn <a class="trait" href="../../game/app/trait.ShowObject.html" title="trait game::app::ShowObject">ShowObject</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><&'a (dyn <a class="trait" href="../../map_gui/render/trait.Renderable.html" title="trait map_gui::render::Renderable">Renderable</a> + 'a)></code><a class="srclink" href="../../src/game/app.rs.html#354-439" title="goto source code">[src]</a></h4><h4 id="method.clear_everything" class="method"><code>pub fn <a href="#method.clear_everything" class="fnname">clear_everything</a>(&mut self, ctx: &mut EventCtx<'_>)</code><a class="srclink" href="../../src/game/app.rs.html#442-452" title="goto source code">[src]</a></h4><div class="docblock"><p>Ensure the map edits are blank, reset the simulation, and blank out prebaked results.</p>
|
||
</div></div><h3 id="impl-1" class="impl"><code class="in-band">impl <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a></code><a href="#impl-1" class="anchor"></a><a class="srclink" href="../../src/game/app.rs.html#455-483" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.click_on_intersection" class="method"><code>pub fn <a href="#method.click_on_intersection" class="fnname">click_on_intersection</a><S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> label: S<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>></code><a class="srclink" href="../../src/game/app.rs.html#457-468" title="goto source code">[src]</a></h4><div class="docblock"><p>If an intersection was clicked, return its ID.</p>
|
||
</div><h4 id="method.click_on_lane" class="method"><code>pub fn <a href="#method.click_on_lane" class="fnname">click_on_lane</a><S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> label: S<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../map_model/objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>></code><a class="srclink" href="../../src/game/app.rs.html#471-482" title="goto source code">[src]</a></h4><div class="docblock"><p>If a lane was clicked, return its ID.</p>
|
||
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-AppLike" class="impl"><code class="in-band">impl <a class="trait" href="../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a> for <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a></code><a href="#impl-AppLike" class="anchor"></a><a class="srclink" href="../../src/game/app.rs.html#487-549" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.map" class="method hidden"><code>fn <a href="../../map_gui/trait.AppLike.html#tymethod.map" class="fnname">map</a>(&self) -> &<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a></code><a class="srclink" href="../../src/game/app.rs.html#489-491" title="goto source code">[src]</a></h4><h4 id="method.sim" class="method hidden"><code>fn <a href="../../map_gui/trait.AppLike.html#tymethod.sim" class="fnname">sim</a>(&self) -> &<a class="struct" href="../../sim/sim/struct.Sim.html" title="struct sim::sim::Sim">Sim</a></code><a class="srclink" href="../../src/game/app.rs.html#493-495" title="goto source code">[src]</a></h4><h4 id="method.cs" class="method hidden"><code>fn <a href="../../map_gui/trait.AppLike.html#tymethod.cs" class="fnname">cs</a>(&self) -> &<a class="struct" href="../../map_gui/colors/struct.ColorScheme.html" title="struct map_gui::colors::ColorScheme">ColorScheme</a></code><a class="srclink" href="../../src/game/app.rs.html#497-499" title="goto source code">[src]</a></h4><h4 id="method.mut_cs" class="method hidden"><code>fn <a href="../../map_gui/trait.AppLike.html#tymethod.mut_cs" class="fnname">mut_cs</a>(&mut self) -> &mut <a class="struct" href="../../map_gui/colors/struct.ColorScheme.html" title="struct map_gui::colors::ColorScheme">ColorScheme</a></code><a class="srclink" href="../../src/game/app.rs.html#501-503" title="goto source code">[src]</a></h4><h4 id="method.draw_map" class="method hidden"><code>fn <a href="../../map_gui/trait.AppLike.html#tymethod.draw_map" class="fnname">draw_map</a>(&self) -> &<a class="struct" href="../../map_gui/render/map/struct.DrawMap.html" title="struct map_gui::render::map::DrawMap">DrawMap</a></code><a class="srclink" href="../../src/game/app.rs.html#505-507" title="goto source code">[src]</a></h4><h4 id="method.mut_draw_map" class="method hidden"><code>fn <a href="../../map_gui/trait.AppLike.html#tymethod.mut_draw_map" class="fnname">mut_draw_map</a>(&mut self) -> &mut <a class="struct" href="../../map_gui/render/map/struct.DrawMap.html" title="struct map_gui::render::map::DrawMap">DrawMap</a></code><a class="srclink" href="../../src/game/app.rs.html#509-511" title="goto source code">[src]</a></h4><h4 id="method.opts" class="method hidden"><code>fn <a href="../../map_gui/trait.AppLike.html#tymethod.opts" class="fnname">opts</a>(&self) -> &<a class="struct" href="../../map_gui/options/struct.Options.html" title="struct map_gui::options::Options">Options</a></code><a class="srclink" href="../../src/game/app.rs.html#513-515" title="goto source code">[src]</a></h4><h4 id="method.mut_opts" class="method hidden"><code>fn <a href="../../map_gui/trait.AppLike.html#tymethod.mut_opts" class="fnname">mut_opts</a>(&mut self) -> &mut <a class="struct" href="../../map_gui/options/struct.Options.html" title="struct map_gui::options::Options">Options</a></code><a class="srclink" href="../../src/game/app.rs.html#517-519" title="goto source code">[src]</a></h4><h4 id="method.map_switched" class="method hidden"><code>fn <a href="../../map_gui/trait.AppLike.html#tymethod.map_switched" class="fnname">map_switched</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> map: <a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> timer: &mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>)</code><a class="srclink" href="../../src/game/app.rs.html#521-535" title="goto source code">[src]</a></h4><h4 id="method.draw_with_opts" class="method hidden"><code>fn <a href="../../map_gui/trait.AppLike.html#tymethod.draw_with_opts" class="fnname">draw_with_opts</a>(&self, g: &mut GfxCtx<'_>, opts: <a class="struct" href="../../map_gui/render/struct.DrawOptions.html" title="struct map_gui::render::DrawOptions">DrawOptions</a>)</code><a class="srclink" href="../../src/game/app.rs.html#537-539" title="goto source code">[src]</a></h4><h4 id="method.make_warper" class="method hidden"><code>fn <a href="../../map_gui/trait.AppLike.html#tymethod.make_warper" class="fnname">make_warper</a>(<br> &mut self, <br> ctx: &EventCtx<'_>, <br> pt: <a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <br> target_cam_zoom: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>, <br> id: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class="srclink" href="../../src/game/app.rs.html#540-548" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Create a <code>widgetry::State</code> that warps to the given point.</p>
|
||
</div><h4 id="method.sim_time" class="method hidden"><code>pub fn <a href="../../map_gui/trait.AppLike.html#method.sim_time" class="fnname">sim_time</a>(&self) -> <a class="struct" href="../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a></code><a class="srclink" href="../../src/map_gui/lib.rs.html#54" title="goto source code">[src]</a></h4><h4 id="method.current_stage_and_remaining_time" class="method hidden"><code>pub fn <a href="../../map_gui/trait.AppLike.html#method.current_stage_and_remaining_time" class="fnname">current_stage_and_remaining_time</a>(<br> &self, <br> id: <a class="struct" href="../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <a class="struct" href="../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class="srclink" href="../../src/map_gui/lib.rs.html#57" title="goto source code">[src]</a></h4><h4 id="method.change_color_scheme" class="method hidden"><code>pub fn <a href="../../map_gui/trait.AppLike.html#method.change_color_scheme" class="fnname">change_color_scheme</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> cs: <a class="enum" href="../../map_gui/colors/enum.ColorSchemeChoice.html" title="enum map_gui::colors::ColorSchemeChoice">ColorSchemeChoice</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/map_gui/lib.rs.html#62" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Change the color scheme. Idempotent. Return true if there was a change.</p>
|
||
</div></div><h3 id="impl-MinimapControls%3CApp%3E" class="impl"><code class="in-band">impl <a class="trait" href="../../map_gui/tools/minimap/trait.MinimapControls.html" title="trait map_gui::tools::minimap::MinimapControls">MinimapControls</a><<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/minimap/struct.MinimapController.html" title="struct game::sandbox::minimap::MinimapController">MinimapController</a></code><a href="#impl-MinimapControls%3CApp%3E" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/minimap.rs.html#16-112" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.has_zorder" class="method hidden"><code>fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#tymethod.has_zorder" class="fnname">has_zorder</a>(&self, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/game/sandbox/minimap.rs.html#17-19" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Should the user be able to control the z-order visible? The control is only present when
|
||
zoomed in, placed beneath the zoom column. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#tymethod.has_zorder">Read more</a></p>
|
||
</div><h4 id="method.has_layer" class="method hidden"><code>fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.has_layer" class="fnname">has_layer</a>(&self, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/game/sandbox/minimap.rs.html#20-22" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Is there some additional layer displayed on the minimap? If this changes, the panel gets
|
||
recalculated. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.has_layer">Read more</a></p>
|
||
</div><h4 id="method.draw_extra" class="method hidden"><code>fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.draw_extra" class="fnname">draw_extra</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/minimap.rs.html#24-31" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw extra stuff on the minimap, just pulling from the app.</p>
|
||
</div><h4 id="method.make_unzoomed_panel" class="method hidden"><code>fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_unzoomed_panel" class="fnname">make_unzoomed_panel</a>(&self, ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Panel</code><a class="srclink" href="../../src/game/sandbox/minimap.rs.html#33-52" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>When unzoomed, display this panel. By default, no controls when unzoomed.</p>
|
||
</div><h4 id="method.make_legend" class="method hidden"><code>fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_legend" class="fnname">make_legend</a>(&self, ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Widget</code><a class="srclink" href="../../src/game/sandbox/minimap.rs.html#53-65" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>A row beneath the minimap in the zoomed view, usually used as a legend for things on the
|
||
minimap. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_legend">Read more</a></p>
|
||
</div><h4 id="method.make_zoomed_side_panel" class="method hidden"><code>fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_zoomed_side_panel" class="fnname">make_zoomed_side_panel</a>(&self, ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Widget</code><a class="srclink" href="../../src/game/sandbox/minimap.rs.html#67-69" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Controls to be placed to the left to the zoomed-in panel</p>
|
||
</div><h4 id="method.panel_clicked" class="method hidden"><code>fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.panel_clicked" class="fnname">panel_clicked</a>(<br> &self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> action: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class="srclink" href="../../src/game/sandbox/minimap.rs.html#71-102" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a button is clicked that was produced by some method in this trait, respond to it here.</p>
|
||
</div><h4 id="method.panel_changed" class="method hidden"><code>fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.panel_changed" class="fnname">panel_changed</a>(&self, _: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, panel: &Panel)</code><a class="srclink" href="../../src/game/sandbox/minimap.rs.html#103-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called for <code>Outcome::Changed</code> on the panel.</p>
|
||
</div></div><h3 id="impl-SharedAppState" class="impl"><code class="in-band">impl SharedAppState for <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a></code><a href="#impl-SharedAppState" class="anchor"></a><a class="srclink" href="../../src/game/app.rs.html#829-884" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.before_event" class="method hidden"><code>fn <a href="#method.before_event" class="fnname">before_event</a>(&mut self)</code><a class="srclink" href="../../src/game/app.rs.html#830-832" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Before <code>State::event</code> is called, call this.</p>
|
||
</div><h4 id="method.draw_default" class="method hidden"><code>fn <a href="#method.draw_default" class="fnname">draw_default</a>(&self, g: &mut GfxCtx<'_>)</code><a class="srclink" href="../../src/game/app.rs.html#834-836" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>When DrawBaselayer::DefaultDraw is called, run this.</p>
|
||
</div><h4 id="method.dump_before_abort" class="method hidden"><code>fn <a href="#method.dump_before_abort" class="fnname">dump_before_abort</a>(&self, canvas: &Canvas)</code><a class="srclink" href="../../src/game/app.rs.html#838-879" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Will be called if <code>State::event</code> or <code>State::draw</code> panics.</p>
|
||
</div><h4 id="method.before_quit" class="method hidden"><code>fn <a href="#method.before_quit" class="fnname">before_quit</a>(&self, canvas: &Canvas)</code><a class="srclink" href="../../src/game/app.rs.html#881-883" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called before a normal exit, like window close</p>
|
||
</div></div><h3 id="impl-SimpleState%3CApp%3E" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/uber_turns/struct.UberTurnPicker.html" title="struct game::debug::uber_turns::UberTurnPicker">UberTurnPicker</a></code><a href="#impl-SimpleState%3CApp%3E" class="anchor"></a><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#53-108" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#54-76" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||
</div><h4 id="method.on_mouseover" class="method hidden"><code>fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#78-80" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||
</div><h4 id="method.other_event" class="method hidden"><code>fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#81-93" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn't occur and <code>panel_changed</code> didn't return transition, then
|
||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||
</div><h4 id="method.draw-57" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#95-107" title="goto source code">[src]</a></h4><h4 id="method.panel_changed-1" class="method hidden"><code>pub fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||
</div><h4 id="method.draw_baselayer-56" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4></div><h3 id="impl-SimpleState%3CApp%3E-1" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/uber_turns/struct.UberTurnViewer.html" title="struct game::debug::uber_turns::UberTurnViewer">UberTurnViewer</a></code><a href="#impl-SimpleState%3CApp%3E-1" class="anchor"></a><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#189-242" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click-1" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#190-209" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||
</div><h4 id="method.panel_changed-2" class="method hidden"><code>fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> panel: &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#210-223" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||
</div><h4 id="method.other_event-1" class="method hidden"><code>fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#225-228" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn't occur and <code>panel_changed</code> didn't return transition, then
|
||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||
</div><h4 id="method.draw_baselayer-57" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#230-232" title="goto source code">[src]</a></h4><h4 id="method.draw-58" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#234-241" title="goto source code">[src]</a></h4><h4 id="method.on_mouseover-1" class="method hidden"><code>pub fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||
</div></div><h3 id="impl-SimpleState%3CApp%3E-2" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/lanes/struct.LaneEditor.html" title="struct game::edit::lanes::LaneEditor">LaneEditor</a></code><a href="#impl-SimpleState%3CApp%3E-2" class="anchor"></a><a class="srclink" href="../../src/game/edit/lanes.rs.html#122-231" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click-2" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/lanes.rs.html#123-170" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||
</div><h4 id="method.panel_changed-3" class="method hidden"><code>fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> panel: &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class="srclink" href="../../src/game/edit/lanes.rs.html#172-192" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||
</div><h4 id="method.on_mouseover-2" class="method hidden"><code>fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/lanes.rs.html#194-205" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||
</div><h4 id="method.other_event-2" class="method hidden"><code>fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/lanes.rs.html#207-219" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn't occur and <code>panel_changed</code> didn't return transition, then
|
||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||
</div><h4 id="method.draw-59" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/lanes.rs.html#221-230" title="goto source code">[src]</a></h4><h4 id="method.draw_baselayer-58" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4></div><h3 id="impl-SimpleState%3CApp%3E-3" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/stop_signs/struct.StopSignEditor.html" title="struct game::edit::stop_signs::StopSignEditor">StopSignEditor</a></code><a href="#impl-SimpleState%3CApp%3E-3" class="anchor"></a><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#93-233" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click-3" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#94-149" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||
</div><h4 id="method.on_mouseover-3" class="method hidden"><code>fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#151-161" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||
</div><h4 id="method.other_event-3" class="method hidden"><code>fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#163-193" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn't occur and <code>panel_changed</code> didn't return transition, then
|
||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||
</div><h4 id="method.draw-60" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#195-232" title="goto source code">[src]</a></h4><h4 id="method.panel_changed-4" class="method hidden"><code>pub fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||
</div><h4 id="method.draw_baselayer-59" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4></div><h3 id="impl-SimpleState%3CApp%3E-4" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/traffic_signals/edits/struct.ChangeDuration.html" title="struct game::edit::traffic_signals::edits::ChangeDuration">ChangeDuration</a></code><a href="#impl-SimpleState%3CApp%3E-4" class="anchor"></a><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#105-169" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click-4" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> panel: &Panel<br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#106-131" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||
</div><h4 id="method.panel_changed-5" class="method hidden"><code>fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> panel: &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#133-157" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||
</div><h4 id="method.other_event-4" class="method hidden"><code>fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#159-164" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn't occur and <code>panel_changed</code> didn't return transition, then
|
||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||
</div><h4 id="method.draw_baselayer-60" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#166-168" title="goto source code">[src]</a></h4><h4 id="method.on_mouseover-4" class="method hidden"><code>pub fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||
</div><h4 id="method.draw-61" class="method hidden"><code>pub fn <a href="#method.draw" class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A)</code></h4></div><h3 id="impl-SimpleState%3CApp%3E-5" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/traffic_signals/offsets/struct.ShowAbsolute.html" title="struct game::edit::traffic_signals::offsets::ShowAbsolute">ShowAbsolute</a></code><a href="#impl-SimpleState%3CApp%3E-5" class="anchor"></a><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#66-98" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click-5" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#67-76" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||
</div><h4 id="method.on_mouseover-5" class="method hidden"><code>fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#78-82" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||
</div><h4 id="method.other_event-5" class="method hidden"><code>fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#84-91" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn't occur and <code>panel_changed</code> didn't return transition, then
|
||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||
</div><h4 id="method.draw-62" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#93-97" title="goto source code">[src]</a></h4><h4 id="method.panel_changed-6" class="method hidden"><code>pub fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||
</div><h4 id="method.draw_baselayer-61" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4></div><h3 id="impl-SimpleState%3CApp%3E-6" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/traffic_signals/offsets/struct.ShowRelative.html" title="struct game::edit::traffic_signals::offsets::ShowRelative">ShowRelative</a></code><a href="#impl-SimpleState%3CApp%3E-6" class="anchor"></a><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#156-191" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click-6" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#157-162" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||
</div><h4 id="method.on_mouseover-6" class="method hidden"><code>fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#164-169" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||
</div><h4 id="method.other_event-6" class="method hidden"><code>fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#171-184" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn't occur and <code>panel_changed</code> didn't return transition, then
|
||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||
</div><h4 id="method.draw-63" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#186-190" title="goto source code">[src]</a></h4><h4 id="method.panel_changed-7" class="method hidden"><code>pub fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||
</div><h4 id="method.draw_baselayer-62" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4></div><h3 id="impl-SimpleState%3CApp%3E-7" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/traffic_signals/offsets/struct.TuneRelative.html" title="struct game::edit::traffic_signals::offsets::TuneRelative">TuneRelative</a></code><a href="#impl-SimpleState%3CApp%3E-7" class="anchor"></a><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#279-312" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click-7" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> panel: &Panel<br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#280-302" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||
</div><h4 id="method.other_event-7" class="method hidden"><code>fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#304-307" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn't occur and <code>panel_changed</code> didn't return transition, then
|
||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||
</div><h4 id="method.draw-64" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#309-311" title="goto source code">[src]</a></h4><h4 id="method.panel_changed-8" class="method hidden"><code>pub fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||
</div><h4 id="method.on_mouseover-7" class="method hidden"><code>pub fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||
</div><h4 id="method.draw_baselayer-63" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4></div><h3 id="impl-SimpleState%3CApp%3E-8" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/gameplay/actdev/struct.About.html" title="struct game::sandbox::gameplay::actdev::About">About</a></code><a href="#impl-SimpleState%3CApp%3E-8" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/actdev.rs.html#264-277" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click-8" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/gameplay/actdev.rs.html#265-272" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||
</div><h4 id="method.draw-65" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/gameplay/actdev.rs.html#274-276" title="goto source code">[src]</a></h4><h4 id="method.panel_changed-9" class="method hidden"><code>pub fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||
</div><h4 id="method.on_mouseover-8" class="method hidden"><code>pub fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||
</div><h4 id="method.other_event-8" class="method hidden"><code>pub fn <a href="#method.other_event" class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A) -> Transition<A></code></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn't occur and <code>panel_changed</code> didn't return transition, then
|
||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||
</div><h4 id="method.draw_baselayer-64" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4></div><h3 id="impl-SimpleState%3CApp%3E-9" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/gameplay/freeform/struct.ChangeScenario.html" title="struct game::sandbox::gameplay::freeform::ChangeScenario">ChangeScenario</a></code><a href="#impl-SimpleState%3CApp%3E-9" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/mod.rs.html#288-330" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click-9" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/mod.rs.html#289-325" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||
</div><h4 id="method.draw-66" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/mod.rs.html#327-329" title="goto source code">[src]</a></h4><h4 id="method.panel_changed-10" class="method hidden"><code>pub fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||
</div><h4 id="method.on_mouseover-9" class="method hidden"><code>pub fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||
</div><h4 id="method.other_event-9" class="method hidden"><code>pub fn <a href="#method.other_event" class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A) -> Transition<A></code></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn't occur and <code>panel_changed</code> didn't return transition, then
|
||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||
</div><h4 id="method.draw_baselayer-65" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4></div><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/challenges/cutscene/struct.CutscenePlayer.html" title="struct game::challenges::cutscene::CutscenePlayer">CutscenePlayer</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#90-139" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#91-128" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw_baselayer" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#130-132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.draw-1" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#134-138" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.on_destroy" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-1" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/challenges/cutscene/struct.FYI.html" title="struct game::challenges::cutscene::FYI">FYI</a></code><a href="#impl-State%3CApp%3E-1" class="anchor"></a><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#289-304" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-1" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#290-298" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-2" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#300-303" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-1" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-1" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-10" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/routes/struct.AllRoutesExplorer.html" title="struct game::debug::routes::AllRoutesExplorer">AllRoutesExplorer</a></code><a href="#impl-State%3CApp%3E-10" class="anchor"></a><a class="srclink" href="../../src/game/debug/routes.rs.html#339-452" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-10" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/routes.rs.html#340-438" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-11" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/routes.rs.html#440-451" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-10" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-10" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-11" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/routes/struct.PathCostDebugger.html" title="struct game::debug::routes::PathCostDebugger">PathCostDebugger</a></code><a href="#impl-State%3CApp%3E-11" class="anchor"></a><a class="srclink" href="../../src/game/debug/routes.rs.html#546-586" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-11" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/routes.rs.html#547-577" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-12" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/routes.rs.html#579-585" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-11" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-11" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-12" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/struct.DebugMode.html" title="struct game::debug::DebugMode">DebugMode</a></code><a href="#impl-State%3CApp%3E-12" class="anchor"></a><a class="srclink" href="../../src/game/debug/mod.rs.html#192-465" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-12" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/mod.rs.html#193-436" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw_baselayer-12" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/debug/mod.rs.html#438-440" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.draw-13" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/mod.rs.html#442-464" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.on_destroy-12" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-13" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-State%3CApp%3E-13" class="anchor"></a><a class="srclink" href="../../src/game/debug/mod.rs.html#884-913" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-13" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/mod.rs.html#885-911" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-14" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/mod.rs.html#912" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-13" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-13" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-14" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/collisions/struct.CollisionsViewer.html" title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></code><a href="#impl-State%3CApp%3E-14" class="anchor"></a><a class="srclink" href="../../src/game/devtools/collisions.rs.html#267-325" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-14" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/devtools/collisions.rs.html#268-300" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-15" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/devtools/collisions.rs.html#302-324" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-14" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-14" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-15" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/destinations/struct.PopularDestinations.html" title="struct game::devtools::destinations::PopularDestinations">PopularDestinations</a></code><a href="#impl-State%3CApp%3E-15" class="anchor"></a><a class="srclink" href="../../src/game/devtools/destinations.rs.html#112-168" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-15" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/devtools/destinations.rs.html#113-146" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-16" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/devtools/destinations.rs.html#148-167" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-15" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-15" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-16" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/kml/struct.ViewKML.html" title="struct game::devtools::kml::ViewKML">ViewKML</a></code><a href="#impl-State%3CApp%3E-16" class="anchor"></a><a class="srclink" href="../../src/game/devtools/kml.rs.html#107-211" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-16" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/devtools/kml.rs.html#108-189" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-17" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/devtools/kml.rs.html#191-210" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-16" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-16" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-17" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-State%3CApp%3E-17" class="anchor"></a><a class="srclink" href="../../src/game/devtools/polygon.rs.html#51-144" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-17" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/devtools/polygon.rs.html#52-107" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-18" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/devtools/polygon.rs.html#109-143" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-17" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-17" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-18" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/scenario/struct.ScenarioManager.html" title="struct game::devtools::scenario::ScenarioManager">ScenarioManager</a></code><a href="#impl-State%3CApp%3E-18" class="anchor"></a><a class="srclink" href="../../src/game/devtools/scenario.rs.html#90-122" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-18" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/devtools/scenario.rs.html#91-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-19" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/devtools/scenario.rs.html#113-121" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-18" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-18" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-19" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/story/struct.StoryMapEditor.html" title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></code><a href="#impl-State%3CApp%3E-19" class="anchor"></a><a class="srclink" href="../../src/game/devtools/story.rs.html#59-308" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-19" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/devtools/story.rs.html#60-267" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw_baselayer-19" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/devtools/story.rs.html#269-271" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.draw-20" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/devtools/story.rs.html#273-307" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.on_destroy-19" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-2" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/challenges/struct.ChallengesPicker.html" title="struct game::challenges::ChallengesPicker">ChallengesPicker</a></code><a href="#impl-State%3CApp%3E-2" class="anchor"></a><a class="srclink" href="../../src/game/challenges/mod.rs.html#263-319" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-2" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/challenges/mod.rs.html#264-309" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw_baselayer-2" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/challenges/mod.rs.html#311-313" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.draw-3" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/challenges/mod.rs.html#315-318" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.on_destroy-2" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-20" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/struct.DevToolsMode.html" title="struct game::devtools::DevToolsMode">DevToolsMode</a></code><a href="#impl-State%3CApp%3E-20" class="anchor"></a><a class="srclink" href="../../src/game/devtools/mod.rs.html#91-187" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-20" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/devtools/mod.rs.html#92-177" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw_baselayer-20" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/devtools/mod.rs.html#179-181" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.draw-21" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/devtools/mod.rs.html#183-186" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.on_destroy-20" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-21" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/bulk/struct.BulkSelect.html" title="struct game::edit::bulk::BulkSelect">BulkSelect</a></code><a href="#impl-State%3CApp%3E-21" class="anchor"></a><a class="srclink" href="../../src/game/edit/bulk.rs.html#68-142" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-21" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/bulk.rs.html#69-136" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-22" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/bulk.rs.html#138-141" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-21" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-21" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-22" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/bulk/struct.BulkEdit.html" title="struct game::edit::bulk::BulkEdit">BulkEdit</a></code><a href="#impl-State%3CApp%3E-22" class="anchor"></a><a class="srclink" href="../../src/game/edit/bulk.rs.html#196-242" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-22" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/bulk.rs.html#197-236" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-23" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/bulk.rs.html#238-241" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-22" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-22" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-23" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/roads/struct.RoadEditor.html" title="struct game::edit::roads::RoadEditor">RoadEditor</a></code><a href="#impl-State%3CApp%3E-23" class="anchor"></a><a class="srclink" href="../../src/game/edit/roads.rs.html#88-260" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-23" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/roads.rs.html#89-253" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-24" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/roads.rs.html#255-259" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-23" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-23" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-24" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/routes/struct.RouteEditor.html" title="struct game::edit::routes::RouteEditor">RouteEditor</a></code><a href="#impl-State%3CApp%3E-24" class="anchor"></a><a class="srclink" href="../../src/game/edit/routes.rs.html#53-92" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-24" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/routes.rs.html#54-87" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-25" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/routes.rs.html#89-91" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-24" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-24" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-25" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/traffic_signals/picker/struct.SignalPicker.html" title="struct game::edit::traffic_signals::picker::SignalPicker">SignalPicker</a></code><a href="#impl-State%3CApp%3E-25" class="anchor"></a><a class="srclink" href="../../src/game/edit/traffic_signals/picker.rs.html#46-107" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-25" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/traffic_signals/picker.rs.html#47-91" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-26" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/traffic_signals/picker.rs.html#93-106" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-25" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-25" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-26" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/traffic_signals/preview/struct.PreviewTrafficSignal.html" title="struct game::edit::traffic_signals::preview::PreviewTrafficSignal">PreviewTrafficSignal</a></code><a href="#impl-State%3CApp%3E-26" class="anchor"></a><a class="srclink" href="../../src/game/edit/traffic_signals/preview.rs.html#40-71" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-26" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/traffic_signals/preview.rs.html#41-65" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-27" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/traffic_signals/preview.rs.html#67-70" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-26" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-26" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-27" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/traffic_signals/struct.TrafficSignalEditor.html" title="struct game::edit::traffic_signals::TrafficSignalEditor">TrafficSignalEditor</a></code><a href="#impl-State%3CApp%3E-27" class="anchor"></a><a class="srclink" href="../../src/game/edit/traffic_signals/mod.rs.html#182-524" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-27" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/traffic_signals/mod.rs.html#183-474" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw_baselayer-27" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/edit/traffic_signals/mod.rs.html#476-478" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.draw-28" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/traffic_signals/mod.rs.html#480-523" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.on_destroy-27" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-28" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/zones/struct.ZoneEditor.html" title="struct game::edit::zones::ZoneEditor">ZoneEditor</a></code><a href="#impl-State%3CApp%3E-28" class="anchor"></a><a class="srclink" href="../../src/game/edit/zones.rs.html#97-196" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-28" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/zones.rs.html#98-183" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-29" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/zones.rs.html#185-195" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-28" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-28" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-29" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/struct.EditMode.html" title="struct game::edit::EditMode">EditMode</a></code><a href="#impl-State%3CApp%3E-29" class="anchor"></a><a class="srclink" href="../../src/game/edit/mod.rs.html#145-374" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-29" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/mod.rs.html#146-361" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-30" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/mod.rs.html#363-373" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-29" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-29" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-3" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/common/warp/struct.Warping.html" title="struct game::common::warp::Warping">Warping</a></code><a href="#impl-State%3CApp%3E-3" class="anchor"></a><a class="srclink" href="../../src/game/common/warp.rs.html#39-67" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-3" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/common/warp.rs.html#40-64" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-4" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/common/warp.rs.html#66" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-3" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-3" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-30" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/struct.SaveEdits.html" title="struct game::edit::SaveEdits">SaveEdits</a></code><a href="#impl-State%3CApp%3E-30" class="anchor"></a><a class="srclink" href="../../src/game/edit/mod.rs.html#493-532" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-30" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/mod.rs.html#494-526" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-31" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/mod.rs.html#528-531" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-30" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-30" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-31" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/struct.LoadEdits.html" title="struct game::edit::LoadEdits">LoadEdits</a></code><a href="#impl-State%3CApp%3E-31" class="anchor"></a><a class="srclink" href="../../src/game/edit/mod.rs.html#582-655" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-31" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/mod.rs.html#583-649" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-32" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/mod.rs.html#651-654" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-31" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-31" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-32" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/edit/struct.ConfirmDiscard.html" title="struct game::edit::ConfirmDiscard">ConfirmDiscard</a></code><a href="#impl-State%3CApp%3E-32" class="anchor"></a><a class="srclink" href="../../src/game/edit/mod.rs.html#910-928" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-32" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/edit/mod.rs.html#911-923" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-33" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/edit/mod.rs.html#925-927" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-32" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-32" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-33" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/layer/struct.PickLayer.html" title="struct game::layer::PickLayer">PickLayer</a></code><a href="#impl-State%3CApp%3E-33" class="anchor"></a><a class="srclink" href="../../src/game/layer/mod.rs.html#158-274" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-33" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/layer/mod.rs.html#159-264" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw_baselayer-33" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/layer/mod.rs.html#266-268" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.draw-34" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/layer/mod.rs.html#270-273" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.on_destroy-33" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-34" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-State%3CApp%3E-34" class="anchor"></a><a class="srclink" href="../../src/game/pregame/proposals.rs.html#120-160" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-34" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/pregame/proposals.rs.html#121-150" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw_baselayer-34" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/pregame/proposals.rs.html#152-154" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.draw-35" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/pregame/proposals.rs.html#156-159" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.on_destroy-34" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-35" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/pregame/struct.TitleScreen.html" title="struct game::pregame::TitleScreen">TitleScreen</a></code><a href="#impl-State%3CApp%3E-35" class="anchor"></a><a class="srclink" href="../../src/game/pregame/mod.rs.html#64-85" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-35" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/pregame/mod.rs.html#65-80" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-36" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/pregame/mod.rs.html#82-84" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-35" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-35" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-36" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/pregame/struct.MainMenu.html" title="struct game::pregame::MainMenu">MainMenu</a></code><a href="#impl-State%3CApp%3E-36" class="anchor"></a><a class="srclink" href="../../src/game/pregame/mod.rs.html#189-237" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-36" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/pregame/mod.rs.html#190-227" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw_baselayer-36" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/pregame/mod.rs.html#229-231" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.draw-37" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/pregame/mod.rs.html#233-236" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.on_destroy-36" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-37" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/pregame/struct.About.html" title="struct game::pregame::About">About</a></code><a href="#impl-State%3CApp%3E-37" class="anchor"></a><a class="srclink" href="../../src/game/pregame/mod.rs.html#295-321" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-37" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/pregame/mod.rs.html#296-311" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw_baselayer-37" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/pregame/mod.rs.html#313-315" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.draw-38" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/pregame/mod.rs.html#317-320" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.on_destroy-37" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-38" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/dashboards/commuter/struct.CommuterPatterns.html" title="struct game::sandbox::dashboards::commuter::CommuterPatterns">CommuterPatterns</a></code><a href="#impl-State%3CApp%3E-38" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/dashboards/commuter.rs.html#339-446" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-38" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/dashboards/commuter.rs.html#340-437" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-39" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/dashboards/commuter.rs.html#439-445" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-38" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-38" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-39" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/dashboards/misc/struct.ActiveTraffic.html" title="struct game::sandbox::dashboards::misc::ActiveTraffic">ActiveTraffic</a></code><a href="#impl-State%3CApp%3E-39" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#56-73" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-39" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#57-68" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-40" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#70-72" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-39" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-39" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-4" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/common/warp/struct.DebugWarp.html" title="struct game::common::warp::DebugWarp">DebugWarp</a></code><a href="#impl-State%3CApp%3E-4" class="anchor"></a><a class="srclink" href="../../src/game/common/warp.rs.html#134-155" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-4" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/common/warp.rs.html#135-149" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-5" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/common/warp.rs.html#151-154" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-4" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-4" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-40" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/dashboards/misc/struct.TransitRoutes.html" title="struct game::sandbox::dashboards::misc::TransitRoutes">TransitRoutes</a></code><a href="#impl-State%3CApp%3E-40" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#195-245" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-40" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#196-240" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-41" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#242-244" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-40" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-40" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-41" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/dashboards/parking_overhead/struct.ParkingOverhead.html" title="struct game::sandbox::dashboards::parking_overhead::ParkingOverhead">ParkingOverhead</a></code><a href="#impl-State%3CApp%3E-41" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/dashboards/parking_overhead.rs.html#71-103" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-41" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/dashboards/parking_overhead.rs.html#72-97" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-42" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/dashboards/parking_overhead.rs.html#99-102" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-41" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-41" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-42" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/dashboards/selector/struct.RectangularSelector.html" title="struct game::sandbox::dashboards::selector::RectangularSelector">RectangularSelector</a></code><a href="#impl-State%3CApp%3E-42" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/dashboards/selector.rs.html#55-114" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-42" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/dashboards/selector.rs.html#56-101" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-43" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/dashboards/selector.rs.html#103-113" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-42" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-42" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-43" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/dashboards/summaries/struct.TripSummaries.html" title="struct game::sandbox::dashboards::summaries::TripSummaries">TripSummaries</a></code><a href="#impl-State%3CApp%3E-43" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/dashboards/summaries.rs.html#75-117" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-43" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/dashboards/summaries.rs.html#76-112" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-44" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/dashboards/summaries.rs.html#114-116" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-43" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-43" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-44" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/dashboards/traffic_signals/struct.TrafficSignalDemand.html" title="struct game::sandbox::dashboards::traffic_signals::TrafficSignalDemand">TrafficSignalDemand</a></code><a href="#impl-State%3CApp%3E-44" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#74-155" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-44" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#75-134" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw_baselayer-44" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#136-138" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.draw-45" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#140-154" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.on_destroy-44" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-45" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/dashboards/trip_table/struct.TripTable.html" title="struct game::sandbox::dashboards::trip_table::TripTable">TripTable</a></code><a href="#impl-State%3CApp%3E-45" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/dashboards/trip_table.rs.html#120-209" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-45" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/dashboards/trip_table.rs.html#121-194" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-46" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/dashboards/trip_table.rs.html#196-208" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-45" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-45" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-46" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/gameplay/freeform/spawner/struct.AgentSpawner.html" title="struct game::sandbox::gameplay::freeform::spawner::AgentSpawner">AgentSpawner</a></code><a href="#impl-State%3CApp%3E-46" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/spawner.rs.html#86-301" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-46" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/spawner.rs.html#87-285" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-47" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/spawner.rs.html#287-300" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-46" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-46" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-47" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/gameplay/play_scenario/struct.EditScenarioModifiers.html" title="struct game::sandbox::gameplay::play_scenario::EditScenarioModifiers">EditScenarioModifiers</a></code><a href="#impl-State%3CApp%3E-47" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#292-384" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-47" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#293-378" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-48" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#380-383" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-47" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-47" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-48" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/gameplay/play_scenario/struct.ChangeMode.html" title="struct game::sandbox::gameplay::play_scenario::ChangeMode">ChangeMode</a></code><a href="#impl-State%3CApp%3E-48" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#451-516" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-48" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#452-510" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-49" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#512-515" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-48" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-48" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-49" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/gameplay/struct.FinalScore.html" title="struct game::sandbox::gameplay::FinalScore">FinalScore</a></code><a href="#impl-State%3CApp%3E-49" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/mod.rs.html#309-380" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-49" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/gameplay/mod.rs.html#310-373" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-50" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/gameplay/mod.rs.html#375-379" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-49" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-49" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-5" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/blocked_by/struct.Viewer.html" title="struct game::debug::blocked_by::Viewer">Viewer</a></code><a href="#impl-State%3CApp%3E-5" class="anchor"></a><a class="srclink" href="../../src/game/debug/blocked_by.rs.html#204-266" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-5" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/blocked_by.rs.html#205-252" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-6" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/blocked_by.rs.html#254-265" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-5" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-5" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-50" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/misc_tools/struct.TrafficRecorder.html" title="struct game::sandbox::misc_tools::TrafficRecorder">TrafficRecorder</a></code><a href="#impl-State%3CApp%3E-50" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/misc_tools.rs.html#99-150" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-50" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/misc_tools.rs.html#100-134" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-51" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/misc_tools.rs.html#136-149" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-50" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-50" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-51" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/time_warp/struct.JumpToTime.html" title="struct game::sandbox::time_warp::JumpToTime">JumpToTime</a></code><a href="#impl-State%3CApp%3E-51" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#124-213" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-51" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#125-207" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-52" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#209-212" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-51" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-51" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-52" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/time_warp/struct.TimeWarpScreen.html" title="struct game::sandbox::time_warp::TimeWarpScreen">TimeWarpScreen</a></code><a href="#impl-State%3CApp%3E-52" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#268-396" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-52" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#269-372" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw_baselayer-52" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#374-376" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.draw-53" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#378-387" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.on_destroy-52" class="method hidden"><code>fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, _: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#389-395" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-53" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/struct.SandboxMode.html" title="struct game::sandbox::SandboxMode">SandboxMode</a></code><a href="#impl-State%3CApp%3E-53" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/mod.rs.html#93-243" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-53" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/mod.rs.html#94-206" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-54" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/mod.rs.html#208-236" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.on_destroy-53" class="method hidden"><code>fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, _: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/mod.rs.html#238-242" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div><h4 id="method.draw_baselayer-53" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-54" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/struct.BackToMainMenu.html" title="struct game::sandbox::BackToMainMenu">BackToMainMenu</a></code><a href="#impl-State%3CApp%3E-54" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/mod.rs.html#278-286" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-54" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/mod.rs.html#279-283" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-55" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/mod.rs.html#285" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-54" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-54" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-55" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/struct.SandboxLoader.html" title="struct game::sandbox::SandboxLoader">SandboxLoader</a></code><a href="#impl-State%3CApp%3E-55" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/mod.rs.html#438-625" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-55" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/sandbox/mod.rs.html#439-622" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-56" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/mod.rs.html#624" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-55" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-55" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-6" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/floodfill/struct.Floodfiller.html" title="struct game::debug::floodfill::Floodfiller">Floodfiller</a></code><a href="#impl-State%3CApp%3E-6" class="anchor"></a><a class="srclink" href="../../src/game/debug/floodfill.rs.html#81-117" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-6" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/floodfill.rs.html#82-107" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-7" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/floodfill.rs.html#109-116" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-6" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-6" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-7" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/path_counter/struct.PathCounter.html" title="struct game::debug::path_counter::PathCounter">PathCounter</a></code><a href="#impl-State%3CApp%3E-7" class="anchor"></a><a class="srclink" href="../../src/game/debug/path_counter.rs.html#85-132" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-7" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/path_counter.rs.html#86-116" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-8" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/path_counter.rs.html#118-131" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-7" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-7" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-8" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/polygons/struct.PolygonDebugger.html" title="struct game::debug::polygons::PolygonDebugger">PolygonDebugger</a></code><a href="#impl-State%3CApp%3E-8" class="anchor"></a><a class="srclink" href="../../src/game/debug/polygons.rs.html#66-148" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-8" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/polygons.rs.html#67-96" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-9" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/polygons.rs.html#98-147" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-8" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-8" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div><h3 id="impl-State%3CApp%3E-9" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/routes/struct.RouteExplorer.html" title="struct game::debug::routes::RouteExplorer">RouteExplorer</a></code><a href="#impl-State%3CApp%3E-9" class="anchor"></a><a class="srclink" href="../../src/game/debug/routes.rs.html#69-183" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-9" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/routes.rs.html#70-157" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||
</div><h4 id="method.draw-10" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/routes.rs.html#159-182" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||
</div><h4 id="method.draw_baselayer-9" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||
</div><h4 id="method.on_destroy-9" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||
</div></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a></code><a href="#impl-UnwindSafe" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#207-211" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-218" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#215" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||
</div></div><h3 id="impl-Downcast" class="impl"><code class="in-band">impl<T> Downcast for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>, </span></code><a href="#impl-Downcast" class="anchor"></a></h3><div class="impl-items"><h4 id="method.into_any" class="method hidden"><code>pub fn <a href="#method.into_any" class="fnname">into_any</a>(self: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><T, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>></code></h4><div class='docblock hidden'><p>Convert <code>Box<dyn Trait></code> (where <code>Trait: Downcast</code>) to <code>Box<dyn Any></code>. <code>Box<dyn Any></code> can
|
||
then be further <code>downcast</code> into <code>Box<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>. <a href="#tymethod.into_any">Read more</a></p>
|
||
</div><h4 id="method.into_any_rc" class="method hidden"><code>pub fn <a href="#method.into_any_rc" class="fnname">into_any_rc</a>(self: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a><T>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static></code></h4><div class='docblock hidden'><p>Convert <code>Rc<Trait></code> (where <code>Trait: Downcast</code>) to <code>Rc<Any></code>. <code>Rc<Any></code> can then be
|
||
further <code>downcast</code> into <code>Rc<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>. <a href="#tymethod.into_any_rc">Read more</a></p>
|
||
</div><h4 id="method.as_any" class="method hidden"><code>pub fn <a href="#method.as_any" class="fnname">as_any</a>(&self) -> &(dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</code></h4><div class='docblock hidden'><p>Convert <code>&Trait</code> (where <code>Trait: Downcast</code>) to <code>&Any</code>. This is needed since Rust cannot
|
||
generate <code>&Any</code>'s vtable from <code>&Trait</code>'s. <a href="#tymethod.as_any">Read more</a></p>
|
||
</div><h4 id="method.as_any_mut" class="method hidden"><code>pub fn <a href="#method.as_any_mut" class="fnname">as_any_mut</a>(&mut self) -> &mut (dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</code></h4><div class='docblock hidden'><p>Convert <code>&mut Trait</code> (where <code>Trait: Downcast</code>) to <code>&Any</code>. This is needed since Rust cannot
|
||
generate <code>&mut Any</code>'s vtable from <code>&mut Trait</code>'s. <a href="#tymethod.as_any_mut">Read more</a></p>
|
||
</div></div><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-549" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id="impl-Instrument" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://docs.rs/tracing/0.1.23/tracing/instrument/trait.Instrument.html" title="trait tracing::instrument::Instrument">Instrument</a> for T</code><a href="#impl-Instrument" class="anchor"></a><a class="srclink" href="https://docs.rs/tracing/0.1.23/src/tracing/instrument.rs.html#155" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.instrument" class="method hidden"><code>pub fn <a href="https://docs.rs/tracing/0.1.23/tracing/instrument/trait.Instrument.html#method.instrument" class="fnname">instrument</a>(self, span: <a class="struct" href="https://docs.rs/tracing/0.1.23/tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -> <a class="struct" href="https://docs.rs/tracing/0.1.23/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></code><a class="srclink" href="https://docs.rs/tracing/0.1.23/src/tracing/instrument.rs.html#38" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Instruments this type with the provided <code>Span</code>, returning an
|
||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.23/tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></p>
|
||
</div><h4 id="method.in_current_span" class="method hidden"><code>pub fn <a href="https://docs.rs/tracing/0.1.23/tracing/instrument/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -> <a class="struct" href="https://docs.rs/tracing/0.1.23/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></code><a class="srclink" href="https://docs.rs/tracing/0.1.23/src/tracing/instrument.rs.html#74" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Instruments this type with the <a href="../struct.Span.html#method.current">current</a> <code>Span</code>, returning an
|
||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.23/tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></p>
|
||
</div></div><h3 id="impl-Instrument-1" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://docs.rs/tracing-futures/0.2.3/tracing_futures/trait.Instrument.html" title="trait tracing_futures::Instrument">Instrument</a> for T</code><a href="#impl-Instrument-1" class="anchor"></a><a class="srclink" href="https://docs.rs/tracing-futures/0.2.3/src/tracing_futures/lib.rs.html#248" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.instrument-1" class="method hidden"><code>pub fn <a href="https://docs.rs/tracing-futures/0.2.3/tracing_futures/trait.Instrument.html#method.instrument" class="fnname">instrument</a>(self, span: <a class="struct" href="https://docs.rs/tracing/0.1.23/tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -> <a class="struct" href="https://docs.rs/tracing-futures/0.2.3/tracing_futures/struct.Instrumented.html" title="struct tracing_futures::Instrumented">Instrumented</a><Self></code><a class="srclink" href="https://docs.rs/tracing-futures/0.2.3/src/tracing_futures/lib.rs.html#129" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Instruments this type with the provided <code>Span</code>, returning an
|
||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing-futures/0.2.3/tracing_futures/trait.Instrument.html#method.instrument">Read more</a></p>
|
||
</div><h4 id="method.in_current_span-1" class="method hidden"><code>pub fn <a href="https://docs.rs/tracing-futures/0.2.3/tracing_futures/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -> <a class="struct" href="https://docs.rs/tracing-futures/0.2.3/tracing_futures/struct.Instrumented.html" title="struct tracing_futures::Instrumented">Instrumented</a><Self></code><a class="srclink" href="https://docs.rs/tracing-futures/0.2.3/src/tracing_futures/lib.rs.html#166" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Instruments this type with the <a href="https://docs.rs/tracing/latest/tracing/span/struct.Span.html#method.current">current</a> <code>Span</code>, returning an
|
||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing-futures/0.2.3/tracing_futures/trait.Instrument.html#method.in_current_span">Read more</a></p>
|
||
</div></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#534-541" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#538" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id="impl-Same%3CT%3E" class="impl"><code class="in-band">impl<T> Same<T> for T</code><a href="#impl-Same%3CT%3E" class="anchor"></a></h3><div class="impl-items"><h4 id="associatedtype.Output" class="type"><code>type <a href="#associatedtype.Output" class="type">Output</a> = T</code></h4><div class='docblock'><p>Should always be <code>Self</code></p>
|
||
</div></div><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#582-591" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#568-577" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div><h4 id="method.try_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id="impl-VZip%3CV%3E" class="impl"><code class="in-band">impl<V, T> VZip<V> for T <span class="where fmt-newline">where<br> V: MultiLane<T>, </span></code><a href="#impl-VZip%3CV%3E" class="anchor"></a></h3><div class="impl-items"><h4 id="method.vzip" class="method hidden"><code>pub fn <a href="#method.vzip" class="fnname">vzip</a>(self) -> V</code></h4></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game"></div>
|
||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html> |