<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="The top-level data that lasts through the entire game, no matter what state the game is in."><metaname="keywords"content="rust, rustlang, rust-lang, App"><title>App in game::app - Rust</title><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceSerif4-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../FiraSans-Regular.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../FiraSans-Medium.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceCodePro-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceSerif4-Bold.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceCodePro-Semibold.ttf.woff2"><linkrel="stylesheet"type="text/css"href="../../normalize.css"><linkrel="stylesheet"type="text/css"href="../../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../../ayu.css"disabled><linkrel="stylesheet"type="text/css"href="../../dark.css"disabled><linkrel="stylesheet"type="text/css"href="../../light.css"id="themeStyle"><scriptid="default-settings"></script><scriptsrc="../../storage.js"></script><scriptsrc="../../crates.js"></script><scriptdefersrc="../../main.js"></script>
<noscript><linkrel="stylesheet"href="../../noscript.css"></noscript><linkrel="alternate icon"type="image/png"href="../../favicon-16x16.png"><linkrel="alternate icon"type="image/png"href="../../favicon-32x32.png"><linkrel="icon"type="image/svg+xml"href="../../favicon.svg"></head><bodyclass="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle">☰</button><aclass="sidebar-logo"href="../../game/index.html"><divclass="logo-container"><imgclass="rust-logo"src="../../rust-logo.svg"alt="logo"></div>
}</code></pre></div><detailsclass="rustdoc-toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>The top-level data that lasts through the entire game, no matter what state the game is in.</p>
</div></details><h2id="fields"class="fields small-section-header">Fields<ahref="#fields"class="anchor"></a></h2><spanid="structfield.primary"class="structfield small-section-header"><ahref="#structfield.primary"class="anchor field"></a><code>primary: <aclass="struct"href="struct.PerMap.html"title="struct game::app::PerMap">PerMap</a></code></span><divclass="docblock"><p>State (like the simulation and drawing stuff) associated with the “primary” map.</p>
</div><spanid="structfield.secondary"class="structfield small-section-header"><ahref="#structfield.secondary"class="anchor field"></a><code>secondary: <aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="struct.PerMap.html"title="struct game::app::PerMap">PerMap</a>></code></span><divclass="docblock"><p>Represents state for a different version of the <code>primary</code> map. <code>swap_map</code> can be used to
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.swap_map"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/app.rs.html#464-468">source</a></span><ahref="#method.swap_map"class="anchor"></a><h4class="code-header">pub fn <ahref="#method.swap_map"class="fnname">swap_map</a>(&mut self)</h4></section></summary><divclass="docblock"><p>This swaps the primary and secondary PerMaps. Depending on what state the rest of the app
</div></details><sectionid="method.sim_time"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/map_gui/lib.rs.html#60">source</a></span><ahref="#method.sim_time"class="anchor"></a><h4class="code-header">fn <ahref="../../map_gui/trait.AppLike.html#method.sim_time"class="fnname">sim_time</a>(&self) -><aclass="struct"href="../../geom/time/struct.Time.html"title="struct geom::time::Time">Time</a></h4></section><sectionid="method.current_stage_and_remaining_time"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/map_gui/lib.rs.html#63">source</a></span><ahref="#method.current_stage_and_remaining_time"class="anchor"></a><h4class="code-header">fn <ahref="../../map_gui/trait.AppLike.html#method.current_stage_and_remaining_time"class="fnname">current_stage_and_remaining_time</a>(<br> &self, <br> id: <aclass="struct"href="../../map_model/objects/intersection/struct.IntersectionID.html"title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a><br>) -><aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a><aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>, <aclass="struct"href="../../geom/duration/struct.Duration.html"title="struct geom::duration::Duration">Duration</a><aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a></h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.change_color_scheme"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/map_gui/lib.rs.html#68">source</a></span><ahref="#method.change_color_scheme"class="anchor"></a><h4class="code-header">fn <ahref="../../map_gui/trait.AppLike.html#method.change_color_scheme"class="fnname">change_color_scheme</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> cs: <aclass="enum"href="../../map_gui/colors/enum.ColorSchemeChoice.html"title="enum map_gui::colors::ColorSchemeChoice">ColorSchemeChoice</a><br>) -><aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'><p>Change the color scheme. Idempotent. Return true if there was a change.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-MinimapControls%3CApp%3E"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/minimap.rs.html#15-109">source</a></span><ahref="#impl-MinimapControls%3CApp%3E"class="anchor"></a><h3class="code-header in-band">impl <aclass="trait"href="../../map_gui/tools/minimap/trait.MinimapControls.html"title="trait map_gui::tools::minimap::MinimapControls">MinimapControls</a><<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/minimap/struct.MinimapController.html"title="struct game::sandbox::minimap::MinimapController">MinimapController</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.has_zorder"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/minimap.rs.html#16-18">source</a></span><ahref="#method.has_zorder"class="anchor"></a><h4class="code-header">fn <ahref="../../map_gui/tools/minimap/trait.MinimapControls.html#tymethod.has_zorder"class="fnname">has_zorder</a>(&self, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'><p>Should the user be able to control the z-order visible? The control is only present when
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.has_layer"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/minimap.rs.html#19-21">source</a></span><ahref="#method.has_layer"class="anchor"></a><h4class="code-header">fn <ahref="../../map_gui/tools/minimap/trait.MinimapControls.html#method.has_layer"class="fnname">has_layer</a>(&self, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'><p>Is there some additional layer displayed on the minimap? If this changes, the panel gets
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_extra"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/minimap.rs.html#23-30">source</a></span><ahref="#method.draw_extra"class="anchor"></a><h4class="code-header">fn <ahref="../../map_gui/tools/minimap/trait.MinimapControls.html#method.draw_extra"class="fnname">draw_extra</a>(&self, g: &mut GfxCtx<'_>, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>)</h4></section></summary><divclass='docblock'><p>Draw extra stuff on the minimap, just pulling from the app.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.make_unzoomed_panel"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/minimap.rs.html#32-51">source</a></span><ahref="#method.make_unzoomed_panel"class="anchor"></a><h4class="code-header">fn <ahref="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_unzoomed_panel"class="fnname">make_unzoomed_panel</a>(&self, ctx: &mut EventCtx<'_>, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Panel</h4></section></summary><divclass='docblock'><p>When unzoomed, display this panel. By default, no controls when unzoomed.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.make_legend"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/minimap.rs.html#52-64">source</a></span><ahref="#method.make_legend"class="anchor"></a><h4class="code-header">fn <ahref="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_legend"class="fnname">make_legend</a>(&self, ctx: &mut EventCtx<'_>, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Widget</h4></section></summary><divclass='docblock'><p>A row beneath the minimap in the zoomed view, usually used as a legend for things on the
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.make_zoomed_side_panel"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/minimap.rs.html#66-68">source</a></span><ahref="#method.make_zoomed_side_panel"class="anchor"></a><h4class="code-header">fn <ahref="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_zoomed_side_panel"class="fnname">make_zoomed_side_panel</a>(&self, ctx: &mut EventCtx<'_>, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Widget</h4></section></summary><divclass='docblock'><p>Controls to be placed to the left to the zoomed-in panel</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_clicked"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/minimap.rs.html#70-99">source</a></span><ahref="#method.panel_clicked"class="anchor"></a><h4class="code-header">fn <ahref="../../map_gui/tools/minimap/trait.MinimapControls.html#method.panel_clicked"class="fnname">panel_clicked</a>(<br> &self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> action: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>>></h4></section></summary><divclass='docblock'><p>If a button is clicked that was produced by some method in this trait, respond to it here.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SharedAppState"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/app.rs.html#824-883">source</a></span><ahref="#impl-SharedAppState"class="anchor"></a><h3class="code-header in-band">impl SharedAppState for <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.before_event"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/app.rs.html#825-827">source</a></span><ahref="#method.before_event"class="anchor"></a><h4class="code-header">fn <ahref="#method.before_event"class="fnname">before_event</a>(&mut self)</h4></section></summary><divclass='docblock'><p>Before <code>State::event</code> is called, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_default"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/app.rs.html#829-831">source</a></span><ahref="#method.draw_default"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_default"class="fnname">draw_default</a>(&self, g: &mut GfxCtx<'_>)</h4></section></summary><divclass='docblock'><p>When DrawBaselayer::DefaultDraw is called, run this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.dump_before_abort"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/app.rs.html#833-874">source</a></span><ahref="#method.dump_before_abort"class="anchor"></a><h4class="code-header">fn <ahref="#method.dump_before_abort"class="fnname">dump_before_abort</a>(&self, canvas: &Canvas)</h4></section></summary><divclass='docblock'><p>Will be called if <code>State::event</code> or <code>State::draw</code> panics.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.before_quit"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/app.rs.html#876-878">source</a></span><ahref="#method.before_quit"class="anchor"></a><h4class="code-header">fn <ahref="#method.before_quit"class="fnname">before_quit</a>(&self, canvas: &Canvas)</h4></section></summary><divclass='docblock'><p>Called before a normal exit, like window close</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.free_memory"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/app.rs.html#880-882">source</a></span><ahref="#method.free_memory"class="anchor"></a><h4class="code-header">fn <ahref="#method.free_memory"class="fnname">free_memory</a>(&mut self)</h4></section></summary><divclass='docblock'><p>If widgetry determines the video card is low on memory, this may be called. The application
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/challenges/mod.rs.html#240-279">source</a></span><ahref="#impl-SimpleState%3CApp%3E"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../challenges/struct.ChallengesPicker.html"title="struct game::challenges::ChallengesPicker">ChallengesPicker</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/challenges/mod.rs.html#241-278">source</a></span><ahref="#method.on_click"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> _: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom"class="method trait-impl has-srclink"><ahref="#method.on_click_custom"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed"class="method trait-impl has-srclink"><ahref="#method.panel_changed"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_mouseover"class="method trait-impl has-srclink"><ahref="#method.on_mouseover"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_mouseover"class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Called when the mouse has moved.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.other_event"class="method trait-impl has-srclink"><ahref="#method.other_event"class="anchor"></a><h4class="code-header">fn <ahref="#method.other_event"class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></section></summary><divclass='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
</div></details><sectionid="method.draw-3"class="method trait-impl has-srclink"><ahref="#method.draw-3"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>A)</h4></section><sectionid="method.draw_baselayer-2"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-2"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-1"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/common/share.rs.html#93-160">source</a></span><ahref="#impl-SimpleState%3CApp%3E-1"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../common/share/struct.ShareProposal.html"title="struct game::common::share::ShareProposal">ShareProposal</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-1"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/common/share.rs.html#94-155">source</a></span><ahref="#method.on_click-1"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> _: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><sectionid="method.draw-4"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/common/share.rs.html#157-159">source</a></span><ahref="#method.draw-4"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>)</h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-1"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-1"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-1"class="method trait-impl has-srclink"><ahref="#method.panel_changed-1"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_mouseover-1"class="method trait-impl has-srclink"><ahref="#method.on_mouseover-1"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_mouseover"class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Called when the mouse has moved.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.other_event-1"class="method trait-impl has-srclink"><ahref="#method.other_event-1"class="anchor"></a><h4class="code-header">fn <ahref="#method.other_event"class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></section></summary><divclass='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
</div></details><sectionid="method.draw_baselayer-3"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-3"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-10"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/offsets.rs.html#66-98">source</a></span><ahref="#impl-SimpleState%3CApp%3E-10"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/traffic_signals/offsets/struct.ShowAbsolute.html"title="struct game::edit::traffic_signals::offsets::ShowAbsolute">ShowAbsolute</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-10"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/offsets.rs.html#67-76">source</a></span><ahref="#method.on_click-10"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> _: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><sectionid="method.draw-37"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/offsets.rs.html#93-97">source</a></span><ahref="#method.draw-37"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>)</h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-10"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-10"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-10"class="method trait-impl has-srclink"><ahref="#method.panel_changed-10"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><sectionid="method.draw_baselayer-36"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-36"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-11"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/offsets.rs.html#156-197">source</a></span><ahref="#impl-SimpleState%3CApp%3E-11"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/traffic_signals/offsets/struct.ShowRelative.html"title="struct game::edit::traffic_signals::offsets::ShowRelative">ShowRelative</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-11"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/offsets.rs.html#157-168">source</a></span><ahref="#method.on_click-11"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> _: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><sectionid="method.draw-38"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/offsets.rs.html#192-196">source</a></span><ahref="#method.draw-38"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>)</h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-11"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-11"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-11"class="method trait-impl has-srclink"><ahref="#method.panel_changed-11"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><sectionid="method.draw_baselayer-37"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-37"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-12"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/offsets.rs.html#288-326">source</a></span><ahref="#impl-SimpleState%3CApp%3E-12"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/traffic_signals/offsets/struct.TuneRelative.html"title="struct game::edit::traffic_signals::offsets::TuneRelative">TuneRelative</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-12"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/offsets.rs.html#289-316">source</a></span><ahref="#method.on_click-12"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> panel: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><sectionid="method.draw-39"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/offsets.rs.html#323-325">source</a></span><ahref="#method.draw-39"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>)</h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-12"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-12"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-12"class="method trait-impl has-srclink"><ahref="#method.panel_changed-12"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_mouseover-12"class="method trait-impl has-srclink"><ahref="#method.on_mouseover-12"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_mouseover"class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Called when the mouse has moved.</p>
</div></details><sectionid="method.draw_baselayer-38"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-38"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-13"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/pregame/proposals.rs.html#108-135">source</a></span><ahref="#impl-SimpleState%3CApp%3E-13"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../pregame/proposals/struct.Proposals.html"title="struct game::pregame::proposals::Proposals">Proposals</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-13"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/pregame/proposals.rs.html#109-134">source</a></span><ahref="#method.on_click-13"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> _: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-13"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-13"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-13"class="method trait-impl has-srclink"><ahref="#method.panel_changed-13"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_mouseover-13"class="method trait-impl has-srclink"><ahref="#method.on_mouseover-13"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_mouseover"class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Called when the mouse has moved.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.other_event-13"class="method trait-impl has-srclink"><ahref="#method.other_event-13"class="anchor"></a><h4class="code-header">fn <ahref="#method.other_event"class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></section></summary><divclass='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
</div></details><sectionid="method.draw-49"class="method trait-impl has-srclink"><ahref="#method.draw-49"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>A)</h4></section><sectionid="method.draw_baselayer-48"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-48"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-14"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/actdev.rs.html#271-284">source</a></span><ahref="#impl-SimpleState%3CApp%3E-14"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/gameplay/actdev/struct.About.html"title="struct game::sandbox::gameplay::actdev::About">About</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-14"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/actdev.rs.html#272-279">source</a></span><ahref="#method.on_click-14"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> _: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><sectionid="method.draw-60"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/actdev.rs.html#281-283">source</a></span><ahref="#method.draw-60"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>)</h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-14"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-14"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-14"class="method trait-impl has-srclink"><ahref="#method.panel_changed-14"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_mouseover-14"class="method trait-impl has-srclink"><ahref="#method.on_mouseover-14"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_mouseover"class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Called when the mouse has moved.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.other_event-14"class="method trait-impl has-srclink"><ahref="#method.other_event-14"class="anchor"></a><h4class="code-header">fn <ahref="#method.other_event"class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></section></summary><divclass='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
</div></details><sectionid="method.draw_baselayer-59"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-59"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-15"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/freeform/mod.rs.html#286-345">source</a></span><ahref="#impl-SimpleState%3CApp%3E-15"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/gameplay/freeform/struct.ChangeScenario.html"title="struct game::sandbox::gameplay::freeform::ChangeScenario">ChangeScenario</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-15"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/freeform/mod.rs.html#287-340">source</a></span><ahref="#method.on_click-15"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> _: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><sectionid="method.draw-63"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/freeform/mod.rs.html#342-344">source</a></span><ahref="#method.draw-63"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>)</h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-15"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-15"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-15"class="method trait-impl has-srclink"><ahref="#method.panel_changed-15"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_mouseover-15"class="method trait-impl has-srclink"><ahref="#method.on_mouseover-15"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_mouseover"class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Called when the mouse has moved.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.other_event-15"class="method trait-impl has-srclink"><ahref="#method.other_event-15"class="anchor"></a><h4class="code-header">fn <ahref="#method.other_event"class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></section></summary><divclass='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
</div></details><sectionid="method.draw_baselayer-62"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-62"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-16"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/play_scenario.rs.html#643-662">source</a></span><ahref="#impl-SimpleState%3CApp%3E-16"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/gameplay/play_scenario/struct.DepartureSummary.html"title="struct game::sandbox::gameplay::play_scenario::DepartureSummary">DepartureSummary</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-16"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/play_scenario.rs.html#644-661">source</a></span><ahref="#method.on_click-16"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> _: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-16"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-16"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-16"class="method trait-impl has-srclink"><ahref="#method.panel_changed-16"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_mouseover-16"class="method trait-impl has-srclink"><ahref="#method.on_mouseover-16"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_mouseover"class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Called when the mouse has moved.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.other_event-16"class="method trait-impl has-srclink"><ahref="#method.other_event-16"class="anchor"></a><h4class="code-header">fn <ahref="#method.other_event"class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></section></summary><divclass='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
</div></details><sectionid="method.draw-66"class="method trait-impl has-srclink"><ahref="#method.draw-66"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>A)</h4></section><sectionid="method.draw_baselayer-65"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-65"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-2"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/blockfinder.rs.html#374-437">source</a></span><ahref="#impl-SimpleState%3CApp%3E-2"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../debug/blockfinder/struct.OneBlock.html"title="struct game::debug::blockfinder::OneBlock">OneBlock</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-2"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/blockfinder.rs.html#375-427">source</a></span><ahref="#method.on_click-2"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> _: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><sectionid="method.draw-9"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/blockfinder.rs.html#434-436">source</a></span><ahref="#method.draw-9"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>)</h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-2"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-2"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-2"class="method trait-impl has-srclink"><ahref="#method.panel_changed-2"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_mouseover-2"class="method trait-impl has-srclink"><ahref="#method.on_mouseover-2"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_mouseover"class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Called when the mouse has moved.</p>
</div></details><sectionid="method.draw_baselayer-8"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-8"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-3"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/uber_turns.rs.html#53-120">source</a></span><ahref="#impl-SimpleState%3CApp%3E-3"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../debug/uber_turns/struct.UberTurnPicker.html"title="struct game::debug::uber_turns::UberTurnPicker">UberTurnPicker</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-3"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/uber_turns.rs.html#54-88">source</a></span><ahref="#method.on_click-3"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> _: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><sectionid="method.draw-17"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/uber_turns.rs.html#107-119">source</a></span><ahref="#method.draw-17"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>)</h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-3"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-3"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-3"class="method trait-impl has-srclink"><ahref="#method.panel_changed-3"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><sectionid="method.draw_baselayer-16"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-16"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-4"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/uber_turns.rs.html#201-260">source</a></span><ahref="#impl-SimpleState%3CApp%3E-4"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../debug/uber_turns/struct.UberTurnViewer.html"title="struct game::debug::uber_turns::UberTurnViewer">UberTurnViewer</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-4"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/uber_turns.rs.html#202-227">source</a></span><ahref="#method.on_click-4"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> _: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-4"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/uber_turns.rs.html#228-241">source</a></span><ahref="#method.panel_changed-4"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> panel: &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><sectionid="method.draw_baselayer-17"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/uber_turns.rs.html#248-250">source</a></span><ahref="#method.draw_baselayer-17"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section><sectionid="method.draw-18"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/uber_turns.rs.html#252-259">source</a></span><ahref="#method.draw-18"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>)</h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-4"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-4"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_mouseover-4"class="method trait-impl has-srclink"><ahref="#method.on_mouseover-4"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_mouseover"class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Called when the mouse has moved.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-5"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/compare_counts.rs.html#55-79">source</a></span><ahref="#impl-SimpleState%3CApp%3E-5"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../devtools/compare_counts/struct.GenericCompareCounts.html"title="struct game::devtools::compare_counts::GenericCompareCounts">GenericCompareCounts</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-5"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/compare_counts.rs.html#56-69">source</a></span><ahref="#method.on_click-5"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> panel: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><sectionid="method.draw-22"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/compare_counts.rs.html#76-78">source</a></span><ahref="#method.draw-22"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>)</h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-5"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-5"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-5"class="method trait-impl has-srclink"><ahref="#method.panel_changed-5"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_mouseover-5"class="method trait-impl has-srclink"><ahref="#method.on_mouseover-5"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_mouseover"class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Called when the mouse has moved.</p>
</div></details><sectionid="method.draw_baselayer-21"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-21"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-6"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/story.rs.html#354-400">source</a></span><ahref="#impl-SimpleState%3CApp%3E-6"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../devtools/story/struct.EditingMarker.html"title="struct game::devtools::story::EditingMarker">EditingMarker</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-6"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/story.rs.html#355-395">source</a></span><ahref="#method.on_click-6"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> panel: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><sectionid="method.draw_baselayer-27"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/story.rs.html#397-399">source</a></span><ahref="#method.draw_baselayer-27"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-6"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-6"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-6"class="method trait-impl has-srclink"><ahref="#method.panel_changed-6"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_mouseover-6"class="method trait-impl has-srclink"><ahref="#method.on_mouseover-6"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_mouseover"class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Called when the mouse has moved.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.other_event-6"class="method trait-impl has-srclink"><ahref="#method.other_event-6"class="anchor"></a><h4class="code-header">fn <ahref="#method.other_event"class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></section></summary><divclass='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
</div></details><sectionid="method.draw-28"class="method trait-impl has-srclink"><ahref="#method.draw-28"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>A)</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-7"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/mod.rs.html#99-184">source</a></span><ahref="#impl-SimpleState%3CApp%3E-7"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../devtools/struct.DevToolsMode.html"title="struct game::devtools::DevToolsMode">DevToolsMode</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-7"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/mod.rs.html#100-183">source</a></span><ahref="#method.on_click-7"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> _: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-7"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-7"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-7"class="method trait-impl has-srclink"><ahref="#method.panel_changed-7"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_mouseover-7"class="method trait-impl has-srclink"><ahref="#method.on_mouseover-7"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_mouseover"class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Called when the mouse has moved.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.other_event-7"class="method trait-impl has-srclink"><ahref="#method.other_event-7"class="anchor"></a><h4class="code-header">fn <ahref="#method.other_event"class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></section></summary><divclass='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
</div></details><sectionid="method.draw-30"class="method trait-impl has-srclink"><ahref="#method.draw-30"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>A)</h4></section><sectionid="method.draw_baselayer-29"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-29"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-8"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/stop_signs.rs.html#100-254">source</a></span><ahref="#impl-SimpleState%3CApp%3E-8"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/stop_signs/struct.StopSignEditor.html"title="struct game::edit::stop_signs::StopSignEditor">StopSignEditor</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-8"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/stop_signs.rs.html#101-170">source</a></span><ahref="#method.on_click-8"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> _: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><sectionid="method.draw-35"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/stop_signs.rs.html#216-253">source</a></span><ahref="#method.draw-35"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>)</h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-8"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-8"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-8"class="method trait-impl has-srclink"><ahref="#method.panel_changed-8"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<A>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><sectionid="method.draw_baselayer-34"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-34"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-SimpleState%3CApp%3E-9"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/edits.rs.html#107-177">source</a></span><ahref="#impl-SimpleState%3CApp%3E-9"class="anchor"></a><h3class="code-header in-band">impl SimpleState<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/traffic_signals/edits/struct.ChangeDuration.html"title="struct game::edit::traffic_signals::edits::ChangeDuration">ChangeDuration</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click-9"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/edits.rs.html#108-139">source</a></span><ahref="#method.on_click-9"class="anchor"></a><h4class="code-header">fn <aclass="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> x: &<aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> panel: &mut Panel<br>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.panel_changed-9"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/edits.rs.html#141-165">source</a></span><ahref="#method.panel_changed-9"class="anchor"></a><h4class="code-header">fn <ahref="#method.panel_changed"class="fnname">panel_changed</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>, <br> panel: &mut Panel<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>>></h4></section></summary><divclass='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
</div></details><sectionid="method.draw_baselayer-35"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/edits.rs.html#174-176">source</a></span><ahref="#method.draw_baselayer-35"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_click_custom-9"class="method trait-impl has-srclink"><ahref="#method.on_click_custom-9"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_click_custom"class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A, <br> _action: <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="../../abstutil/clone/trait.CloneableAny.html"title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &mut Panel<br>) -> Transition<A></h4></section></summary><divclass='docblock'><p>Called when something on the panel has been clicked.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_mouseover-9"class="method trait-impl has-srclink"><ahref="#method.on_mouseover-9"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_mouseover"class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Called when the mouse has moved.</p>
</div></details><sectionid="method.draw-36"class="method trait-impl has-srclink"><ahref="#method.draw-36"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw"class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>A)</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/challenges/cutscene.rs.html#90-132">source</a></span><ahref="#impl-State%3CApp%3E"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../challenges/cutscene/struct.CutscenePlayer.html"title="struct game::challenges::cutscene::CutscenePlayer">CutscenePlayer</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/challenges/cutscene.rs.html#91-127">source</a></span><ahref="#method.event"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy"class="method trait-impl has-srclink"><ahref="#method.on_destroy"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate"class="method trait-impl has-srclink"><ahref="#method.recreate"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-1"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/challenges/cutscene.rs.html#284-299">source</a></span><ahref="#impl-State%3CApp%3E-1"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../challenges/cutscene/struct.ShowMessage.html"title="struct game::challenges::cutscene::ShowMessage">ShowMessage</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-1"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/challenges/cutscene.rs.html#285-293">source</a></span><ahref="#method.event-1"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-1"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-1"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-1"class="method trait-impl has-srclink"><ahref="#method.on_destroy-1"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-1"class="method trait-impl has-srclink"><ahref="#method.recreate-1"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-10"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/routes.rs.html#365-463">source</a></span><ahref="#impl-State%3CApp%3E-10"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../debug/routes/struct.AllRoutesExplorer.html"title="struct game::debug::routes::AllRoutesExplorer">AllRoutesExplorer</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-10"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/routes.rs.html#366-453">source</a></span><ahref="#method.event-10"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-13"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-13"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-10"class="method trait-impl has-srclink"><ahref="#method.on_destroy-10"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-10"class="method trait-impl has-srclink"><ahref="#method.recreate-10"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-11"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/routes.rs.html#544-583">source</a></span><ahref="#impl-State%3CApp%3E-11"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../debug/routes/struct.PathCostDebugger.html"title="struct game::debug::routes::PathCostDebugger">PathCostDebugger</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-11"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/routes.rs.html#545-574">source</a></span><ahref="#method.event-11"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-14"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-14"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-11"class="method trait-impl has-srclink"><ahref="#method.on_destroy-11"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-11"class="method trait-impl has-srclink"><ahref="#method.recreate-11"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-12"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/select_roads.rs.html#36-63">source</a></span><ahref="#impl-State%3CApp%3E-12"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../debug/select_roads/struct.BulkSelect.html"title="struct game::debug::select_roads::BulkSelect">BulkSelect</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-12"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/select_roads.rs.html#37-57">source</a></span><ahref="#method.event-12"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-15"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-15"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-12"class="method trait-impl has-srclink"><ahref="#method.on_destroy-12"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-12"class="method trait-impl has-srclink"><ahref="#method.recreate-12"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-13"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/mod.rs.html#213-501">source</a></span><ahref="#impl-State%3CApp%3E-13"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../debug/struct.DebugMode.html"title="struct game::debug::DebugMode">DebugMode</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-13"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/mod.rs.html#214-472">source</a></span><ahref="#method.event-13"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-18"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/mod.rs.html#474-476">source</a></span><ahref="#method.draw_baselayer-18"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-13"class="method trait-impl has-srclink"><ahref="#method.on_destroy-13"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-13"class="method trait-impl has-srclink"><ahref="#method.recreate-13"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-14"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/mod.rs.html#967-995">source</a></span><ahref="#impl-State%3CApp%3E-14"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../debug/struct.ScreenshotTest.html"title="struct game::debug::ScreenshotTest">ScreenshotTest</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-14"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/mod.rs.html#968-993">source</a></span><ahref="#method.event-14"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-19"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-19"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-14"class="method trait-impl has-srclink"><ahref="#method.on_destroy-14"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-14"class="method trait-impl has-srclink"><ahref="#method.recreate-14"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-15"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/collisions.rs.html#271-304">source</a></span><ahref="#impl-State%3CApp%3E-15"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../devtools/collisions/struct.CollisionsViewer.html"title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-15"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/collisions.rs.html#272-298">source</a></span><ahref="#method.event-15"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-20"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-20"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-15"class="method trait-impl has-srclink"><ahref="#method.on_destroy-15"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-15"class="method trait-impl has-srclink"><ahref="#method.recreate-15"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-16"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/destinations.rs.html#112-168">source</a></span><ahref="#impl-State%3CApp%3E-16"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../devtools/destinations/struct.PopularDestinations.html"title="struct game::devtools::destinations::PopularDestinations">PopularDestinations</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-16"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/destinations.rs.html#113-146">source</a></span><ahref="#method.event-16"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-22"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-22"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-16"class="method trait-impl has-srclink"><ahref="#method.on_destroy-16"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-16"class="method trait-impl has-srclink"><ahref="#method.recreate-16"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-17"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/kml.rs.html#111-208">source</a></span><ahref="#impl-State%3CApp%3E-17"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../devtools/kml/struct.ViewKML.html"title="struct game::devtools::kml::ViewKML">ViewKML</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-17"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/kml.rs.html#112-193">source</a></span><ahref="#method.event-17"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-23"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-23"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-17"class="method trait-impl has-srclink"><ahref="#method.on_destroy-17"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-17"class="method trait-impl has-srclink"><ahref="#method.recreate-17"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-18"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/polygon.rs.html#46-79">source</a></span><ahref="#impl-State%3CApp%3E-18"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../devtools/polygon/struct.PolygonEditor.html"title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-18"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/polygon.rs.html#47-73">source</a></span><ahref="#method.event-18"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-24"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-24"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-18"class="method trait-impl has-srclink"><ahref="#method.on_destroy-18"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-18"class="method trait-impl has-srclink"><ahref="#method.recreate-18"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-19"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/scenario.rs.html#90-121">source</a></span><ahref="#impl-State%3CApp%3E-19"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../devtools/scenario/struct.ScenarioManager.html"title="struct game::devtools::scenario::ScenarioManager">ScenarioManager</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-19"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/scenario.rs.html#91-114">source</a></span><ahref="#method.event-19"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-25"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-25"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-19"class="method trait-impl has-srclink"><ahref="#method.on_destroy-19"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-19"class="method trait-impl has-srclink"><ahref="#method.recreate-19"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-2"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/common/warp.rs.html#40-66">source</a></span><ahref="#impl-State%3CApp%3E-2"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../common/warp/struct.Warping.html"title="struct game::common::warp::Warping">Warping</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-2"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/common/warp.rs.html#41-63">source</a></span><ahref="#method.event-2"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-4"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-4"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-2"class="method trait-impl has-srclink"><ahref="#method.on_destroy-2"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-2"class="method trait-impl has-srclink"><ahref="#method.recreate-2"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-20"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/story.rs.html#133-269">source</a></span><ahref="#impl-State%3CApp%3E-20"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../devtools/story/struct.StoryMapEditor.html"title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-20"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/story.rs.html#134-255">source</a></span><ahref="#method.event-20"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-26"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/story.rs.html#257-259">source</a></span><ahref="#method.draw_baselayer-26"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-20"class="method trait-impl has-srclink"><ahref="#method.on_destroy-20"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-20"class="method trait-impl has-srclink"><ahref="#method.recreate-20"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-21"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/story.rs.html#407-438">source</a></span><ahref="#impl-State%3CApp%3E-21"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../devtools/story/struct.DrawFreehand.html"title="struct game::devtools::story::DrawFreehand">DrawFreehand</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-21"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/story.rs.html#408-429">source</a></span><ahref="#method.event-21"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-28"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/devtools/story.rs.html#431-433">source</a></span><ahref="#method.draw_baselayer-28"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-21"class="method trait-impl has-srclink"><ahref="#method.on_destroy-21"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-21"class="method trait-impl has-srclink"><ahref="#method.recreate-21"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-22"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/crosswalks.rs.html#67-106">source</a></span><ahref="#impl-State%3CApp%3E-22"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/crosswalks/struct.CrosswalkEditor.html"title="struct game::edit::crosswalks::CrosswalkEditor">CrosswalkEditor</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-22"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/crosswalks.rs.html#68-100">source</a></span><ahref="#method.event-22"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-30"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-30"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-22"class="method trait-impl has-srclink"><ahref="#method.on_destroy-22"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-22"class="method trait-impl has-srclink"><ahref="#method.recreate-22"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-23"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/multiple_roads.rs.html#156-278">source</a></span><ahref="#impl-State%3CApp%3E-23"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/multiple_roads/struct.SelectSegments.html"title="struct game::edit::multiple_roads::SelectSegments">SelectSegments</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-23"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/multiple_roads.rs.html#157-243">source</a></span><ahref="#method.event-23"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-31"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-31"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-23"class="method trait-impl has-srclink"><ahref="#method.recreate-23"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-24"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/roads.rs.html#192-498">source</a></span><ahref="#impl-State%3CApp%3E-24"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/roads/struct.RoadEditor.html"title="struct game::edit::roads::RoadEditor">RoadEditor</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-24"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/roads.rs.html#193-489">source</a></span><ahref="#method.event-24"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-32"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-32"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-24"class="method trait-impl has-srclink"><ahref="#method.on_destroy-24"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-24"class="method trait-impl has-srclink"><ahref="#method.recreate-24"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-25"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/routes.rs.html#53-91">source</a></span><ahref="#impl-State%3CApp%3E-25"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/routes/struct.RouteEditor.html"title="struct game::edit::routes::RouteEditor">RouteEditor</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-25"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/routes.rs.html#54-86">source</a></span><ahref="#method.event-25"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-33"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-33"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-25"class="method trait-impl has-srclink"><ahref="#method.on_destroy-25"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-25"class="method trait-impl has-srclink"><ahref="#method.recreate-25"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-26"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/picker.rs.html#46-106">source</a></span><ahref="#impl-State%3CApp%3E-26"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/traffic_signals/picker/struct.SignalPicker.html"title="struct game::edit::traffic_signals::picker::SignalPicker">SignalPicker</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-26"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/picker.rs.html#47-90">source</a></span><ahref="#method.event-26"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-39"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-39"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-26"class="method trait-impl has-srclink"><ahref="#method.on_destroy-26"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-26"class="method trait-impl has-srclink"><ahref="#method.recreate-26"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-27"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/preview.rs.html#40-70">source</a></span><ahref="#impl-State%3CApp%3E-27"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/traffic_signals/preview/struct.PreviewTrafficSignal.html"title="struct game::edit::traffic_signals::preview::PreviewTrafficSignal">PreviewTrafficSignal</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-27"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/preview.rs.html#41-64">source</a></span><ahref="#method.event-27"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-40"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-40"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-27"class="method trait-impl has-srclink"><ahref="#method.on_destroy-27"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-27"class="method trait-impl has-srclink"><ahref="#method.recreate-27"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-28"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/mod.rs.html#192-543">source</a></span><ahref="#impl-State%3CApp%3E-28"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/traffic_signals/struct.TrafficSignalEditor.html"title="struct game::edit::traffic_signals::TrafficSignalEditor">TrafficSignalEditor</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-28"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/mod.rs.html#193-493">source</a></span><ahref="#method.event-28"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-41"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/traffic_signals/mod.rs.html#495-497">source</a></span><ahref="#method.draw_baselayer-41"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-28"class="method trait-impl has-srclink"><ahref="#method.on_destroy-28"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-28"class="method trait-impl has-srclink"><ahref="#method.recreate-28"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-29"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/zones.rs.html#83-166">source</a></span><ahref="#impl-State%3CApp%3E-29"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/zones/struct.ZoneEditor.html"title="struct game::edit::zones::ZoneEditor">ZoneEditor</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-29"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/zones.rs.html#84-157">source</a></span><ahref="#method.event-29"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-42"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-42"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-29"class="method trait-impl has-srclink"><ahref="#method.on_destroy-29"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-29"class="method trait-impl has-srclink"><ahref="#method.recreate-29"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-3"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/common/warp.rs.html#133-152">source</a></span><ahref="#impl-State%3CApp%3E-3"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../common/warp/struct.DebugWarp.html"title="struct game::common::warp::DebugWarp">DebugWarp</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-3"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/common/warp.rs.html#134-146">source</a></span><ahref="#method.event-3"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-5"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-5"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-3"class="method trait-impl has-srclink"><ahref="#method.on_destroy-3"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-3"class="method trait-impl has-srclink"><ahref="#method.recreate-3"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-30"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/mod.rs.html#140-399">source</a></span><ahref="#impl-State%3CApp%3E-30"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/struct.EditMode.html"title="struct game::edit::EditMode">EditMode</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-30"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/mod.rs.html#141-390">source</a></span><ahref="#method.event-30"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-43"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-43"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-30"class="method trait-impl has-srclink"><ahref="#method.on_destroy-30"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-30"class="method trait-impl has-srclink"><ahref="#method.recreate-30"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-31"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/mod.rs.html#518-558">source</a></span><ahref="#impl-State%3CApp%3E-31"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/struct.SaveEdits.html"title="struct game::edit::SaveEdits">SaveEdits</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-31"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/mod.rs.html#519-552">source</a></span><ahref="#method.event-31"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-44"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-44"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-31"class="method trait-impl has-srclink"><ahref="#method.on_destroy-31"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-31"class="method trait-impl has-srclink"><ahref="#method.recreate-31"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-32"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/mod.rs.html#620-693">source</a></span><ahref="#impl-State%3CApp%3E-32"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/struct.LoadEdits.html"title="struct game::edit::LoadEdits">LoadEdits</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-32"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/mod.rs.html#621-687">source</a></span><ahref="#method.event-32"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-45"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-45"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-32"class="method trait-impl has-srclink"><ahref="#method.on_destroy-32"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-32"class="method trait-impl has-srclink"><ahref="#method.recreate-32"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-33"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/mod.rs.html#985-1003">source</a></span><ahref="#impl-State%3CApp%3E-33"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../edit/struct.ConfirmDiscard.html"title="struct game::edit::ConfirmDiscard">ConfirmDiscard</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-33"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/edit/mod.rs.html#986-998">source</a></span><ahref="#method.event-33"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-46"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-46"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-33"class="method trait-impl has-srclink"><ahref="#method.on_destroy-33"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-33"class="method trait-impl has-srclink"><ahref="#method.recreate-33"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-34"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/layer/mod.rs.html#162-283">source</a></span><ahref="#impl-State%3CApp%3E-34"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../layer/struct.PickLayer.html"title="struct game::layer::PickLayer">PickLayer</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-34"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/layer/mod.rs.html#163-273">source</a></span><ahref="#method.event-34"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-47"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/layer/mod.rs.html#275-277">source</a></span><ahref="#method.draw_baselayer-47"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-34"class="method trait-impl has-srclink"><ahref="#method.on_destroy-34"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-34"class="method trait-impl has-srclink"><ahref="#method.recreate-34"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-35"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/commuter.rs.html#338-451">source</a></span><ahref="#impl-State%3CApp%3E-35"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/dashboards/commuter/struct.CommuterPatterns.html"title="struct game::sandbox::dashboards::commuter::CommuterPatterns">CommuterPatterns</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-35"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/commuter.rs.html#339-442">source</a></span><ahref="#method.event-35"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-49"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-49"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-35"class="method trait-impl has-srclink"><ahref="#method.on_destroy-35"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-35"class="method trait-impl has-srclink"><ahref="#method.recreate-35"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-36"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/misc.rs.html#63-80">source</a></span><ahref="#impl-State%3CApp%3E-36"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/dashboards/misc/struct.ActiveTraffic.html"title="struct game::sandbox::dashboards::misc::ActiveTraffic">ActiveTraffic</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-36"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/misc.rs.html#64-75">source</a></span><ahref="#method.event-36"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-50"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-50"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-36"class="method trait-impl has-srclink"><ahref="#method.on_destroy-36"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-36"class="method trait-impl has-srclink"><ahref="#method.recreate-36"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-37"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/misc.rs.html#203-253">source</a></span><ahref="#impl-State%3CApp%3E-37"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/dashboards/misc/struct.TransitRoutes.html"title="struct game::sandbox::dashboards::misc::TransitRoutes">TransitRoutes</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-37"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/misc.rs.html#204-248">source</a></span><ahref="#method.event-37"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-51"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-51"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-37"class="method trait-impl has-srclink"><ahref="#method.on_destroy-37"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-37"class="method trait-impl has-srclink"><ahref="#method.recreate-37"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-38"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/mode_shift.rs.html#60-102">source</a></span><ahref="#impl-State%3CApp%3E-38"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/dashboards/mode_shift/struct.ModeShift.html"title="struct game::sandbox::dashboards::mode_shift::ModeShift">ModeShift</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-38"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/mode_shift.rs.html#61-89">source</a></span><ahref="#method.event-38"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-52"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-52"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-38"class="method trait-impl has-srclink"><ahref="#method.on_destroy-38"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-38"class="method trait-impl has-srclink"><ahref="#method.recreate-38"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-39"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/parking_overhead.rs.html#74-106">source</a></span><ahref="#impl-State%3CApp%3E-39"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/dashboards/parking_overhead/struct.ParkingOverhead.html"title="struct game::sandbox::dashboards::parking_overhead::ParkingOverhead">ParkingOverhead</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-39"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/parking_overhead.rs.html#75-100">source</a></span><ahref="#method.event-39"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-53"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-53"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-39"class="method trait-impl has-srclink"><ahref="#method.on_destroy-39"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-39"class="method trait-impl has-srclink"><ahref="#method.recreate-39"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-4"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/blocked_by.rs.html#204-265">source</a></span><ahref="#impl-State%3CApp%3E-4"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../debug/blocked_by/struct.Viewer.html"title="struct game::debug::blocked_by::Viewer">Viewer</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-4"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/blocked_by.rs.html#205-251">source</a></span><ahref="#method.event-4"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-6"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-6"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-4"class="method trait-impl has-srclink"><ahref="#method.on_destroy-4"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-4"class="method trait-impl has-srclink"><ahref="#method.recreate-4"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-40"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/risks.rs.html#148-187">source</a></span><ahref="#impl-State%3CApp%3E-40"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/dashboards/risks/struct.RiskSummaries.html"title="struct game::sandbox::dashboards::risks::RiskSummaries">RiskSummaries</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-40"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/risks.rs.html#149-182">source</a></span><ahref="#method.event-40"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-54"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-54"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-40"class="method trait-impl has-srclink"><ahref="#method.on_destroy-40"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-40"class="method trait-impl has-srclink"><ahref="#method.recreate-40"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-41"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/selector.rs.html#58-116">source</a></span><ahref="#impl-State%3CApp%3E-41"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/dashboards/selector/struct.RectangularSelector.html"title="struct game::sandbox::dashboards::selector::RectangularSelector">RectangularSelector</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-41"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/selector.rs.html#59-103">source</a></span><ahref="#method.event-41"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-55"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-55"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-41"class="method trait-impl has-srclink"><ahref="#method.on_destroy-41"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-41"class="method trait-impl has-srclink"><ahref="#method.recreate-41"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-42"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#111-163">source</a></span><ahref="#impl-State%3CApp%3E-42"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/dashboards/traffic_signals/struct.TrafficSignalDemand.html"title="struct game::sandbox::dashboards::traffic_signals::TrafficSignalDemand">TrafficSignalDemand</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-42"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#112-148">source</a></span><ahref="#method.event-42"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-56"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#150-152">source</a></span><ahref="#method.draw_baselayer-56"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-42"class="method trait-impl has-srclink"><ahref="#method.on_destroy-42"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-42"class="method trait-impl has-srclink"><ahref="#method.recreate-42"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-43"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/travel_times.rs.html#112-163">source</a></span><ahref="#impl-State%3CApp%3E-43"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/dashboards/travel_times/struct.TravelTimes.html"title="struct game::sandbox::dashboards::travel_times::TravelTimes">TravelTimes</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-43"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/travel_times.rs.html#113-158">source</a></span><ahref="#method.event-43"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-57"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-57"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-43"class="method trait-impl has-srclink"><ahref="#method.on_destroy-43"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-43"class="method trait-impl has-srclink"><ahref="#method.recreate-43"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-44"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/trip_table.rs.html#122-211">source</a></span><ahref="#impl-State%3CApp%3E-44"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/dashboards/trip_table/struct.TripTable.html"title="struct game::sandbox::dashboards::trip_table::TripTable">TripTable</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-44"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/dashboards/trip_table.rs.html#123-196">source</a></span><ahref="#method.event-44"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-58"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-58"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-44"class="method trait-impl has-srclink"><ahref="#method.on_destroy-44"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-44"class="method trait-impl has-srclink"><ahref="#method.recreate-44"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-45"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/freeform/area_spawner.rs.html#83-166">source</a></span><ahref="#impl-State%3CApp%3E-45"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/gameplay/freeform/area_spawner/struct.AreaSpawner.html"title="struct game::sandbox::gameplay::freeform::area_spawner::AreaSpawner">AreaSpawner</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-45"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/freeform/area_spawner.rs.html#84-157">source</a></span><ahref="#method.event-45"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-60"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-60"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-45"class="method trait-impl has-srclink"><ahref="#method.on_destroy-45"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-45"class="method trait-impl has-srclink"><ahref="#method.recreate-45"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-46"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/freeform/spawner.rs.html#90-305">source</a></span><ahref="#impl-State%3CApp%3E-46"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/gameplay/freeform/spawner/struct.AgentSpawner.html"title="struct game::sandbox::gameplay::freeform::spawner::AgentSpawner">AgentSpawner</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-46"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/freeform/spawner.rs.html#91-289">source</a></span><ahref="#method.event-46"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-61"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-61"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-46"class="method trait-impl has-srclink"><ahref="#method.on_destroy-46"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-46"class="method trait-impl has-srclink"><ahref="#method.recreate-46"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-47"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/play_scenario.rs.html#302-404">source</a></span><ahref="#impl-State%3CApp%3E-47"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/gameplay/play_scenario/struct.EditScenarioModifiers.html"title="struct game::sandbox::gameplay::play_scenario::EditScenarioModifiers">EditScenarioModifiers</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-47"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/play_scenario.rs.html#303-398">source</a></span><ahref="#method.event-47"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-63"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-63"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-47"class="method trait-impl has-srclink"><ahref="#method.on_destroy-47"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-47"class="method trait-impl has-srclink"><ahref="#method.recreate-47"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-48"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/play_scenario.rs.html#517-571">source</a></span><ahref="#impl-State%3CApp%3E-48"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/gameplay/play_scenario/struct.ChangeMode.html"title="struct game::sandbox::gameplay::play_scenario::ChangeMode">ChangeMode</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-48"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/play_scenario.rs.html#518-565">source</a></span><ahref="#method.event-48"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-64"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-64"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-48"class="method trait-impl has-srclink"><ahref="#method.on_destroy-48"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-48"class="method trait-impl has-srclink"><ahref="#method.recreate-48"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-49"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/mod.rs.html#303-374">source</a></span><ahref="#impl-State%3CApp%3E-49"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/gameplay/struct.FinalScore.html"title="struct game::sandbox::gameplay::FinalScore">FinalScore</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-49"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/gameplay/mod.rs.html#304-369">source</a></span><ahref="#method.event-49"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-66"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-66"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-49"class="method trait-impl has-srclink"><ahref="#method.on_destroy-49"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-49"class="method trait-impl has-srclink"><ahref="#method.recreate-49"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-5"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/blockfinder.rs.html#153-323">source</a></span><ahref="#impl-State%3CApp%3E-5"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../debug/blockfinder/struct.Blockfinder.html"title="struct game::debug::blockfinder::Blockfinder">Blockfinder</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-5"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/blockfinder.rs.html#154-299">source</a></span><ahref="#method.event-5"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-7"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-7"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-5"class="method trait-impl has-srclink"><ahref="#method.on_destroy-5"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-5"class="method trait-impl has-srclink"><ahref="#method.recreate-5"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-50"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/misc_tools.rs.html#99-149">source</a></span><ahref="#impl-State%3CApp%3E-50"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/misc_tools/struct.TrafficRecorder.html"title="struct game::sandbox::misc_tools::TrafficRecorder">TrafficRecorder</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-50"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/misc_tools.rs.html#100-133">source</a></span><ahref="#method.event-50"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-67"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-67"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-50"class="method trait-impl has-srclink"><ahref="#method.on_destroy-50"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-50"class="method trait-impl has-srclink"><ahref="#method.recreate-50"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-51"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/time_warp.rs.html#114-208">source</a></span><ahref="#impl-State%3CApp%3E-51"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/time_warp/struct.JumpToTime.html"title="struct game::sandbox::time_warp::JumpToTime">JumpToTime</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-51"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/time_warp.rs.html#115-202">source</a></span><ahref="#method.event-51"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-68"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-68"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-51"class="method trait-impl has-srclink"><ahref="#method.on_destroy-51"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-51"class="method trait-impl has-srclink"><ahref="#method.recreate-51"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-52"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/time_warp.rs.html#270-402">source</a></span><ahref="#impl-State%3CApp%3E-52"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/time_warp/struct.TimeWarpScreen.html"title="struct game::sandbox::time_warp::TimeWarpScreen">TimeWarpScreen</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-52"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/time_warp.rs.html#271-378">source</a></span><ahref="#method.event-52"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-69"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/time_warp.rs.html#380-382">source</a></span><ahref="#method.draw_baselayer-69"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-52"class="method trait-impl has-srclink"><ahref="#method.recreate-52"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-53"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/mod.rs.html#113-256">source</a></span><ahref="#impl-State%3CApp%3E-53"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/struct.SandboxMode.html"title="struct game::sandbox::SandboxMode">SandboxMode</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-53"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/mod.rs.html#114-219">source</a></span><ahref="#method.event-53"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-70"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-70"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-53"class="method trait-impl has-srclink"><ahref="#method.recreate-53"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-54"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/mod.rs.html#291-299">source</a></span><ahref="#impl-State%3CApp%3E-54"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/struct.BackToTitleScreen.html"title="struct game::sandbox::BackToTitleScreen">BackToTitleScreen</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-54"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/mod.rs.html#292-296">source</a></span><ahref="#method.event-54"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-71"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-71"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-54"class="method trait-impl has-srclink"><ahref="#method.on_destroy-54"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-54"class="method trait-impl has-srclink"><ahref="#method.recreate-54"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-55"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/mod.rs.html#455-663">source</a></span><ahref="#impl-State%3CApp%3E-55"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../sandbox/struct.SandboxLoader.html"title="struct game::sandbox::SandboxLoader">SandboxLoader</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-55"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/sandbox/mod.rs.html#456-660">source</a></span><ahref="#method.event-55"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-72"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-72"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-55"class="method trait-impl has-srclink"><ahref="#method.on_destroy-55"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-55"class="method trait-impl has-srclink"><ahref="#method.recreate-55"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-56"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/ungap/explore.rs.html#47-91">source</a></span><ahref="#impl-State%3CApp%3E-56"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../ungap/explore/struct.ExploreMap.html"title="struct game::ungap::explore::ExploreMap">ExploreMap</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-56"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/ungap/explore.rs.html#48-71">source</a></span><ahref="#method.event-56"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-73"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-73"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-56"class="method trait-impl has-srclink"><ahref="#method.on_destroy-56"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-56"class="method trait-impl has-srclink"><ahref="#method.recreate-56"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-57"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/ungap/predict.rs.html#39-126">source</a></span><ahref="#impl-State%3CApp%3E-57"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../ungap/predict/struct.ShowGaps.html"title="struct game::ungap::predict::ShowGaps">ShowGaps</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-57"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/ungap/predict.rs.html#40-113">source</a></span><ahref="#method.event-57"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-74"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-74"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-57"class="method trait-impl has-srclink"><ahref="#method.on_destroy-57"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-57"class="method trait-impl has-srclink"><ahref="#method.recreate-57"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-58"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/ungap/quick_sketch.rs.html#107-208">source</a></span><ahref="#impl-State%3CApp%3E-58"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../ungap/quick_sketch/struct.QuickSketch.html"title="struct game::ungap::quick_sketch::QuickSketch">QuickSketch</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-58"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/ungap/quick_sketch.rs.html#108-201">source</a></span><ahref="#method.event-58"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-75"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-75"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-58"class="method trait-impl has-srclink"><ahref="#method.on_destroy-58"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-58"class="method trait-impl has-srclink"><ahref="#method.recreate-58"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-59"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/ungap/trip/mod.rs.html#183-271">source</a></span><ahref="#impl-State%3CApp%3E-59"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../ungap/trip/struct.TripPlanner.html"title="struct game::ungap::trip::TripPlanner">TripPlanner</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-59"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/ungap/trip/mod.rs.html#184-256">source</a></span><ahref="#method.event-59"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-59"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/ungap/trip/mod.rs.html#265-270">source</a></span><ahref="#method.on_destroy-59"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, _: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-76"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-76"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-59"class="method trait-impl has-srclink"><ahref="#method.recreate-59"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-6"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/floodfill.rs.html#80-112">source</a></span><ahref="#impl-State%3CApp%3E-6"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../debug/floodfill/struct.Floodfiller.html"title="struct game::debug::floodfill::Floodfiller">Floodfiller</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-6"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/floodfill.rs.html#81-106">source</a></span><ahref="#method.event-6"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-9"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-9"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-6"class="method trait-impl has-srclink"><ahref="#method.on_destroy-6"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-6"class="method trait-impl has-srclink"><ahref="#method.recreate-6"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-7"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/path_counter.rs.html#85-127">source</a></span><ahref="#impl-State%3CApp%3E-7"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../debug/path_counter/struct.PathCounter.html"title="struct game::debug::path_counter::PathCounter">PathCounter</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-7"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/path_counter.rs.html#86-115">source</a></span><ahref="#method.event-7"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-10"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-10"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-7"class="method trait-impl has-srclink"><ahref="#method.on_destroy-7"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-7"class="method trait-impl has-srclink"><ahref="#method.recreate-7"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-8"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/polygons.rs.html#66-147">source</a></span><ahref="#impl-State%3CApp%3E-8"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../debug/polygons/struct.PolygonDebugger.html"title="struct game::debug::polygons::PolygonDebugger">PolygonDebugger</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-8"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/polygons.rs.html#67-95">source</a></span><ahref="#method.event-8"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-11"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-11"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-8"class="method trait-impl has-srclink"><ahref="#method.on_destroy-8"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-8"class="method trait-impl has-srclink"><ahref="#method.recreate-8"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-State%3CApp%3E-9"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/routes.rs.html#78-192">source</a></span><ahref="#impl-State%3CApp%3E-9"class="anchor"></a><h3class="code-header in-band">impl State<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>> for <aclass="struct"href="../debug/routes/struct.RouteExplorer.html"title="struct game::debug::routes::RouteExplorer">RouteExplorer</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.event-9"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../../src/game/debug/routes.rs.html#79-166">source</a></span><ahref="#method.event-9"class="anchor"></a><h4class="code-header">fn <aclass="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>) -> Transition<<aclass="struct"href="struct.App.html"title="struct game::app::App">App</a>></h4></section></summary><divclass='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.draw_baselayer-12"class="method trait-impl has-srclink"><ahref="#method.draw_baselayer-12"class="anchor"></a><h4class="code-header">fn <ahref="#method.draw_baselayer"class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><divclass='docblock'><p>Specifies what to draw before draw()</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.on_destroy-9"class="method trait-impl has-srclink"><ahref="#method.on_destroy-9"class="anchor"></a><h4class="code-header">fn <ahref="#method.on_destroy"class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><divclass='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.recreate-9"class="method trait-impl has-srclink"><ahref="#method.recreate-9"class="anchor"></a><h4class="code-header">fn <ahref="#method.recreate"class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <aclass="primitive"href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&mut </a>A<br>) -><aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <aclass="struct"href="https://doc.rust-lang.org/1.61.0/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>></h4></section></summary><divclass='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
then be further <code>downcast</code> into <code>Box<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>. <ahref="#tymethod.into_any">Read more</a></p>
further <code>downcast</code> into <code>Rc<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>. <ahref="#tymethod.into_any_rc">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-From%3CT%3E"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.61.0/src/core/convert/mod.rs.html#557-562">source</a></span><ahref="#impl-From%3CT%3E"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for T</h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.from"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="const unstable">const: <ahref="https://github.com/rust-lang/rust/issues/88674"title="Tracking issue for const_convert">unstable</a></span> · <aclass="srclink"href="https://doc.rust-lang.org/1.61.0/src/core/convert/mod.rs.html#559">source</a></span><ahref="#method.from"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from"class="fnname">from</a>(t: T) -> T</h4></section></summary><divclass="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-Instrument"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.26/src/tracing/instrument.rs.html#155">source</a></span><ahref="#impl-Instrument"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://docs.rs/tracing/0.1.26/tracing/instrument/trait.Instrument.html"title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.instrument"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.26/src/tracing/instrument.rs.html#38">source</a></span><ahref="#method.instrument"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.26/tracing/instrument/trait.Instrument.html#method.instrument"class="fnname">instrument</a>(self, span: <aclass="struct"href="https://docs.rs/tracing/0.1.26/tracing/span/struct.Span.html"title="struct tracing::span::Span">Span</a>) -><aclass="struct"href="https://docs.rs/tracing/0.1.26/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><divclass='docblock'><p>Instruments this type with the provided <code>Span</code>, returning an
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.in_current_span"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.26/src/tracing/instrument.rs.html#74">source</a></span><ahref="#method.in_current_span"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.26/tracing/instrument/trait.Instrument.html#method.in_current_span"class="fnname">in_current_span</a>(self) -><aclass="struct"href="https://docs.rs/tracing/0.1.26/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><divclass='docblock'><p>Instruments this type with the <ahref="../struct.Span.html#method.current">current</a><code>Span</code>, returning an
<code><ahref="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html"title="From">From</a><T> for U</code> chooses to do.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-Same%3CT%3E"class="impl has-srclink"><ahref="#impl-Same%3CT%3E"class="anchor"></a><h3class="code-header in-band">impl<T> Same<T> for T</h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><sectionid="associatedtype.Output"class="type trait-impl has-srclink"><ahref="#associatedtype.Output"class="anchor"></a><h4class="code-header">type <ahref="#associatedtype.Output"class="associatedtype">Output</a> = T</h4></section></summary><divclass='docblock'><p>Should always be <code>Self</code></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-TryFrom%3CU%3E"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.61.0/src/core/convert/mod.rs.html#598-607">source</a></span><ahref="#impl-TryFrom%3CU%3E"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.61.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/1.61.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><sectionid="associatedtype.Error"class="type trait-impl has-srclink"><ahref="#associatedtype.Error"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.61.0/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></h4></section></summary><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.try_from"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="const unstable">const: <ahref="https://github.com/rust-lang/rust/issues/88674"title="Tracking issue for const_convert">unstable</a></span> · <aclass="srclink"href="https://doc.rust-lang.org/1.61.0/src/core/convert/mod.rs.html#604">source</a></span><ahref="#method.try_from"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.61.0/core/convert/trait.TryFrom.html#tymethod.try_from"class="fnname">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/1.61.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.61.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'><p>Performs the conversion.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-TryInto%3CU%3E"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.61.0/src/core/convert/mod.rs.html#583-592">source</a></span><ahref="#impl-TryInto%3CU%3E"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.61.0/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/1.61.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><sectionid="associatedtype.Error-1"class="type trait-impl has-srclink"><ahref="#associatedtype.Error-1"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.61.0/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/1.61.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.61.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.try_into"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="const unstable">const: <ahref="https://github.com/rust-lang/rust/issues/88674"title="Tracking issue for const_convert">unstable</a></span> · <aclass="srclink"href="https://doc.rust-lang.org/1.61.0/src/core/convert/mod.rs.html#589">source</a></span><ahref="#method.try_into"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.61.0/core/convert/trait.TryInto.html#tymethod.try_into"class="fnname">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.61.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/1.61.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.61.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'><p>Performs the conversion.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-VZip%3CV%3E"class="impl has-srclink"><ahref="#impl-VZip%3CV%3E"class="anchor"></a><h3class="code-header in-band">impl<V, T> VZip<V> for T <spanclass="where fmt-newline">where<br> V: MultiLane<T>, </span></h3></section></summary><divclass="impl-items"><sectionid="method.vzip"class="method trait-impl has-srclink"><ahref="#method.vzip"class="anchor"></a><h4class="code-header">fn <aclass="fnname">vzip</a>(self) -> V</h4></section></div></details></div></section><sectionid="search"class="content hidden"></section></div></main><divid="rustdoc-vars"data-root-path="../../"data-current-crate="game"data-themes="ayu,dark,light"data-resource-suffix=""data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)"></div>