mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 23:15:24 +03:00
deploy: 5e5e411de8
This commit is contained in:
parent
fa01159a19
commit
e2e4562236
File diff suppressed because one or more lines are too long
@ -39,133 +39,125 @@ minimap. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.
|
||||
should make its best effort to delete any unused Drawables. <a href="#method.free_memory">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/common/share.rs.html#92-153" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../common/share/struct.ShareProposal.html" title="struct game::common::share::ShareProposal">ShareProposal</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/common/share.rs.html#93-148" title="goto source code">[src]</a></div><a href="#method.on_click" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><div id="method.draw-66" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/common/share.rs.html#150-152" title="goto source code">[src]</a></div><a href="#method.draw-66" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><div id="method.draw-67" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/common/share.rs.html#150-152" title="goto source code">[src]</a></div><a href="#method.draw-67" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-1" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-1" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.other_event" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-65" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-65" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#38-94" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-1" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/blockfinder/struct.Blockfinder.html" title="struct game::debug::blockfinder::Blockfinder">Blockfinder</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#39-44" title="goto source code">[src]</a></div><a href="#method.on_click-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><div id="method.draw_baselayer-66" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-66" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#181-225" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-1" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/blockfinder/struct.OneBlock.html" title="struct game::debug::blockfinder::OneBlock">OneBlock</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#182-215" title="goto source code">[src]</a></div><a href="#method.on_click-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#46-65" title="goto source code">[src]</a></div><a href="#method.panel_changed-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> _: &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#217-220" title="goto source code">[src]</a></div><a href="#method.other_event-1" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw-68" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#222-224" title="goto source code">[src]</a></div><a href="#method.draw-68" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-1" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-1" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-2" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#67-69" title="goto source code">[src]</a></div><a href="#method.on_mouseover-1" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#71-87" title="goto source code">[src]</a></div><a href="#method.other_event-1" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw-67" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#89-93" title="goto source code">[src]</a></div><a href="#method.draw-67" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-1" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-1" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><div id="method.draw_baselayer-66" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-66" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-10" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#282-320" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-10" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/traffic_signals/offsets/struct.TuneRelative.html" title="struct game::edit::traffic_signals::offsets::TuneRelative">TuneRelative</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-10" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#283-310" title="goto source code">[src]</a></div><a href="#method.on_click-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> panel: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-1" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-1" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><div id="method.draw_baselayer-67" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-67" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-10" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/actdev.rs.html#268-281" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-10" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/gameplay/actdev/struct.About.html" title="struct game::sandbox::gameplay::actdev::About">About</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-10" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/actdev.rs.html#269-276" title="goto source code">[src]</a></div><a href="#method.on_click-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-10" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#312-315" title="goto source code">[src]</a></div><a href="#method.other_event-10" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw-76" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#317-319" title="goto source code">[src]</a></div><a href="#method.draw-76" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-10" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-10" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><div id="method.draw-77" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/actdev.rs.html#278-280" title="goto source code">[src]</a></div><a href="#method.draw-77" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-10" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-10" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-11" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-11" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-10" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-10" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><div id="method.draw_baselayer-75" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-75" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-11" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/actdev.rs.html#268-281" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-11" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/gameplay/actdev/struct.About.html" title="struct game::sandbox::gameplay::actdev::About">About</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-11" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/actdev.rs.html#269-276" title="goto source code">[src]</a></div><a href="#method.on_click-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-10" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.other_event-10" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-76" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-76" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-11" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/mod.rs.html#283-336" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-11" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/gameplay/freeform/struct.ChangeScenario.html" title="struct game::sandbox::gameplay::freeform::ChangeScenario">ChangeScenario</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-11" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/mod.rs.html#284-331" title="goto source code">[src]</a></div><a href="#method.on_click-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><div id="method.draw-77" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/actdev.rs.html#278-280" title="goto source code">[src]</a></div><a href="#method.draw-77" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-11" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-11" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><div id="method.draw-78" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/mod.rs.html#333-335" title="goto source code">[src]</a></div><a href="#method.draw-78" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-11" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-11" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-12" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-12" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-11" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-11" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-11" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.other_event-11" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-76" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-76" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-12" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/mod.rs.html#283-336" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-12" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/gameplay/freeform/struct.ChangeScenario.html" title="struct game::sandbox::gameplay::freeform::ChangeScenario">ChangeScenario</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-12" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/mod.rs.html#284-331" title="goto source code">[src]</a></div><a href="#method.on_click-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><div id="method.draw_baselayer-77" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-77" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-12" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#624-637" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-12" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/gameplay/play_scenario/struct.DepartureSummary.html" title="struct game::sandbox::gameplay::play_scenario::DepartureSummary">DepartureSummary</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-12" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#625-636" title="goto source code">[src]</a></div><a href="#method.on_click-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><div id="method.draw-78" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/mod.rs.html#333-335" title="goto source code">[src]</a></div><a href="#method.draw-78" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-12" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-12" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-12" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-12" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-13" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-13" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-12" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-12" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-12" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.other_event-12" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-77" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-77" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-13" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#624-637" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-13" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/gameplay/play_scenario/struct.DepartureSummary.html" title="struct game::sandbox::gameplay::play_scenario::DepartureSummary">DepartureSummary</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-13" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#625-636" title="goto source code">[src]</a></div><a href="#method.on_click-13" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><div id="method.draw-79" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw-79" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&</a>A)</h4></div><div id="method.draw_baselayer-78" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-78" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-13" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#274-338" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-13" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/trip/files/struct.RenameTrip.html" title="struct game::ungap::trip::files::RenameTrip">RenameTrip</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-13" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#275-300" title="goto source code">[src]</a></div><a href="#method.on_click-13" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> panel: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-13" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-13" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-14" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-14" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-14" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#302-333" title="goto source code">[src]</a></div><a href="#method.panel_changed-14" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> panel: &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><div id="method.draw-80" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#335-337" title="goto source code">[src]</a></div><a href="#method.draw-80" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-13" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-13" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-13" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-13" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-13" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.other_event-13" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw-79" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw-79" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&</a>A)</h4></div><div id="method.draw_baselayer-78" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-78" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-14" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#274-338" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-14" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/trip/files/struct.RenameTrip.html" title="struct game::ungap::trip::files::RenameTrip">RenameTrip</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-14" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#275-300" title="goto source code">[src]</a></div><a href="#method.on_click-14" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> panel: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><div id="method.draw_baselayer-79" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-79" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-14" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/mod.rs.html#219-232" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-14" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/struct.About.html" title="struct game::ungap::About">About</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-14" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/mod.rs.html#220-227" title="goto source code">[src]</a></div><a href="#method.on_click-14" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-15" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#302-333" title="goto source code">[src]</a></div><a href="#method.panel_changed-15" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> panel: &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
</div></details><div id="method.draw-81" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/mod.rs.html#229-231" title="goto source code">[src]</a></div><a href="#method.draw-81" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-14" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-14" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-15" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-15" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><div id="method.draw-80" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#335-337" title="goto source code">[src]</a></div><a href="#method.draw-80" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-14" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-14" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-14" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-14" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-14" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.other_event-14" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-79" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-79" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-15" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/mod.rs.html#219-232" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-15" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/struct.About.html" title="struct game::ungap::About">About</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-15" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/mod.rs.html#220-227" title="goto source code">[src]</a></div><a href="#method.on_click-15" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><div id="method.draw_baselayer-80" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-80" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-2" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#53-114" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-2" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/uber_turns/struct.UberTurnPicker.html" title="struct game::debug::uber_turns::UberTurnPicker">UberTurnPicker</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#54-82" title="goto source code">[src]</a></div><a href="#method.on_click-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><div id="method.draw-81" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/mod.rs.html#229-231" title="goto source code">[src]</a></div><a href="#method.draw-81" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-15" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-15" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-16" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-16" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-15" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-15" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-15" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.other_event-15" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></div></summary><div class='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><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#84-86" title="goto source code">[src]</a></div><a href="#method.on_mouseover-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#87-99" title="goto source code">[src]</a></div><a href="#method.other_event-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-80" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-80" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-2" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#119-163" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-2" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/blockfinder/struct.OneBlock.html" title="struct game::debug::blockfinder::OneBlock">OneBlock</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#120-153" title="goto source code">[src]</a></div><a href="#method.on_click-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#155-158" title="goto source code">[src]</a></div><a href="#method.other_event-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw-68" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#160-162" title="goto source code">[src]</a></div><a href="#method.draw-68" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-2" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><div id="method.draw-69" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#101-113" title="goto source code">[src]</a></div><a href="#method.draw-69" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-2" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-3" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-3" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-2" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><div id="method.draw_baselayer-67" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-67" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-3" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#53-114" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-3" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/uber_turns/struct.UberTurnPicker.html" title="struct game::debug::uber_turns::UberTurnPicker">UberTurnPicker</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#54-82" title="goto source code">[src]</a></div><a href="#method.on_click-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><div id="method.draw_baselayer-68" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-68" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-3" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#195-248" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-3" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/uber_turns/struct.UberTurnViewer.html" title="struct game::debug::uber_turns::UberTurnViewer">UberTurnViewer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#196-215" title="goto source code">[src]</a></div><a href="#method.on_click-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#84-86" title="goto source code">[src]</a></div><a href="#method.on_mouseover-3" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#87-99" title="goto source code">[src]</a></div><a href="#method.other_event-3" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw-69" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#101-113" title="goto source code">[src]</a></div><a href="#method.draw-69" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-3" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-3" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-4" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-4" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-4" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#216-229" title="goto source code">[src]</a></div><a href="#method.panel_changed-4" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> panel: &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-68" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-68" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-4" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#195-248" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-4" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/uber_turns/struct.UberTurnViewer.html" title="struct game::debug::uber_turns::UberTurnViewer">UberTurnViewer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-4" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#196-215" title="goto source code">[src]</a></div><a href="#method.on_click-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#231-234" title="goto source code">[src]</a></div><a href="#method.other_event-3" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-69" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#236-238" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-69" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div><div id="method.draw-70" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#240-247" title="goto source code">[src]</a></div><a href="#method.draw-70" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-3" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-3" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-3" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-3" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-4" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#353-393" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-4" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/story/struct.EditingMarker.html" title="struct game::devtools::story::EditingMarker">EditingMarker</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-4" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#354-388" title="goto source code">[src]</a></div><a href="#method.on_click-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> panel: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-5" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#216-229" title="goto source code">[src]</a></div><a href="#method.panel_changed-5" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> panel: &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
</div></details><div id="method.draw_baselayer-70" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#390-392" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-70" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-4" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-4" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-5" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-5" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-4" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#231-234" title="goto source code">[src]</a></div><a href="#method.other_event-4" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-69" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#236-238" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-69" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div><div id="method.draw-70" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/uber_turns.rs.html#240-247" title="goto source code">[src]</a></div><a href="#method.draw-70" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-4" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-4" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-4" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-4" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-5" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#353-393" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-5" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/story/struct.EditingMarker.html" title="struct game::devtools::story::EditingMarker">EditingMarker</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-5" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#354-388" title="goto source code">[src]</a></div><a href="#method.on_click-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> panel: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-4" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.other_event-4" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw-71" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw-71" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&</a>A)</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-5" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#92-237" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-5" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/stop_signs/struct.StopSignEditor.html" title="struct game::edit::stop_signs::StopSignEditor">StopSignEditor</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-5" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#93-153" title="goto source code">[src]</a></div><a href="#method.on_click-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-70" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#390-392" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-70" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-5" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-5" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-5" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#155-165" title="goto source code">[src]</a></div><a href="#method.on_mouseover-5" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-5" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#167-197" title="goto source code">[src]</a></div><a href="#method.other_event-5" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw-72" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#199-236" title="goto source code">[src]</a></div><a href="#method.draw-72" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-5" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-5" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-6" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-6" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-5" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-5" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-5" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.other_event-5" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw-71" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw-71" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&</a>A)</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-6" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#92-237" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-6" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/stop_signs/struct.StopSignEditor.html" title="struct game::edit::stop_signs::StopSignEditor">StopSignEditor</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-6" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#93-153" title="goto source code">[src]</a></div><a href="#method.on_click-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><div id="method.draw_baselayer-71" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-71" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-6" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#106-170" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-6" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/traffic_signals/edits/struct.ChangeDuration.html" title="struct game::edit::traffic_signals::edits::ChangeDuration">ChangeDuration</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-6" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#107-132" title="goto source code">[src]</a></div><a href="#method.on_click-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> panel: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-6" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#155-165" title="goto source code">[src]</a></div><a href="#method.on_mouseover-6" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-6" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#167-197" title="goto source code">[src]</a></div><a href="#method.other_event-6" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw-72" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/stop_signs.rs.html#199-236" title="goto source code">[src]</a></div><a href="#method.draw-72" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-6" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-6" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-7" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-7" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#134-158" title="goto source code">[src]</a></div><a href="#method.panel_changed-7" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> panel: &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-71" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-71" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-7" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#106-170" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-7" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/traffic_signals/edits/struct.ChangeDuration.html" title="struct game::edit::traffic_signals::edits::ChangeDuration">ChangeDuration</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#107-132" title="goto source code">[src]</a></div><a href="#method.on_click-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> panel: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-6" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#160-165" title="goto source code">[src]</a></div><a href="#method.other_event-6" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-72" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#167-169" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-72" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-6" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-6" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-6" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-6" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><div id="method.draw-73" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw-73" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&</a>A)</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-7" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#66-98" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-7" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/traffic_signals/offsets/struct.ShowAbsolute.html" title="struct game::edit::traffic_signals::offsets::ShowAbsolute">ShowAbsolute</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#67-76" title="goto source code">[src]</a></div><a href="#method.on_click-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#134-158" title="goto source code">[src]</a></div><a href="#method.panel_changed-8" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> panel: &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#78-82" title="goto source code">[src]</a></div><a href="#method.on_mouseover-7" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#84-91" title="goto source code">[src]</a></div><a href="#method.other_event-7" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw-74" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#93-97" title="goto source code">[src]</a></div><a href="#method.draw-74" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-7" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-7" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-8" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-8" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#160-165" title="goto source code">[src]</a></div><a href="#method.other_event-7" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-72" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/edits.rs.html#167-169" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-72" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-7" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-7" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-7" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-7" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><div id="method.draw-73" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw-73" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&</a>A)</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-8" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#66-98" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-8" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/traffic_signals/offsets/struct.ShowAbsolute.html" title="struct game::edit::traffic_signals::offsets::ShowAbsolute">ShowAbsolute</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#67-76" title="goto source code">[src]</a></div><a href="#method.on_click-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><div id="method.draw_baselayer-73" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-73" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-8" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#156-191" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-8" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/traffic_signals/offsets/struct.ShowRelative.html" title="struct game::edit::traffic_signals::offsets::ShowRelative">ShowRelative</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#157-162" title="goto source code">[src]</a></div><a href="#method.on_click-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#78-82" title="goto source code">[src]</a></div><a href="#method.on_mouseover-8" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#84-91" title="goto source code">[src]</a></div><a href="#method.other_event-8" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='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><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#164-169" title="goto source code">[src]</a></div><a href="#method.on_mouseover-8" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#171-184" title="goto source code">[src]</a></div><a href="#method.other_event-8" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw-74" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#93-97" title="goto source code">[src]</a></div><a href="#method.draw-74" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-8" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-8" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><div id="method.draw-75" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#186-190" title="goto source code">[src]</a></div><a href="#method.draw-75" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-8" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-8" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-9" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-9" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-73" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-73" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-9" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#156-191" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-9" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/traffic_signals/offsets/struct.ShowRelative.html" title="struct game::edit::traffic_signals::offsets::ShowRelative">ShowRelative</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-9" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#157-162" title="goto source code">[src]</a></div><a href="#method.on_click-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><div id="method.draw_baselayer-74" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-74" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-9" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#282-320" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-9" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/traffic_signals/offsets/struct.TuneRelative.html" title="struct game::edit::traffic_signals::offsets::TuneRelative">TuneRelative</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-9" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#283-310" title="goto source code">[src]</a></div><a href="#method.on_click-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a>, <br> panel: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-9" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#164-169" title="goto source code">[src]</a></div><a href="#method.on_mouseover-9" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-9" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#171-184" title="goto source code">[src]</a></div><a href="#method.other_event-9" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='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><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-9" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#312-315" title="goto source code">[src]</a></div><a href="#method.other_event-9" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw-75" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#186-190" title="goto source code">[src]</a></div><a href="#method.draw-75" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-9" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-9" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><div id="method.draw-76" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/offsets.rs.html#317-319" title="goto source code">[src]</a></div><a href="#method.draw-76" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-9" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-9" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-10" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.panel_changed-10" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><div id="method.draw_baselayer-74" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-74" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#90-138" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../challenges/cutscene/struct.CutscenePlayer.html" title="struct game::challenges::cutscene::CutscenePlayer">CutscenePlayer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#91-127" title="goto source code">[src]</a></div><a href="#method.event" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-9" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-9" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><div id="method.draw_baselayer-75" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-75" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#90-138" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../challenges/cutscene/struct.CutscenePlayer.html" title="struct game::challenges::cutscene::CutscenePlayer">CutscenePlayer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#91-127" title="goto source code">[src]</a></div><a href="#method.event" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#129-131" title="goto source code">[src]</a></div><a href="#method.draw_baselayer" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#133-137" title="goto source code">[src]</a></div><a href="#method.draw-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
@ -173,256 +165,260 @@ the event and immediately apply the transition. <a href="#method.panel_changed">
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#304-307" title="goto source code">[src]</a></div><a href="#method.draw-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-1" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-1" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-1" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-1" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-10" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#365-475" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-10" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/routes/struct.AllRoutesExplorer.html" title="struct game::debug::routes::AllRoutesExplorer">AllRoutesExplorer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-10" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#366-465" title="goto source code">[src]</a></div><a href="#method.event-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-11" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#467-474" title="goto source code">[src]</a></div><a href="#method.draw-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-10" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#74-188" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-10" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/routes/struct.RouteExplorer.html" title="struct game::debug::routes::RouteExplorer">RouteExplorer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-10" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#75-162" title="goto source code">[src]</a></div><a href="#method.event-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-11" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#164-187" title="goto source code">[src]</a></div><a href="#method.draw-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-10" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-10" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-10" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-10" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-11" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#569-608" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-11" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/routes/struct.PathCostDebugger.html" title="struct game::debug::routes::PathCostDebugger">PathCostDebugger</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-11" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#570-599" title="goto source code">[src]</a></div><a href="#method.event-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-12" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#601-607" title="goto source code">[src]</a></div><a href="#method.draw-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-11" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#365-475" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-11" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/routes/struct.AllRoutesExplorer.html" title="struct game::debug::routes::AllRoutesExplorer">AllRoutesExplorer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-11" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#366-465" title="goto source code">[src]</a></div><a href="#method.event-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-12" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#467-474" title="goto source code">[src]</a></div><a href="#method.draw-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-11" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-11" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-11" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-11" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-12" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/select_roads.rs.html#49-103" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-12" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/select_roads/struct.BulkSelect.html" title="struct game::debug::select_roads::BulkSelect">BulkSelect</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-12" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/select_roads.rs.html#50-97" title="goto source code">[src]</a></div><a href="#method.event-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-13" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/select_roads.rs.html#99-102" title="goto source code">[src]</a></div><a href="#method.draw-13" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-12" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#569-608" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-12" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/routes/struct.PathCostDebugger.html" title="struct game::debug::routes::PathCostDebugger">PathCostDebugger</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-12" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#570-599" title="goto source code">[src]</a></div><a href="#method.event-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-13" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#601-607" title="goto source code">[src]</a></div><a href="#method.draw-13" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-12" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-12" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-12" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-12" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-13" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#213-503" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-13" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/struct.DebugMode.html" title="struct game::debug::DebugMode">DebugMode</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-13" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#214-474" title="goto source code">[src]</a></div><a href="#method.event-13" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-13" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#476-478" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-13" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-14" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#480-502" title="goto source code">[src]</a></div><a href="#method.draw-14" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-13" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/select_roads.rs.html#49-103" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-13" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/select_roads/struct.BulkSelect.html" title="struct game::debug::select_roads::BulkSelect">BulkSelect</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-13" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/select_roads.rs.html#50-97" title="goto source code">[src]</a></div><a href="#method.event-13" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-14" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/select_roads.rs.html#99-102" title="goto source code">[src]</a></div><a href="#method.draw-14" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-13" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-13" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-13" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-13" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-14" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#948-977" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-14" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-14" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#949-975" title="goto source code">[src]</a></div><a href="#method.event-14" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-15" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#976" title="goto source code">[src]</a></div><a href="#method.draw-15" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-14" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-14" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-14" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#213-504" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-14" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/struct.DebugMode.html" title="struct game::debug::DebugMode">DebugMode</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-14" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#214-475" title="goto source code">[src]</a></div><a href="#method.event-14" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-14" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#477-479" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-14" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-15" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#481-503" title="goto source code">[src]</a></div><a href="#method.draw-15" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-14" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-14" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-15" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/collisions.rs.html#271-304" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-15" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/collisions/struct.CollisionsViewer.html" title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-15" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/collisions.rs.html#272-298" title="goto source code">[src]</a></div><a href="#method.event-15" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-16" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/collisions.rs.html#300-303" title="goto source code">[src]</a></div><a href="#method.draw-16" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-15" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#961-990" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-15" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-15" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#962-988" title="goto source code">[src]</a></div><a href="#method.event-15" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-16" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#989" title="goto source code">[src]</a></div><a href="#method.draw-16" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-15" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-15" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-15" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-15" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-16" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/destinations.rs.html#112-168" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-16" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/destinations/struct.PopularDestinations.html" title="struct game::devtools::destinations::PopularDestinations">PopularDestinations</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-16" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/destinations.rs.html#113-146" title="goto source code">[src]</a></div><a href="#method.event-16" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-17" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/destinations.rs.html#148-167" title="goto source code">[src]</a></div><a href="#method.draw-17" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-16" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/collisions.rs.html#271-304" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-16" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/collisions/struct.CollisionsViewer.html" title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-16" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/collisions.rs.html#272-298" title="goto source code">[src]</a></div><a href="#method.event-16" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-17" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/collisions.rs.html#300-303" title="goto source code">[src]</a></div><a href="#method.draw-17" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-16" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-16" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-16" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-16" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-17" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/kml.rs.html#110-207" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-17" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/kml/struct.ViewKML.html" title="struct game::devtools::kml::ViewKML">ViewKML</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-17" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/kml.rs.html#111-192" title="goto source code">[src]</a></div><a href="#method.event-17" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-18" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/kml.rs.html#194-206" title="goto source code">[src]</a></div><a href="#method.draw-18" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-17" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/destinations.rs.html#112-168" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-17" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/destinations/struct.PopularDestinations.html" title="struct game::devtools::destinations::PopularDestinations">PopularDestinations</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-17" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/destinations.rs.html#113-146" title="goto source code">[src]</a></div><a href="#method.event-17" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-18" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/destinations.rs.html#148-167" title="goto source code">[src]</a></div><a href="#method.draw-18" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-17" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-17" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-17" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-17" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-18" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/polygon.rs.html#94-169" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-18" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-18" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/polygon.rs.html#95-163" title="goto source code">[src]</a></div><a href="#method.event-18" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-19" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/polygon.rs.html#165-168" title="goto source code">[src]</a></div><a href="#method.draw-19" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-18" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/kml.rs.html#110-207" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-18" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/kml/struct.ViewKML.html" title="struct game::devtools::kml::ViewKML">ViewKML</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-18" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/kml.rs.html#111-192" title="goto source code">[src]</a></div><a href="#method.event-18" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-19" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/kml.rs.html#194-206" title="goto source code">[src]</a></div><a href="#method.draw-19" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-18" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-18" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-18" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-18" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-19" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/scenario.rs.html#89-120" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-19" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/scenario/struct.ScenarioManager.html" title="struct game::devtools::scenario::ScenarioManager">ScenarioManager</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-19" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/scenario.rs.html#90-113" title="goto source code">[src]</a></div><a href="#method.event-19" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-20" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/scenario.rs.html#115-119" title="goto source code">[src]</a></div><a href="#method.draw-20" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-19" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/polygon.rs.html#94-169" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-19" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-19" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/polygon.rs.html#95-163" title="goto source code">[src]</a></div><a href="#method.event-19" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-20" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/polygon.rs.html#165-168" title="goto source code">[src]</a></div><a href="#method.draw-20" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-19" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-19" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-19" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-19" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-2" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/challenges/mod.rs.html#263-317" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-2" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../challenges/struct.ChallengesPicker.html" title="struct game::challenges::ChallengesPicker">ChallengesPicker</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/challenges/mod.rs.html#264-307" title="goto source code">[src]</a></div><a href="#method.event-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/challenges/mod.rs.html#309-311" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/challenges/mod.rs.html#313-316" title="goto source code">[src]</a></div><a href="#method.draw-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-2" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-20" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#132-268" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-20" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/story/struct.StoryMapEditor.html" title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-20" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#133-254" title="goto source code">[src]</a></div><a href="#method.event-20" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-20" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#256-258" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-20" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-21" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#260-267" title="goto source code">[src]</a></div><a href="#method.draw-21" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-20" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/scenario.rs.html#89-120" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-20" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/scenario/struct.ScenarioManager.html" title="struct game::devtools::scenario::ScenarioManager">ScenarioManager</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-20" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/scenario.rs.html#90-113" title="goto source code">[src]</a></div><a href="#method.event-20" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-21" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/scenario.rs.html#115-119" title="goto source code">[src]</a></div><a href="#method.draw-21" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-20" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-20" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-20" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-20" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-21" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#400-431" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-21" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/story/struct.DrawFreehand.html" title="struct game::devtools::story::DrawFreehand">DrawFreehand</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-21" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#401-422" title="goto source code">[src]</a></div><a href="#method.event-21" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-21" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#424-426" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-21" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-22" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#428-430" title="goto source code">[src]</a></div><a href="#method.draw-22" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-21" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#132-268" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-21" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/story/struct.StoryMapEditor.html" title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-21" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#133-254" title="goto source code">[src]</a></div><a href="#method.event-21" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-21" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#256-258" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-21" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-22" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#260-267" title="goto source code">[src]</a></div><a href="#method.draw-22" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-21" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-21" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-22" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/mod.rs.html#84-183" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-22" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/struct.DevToolsMode.html" title="struct game::devtools::DevToolsMode">DevToolsMode</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-22" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/mod.rs.html#85-173" title="goto source code">[src]</a></div><a href="#method.event-22" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-22" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/mod.rs.html#175-177" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-22" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-23" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/mod.rs.html#179-182" title="goto source code">[src]</a></div><a href="#method.draw-23" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-22" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#400-431" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-22" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/story/struct.DrawFreehand.html" title="struct game::devtools::story::DrawFreehand">DrawFreehand</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-22" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#401-422" title="goto source code">[src]</a></div><a href="#method.event-22" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-22" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#424-426" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-22" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-23" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/story.rs.html#428-430" title="goto source code">[src]</a></div><a href="#method.draw-23" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-22" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-22" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-23" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/multiple_roads.rs.html#156-278" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-23" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/multiple_roads/struct.SelectSegments.html" title="struct game::edit::multiple_roads::SelectSegments">SelectSegments</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-23" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/multiple_roads.rs.html#157-243" title="goto source code">[src]</a></div><a href="#method.event-23" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-24" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/multiple_roads.rs.html#245-272" title="goto source code">[src]</a></div><a href="#method.draw-24" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-23" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/multiple_roads.rs.html#274-277" title="goto source code">[src]</a></div><a href="#method.on_destroy-23" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-23" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-23" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-24" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/roads.rs.html#192-493" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-24" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/roads/struct.RoadEditor.html" title="struct game::edit::roads::RoadEditor">RoadEditor</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-24" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/roads.rs.html#193-484" title="goto source code">[src]</a></div><a href="#method.event-24" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-25" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/roads.rs.html#486-492" title="goto source code">[src]</a></div><a href="#method.draw-25" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-23" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/mod.rs.html#84-183" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-23" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../devtools/struct.DevToolsMode.html" title="struct game::devtools::DevToolsMode">DevToolsMode</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-23" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/mod.rs.html#85-173" title="goto source code">[src]</a></div><a href="#method.event-23" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-23" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/mod.rs.html#175-177" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-23" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-24" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/devtools/mod.rs.html#179-182" title="goto source code">[src]</a></div><a href="#method.draw-24" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-23" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-23" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-24" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/multiple_roads.rs.html#156-278" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-24" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/multiple_roads/struct.SelectSegments.html" title="struct game::edit::multiple_roads::SelectSegments">SelectSegments</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-24" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/multiple_roads.rs.html#157-243" title="goto source code">[src]</a></div><a href="#method.event-24" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-25" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/multiple_roads.rs.html#245-272" title="goto source code">[src]</a></div><a href="#method.draw-25" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-24" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/multiple_roads.rs.html#274-277" title="goto source code">[src]</a></div><a href="#method.on_destroy-24" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-24" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-24" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-24" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-24" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-25" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/routes.rs.html#53-91" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-25" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/routes/struct.RouteEditor.html" title="struct game::edit::routes::RouteEditor">RouteEditor</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-25" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/routes.rs.html#54-86" title="goto source code">[src]</a></div><a href="#method.event-25" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-26" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/routes.rs.html#88-90" title="goto source code">[src]</a></div><a href="#method.draw-26" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-25" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/roads.rs.html#192-493" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-25" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/roads/struct.RoadEditor.html" title="struct game::edit::roads::RoadEditor">RoadEditor</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-25" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/roads.rs.html#193-484" title="goto source code">[src]</a></div><a href="#method.event-25" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-26" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/roads.rs.html#486-492" title="goto source code">[src]</a></div><a href="#method.draw-26" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-25" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-25" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-25" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-25" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-26" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/picker.rs.html#46-106" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-26" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/traffic_signals/picker/struct.SignalPicker.html" title="struct game::edit::traffic_signals::picker::SignalPicker">SignalPicker</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-26" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/picker.rs.html#47-90" title="goto source code">[src]</a></div><a href="#method.event-26" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-27" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/picker.rs.html#92-105" title="goto source code">[src]</a></div><a href="#method.draw-27" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-26" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/routes.rs.html#53-91" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-26" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/routes/struct.RouteEditor.html" title="struct game::edit::routes::RouteEditor">RouteEditor</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-26" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/routes.rs.html#54-86" title="goto source code">[src]</a></div><a href="#method.event-26" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-27" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/routes.rs.html#88-90" title="goto source code">[src]</a></div><a href="#method.draw-27" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-26" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-26" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-26" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-26" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-27" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/preview.rs.html#40-70" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-27" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/traffic_signals/preview/struct.PreviewTrafficSignal.html" title="struct game::edit::traffic_signals::preview::PreviewTrafficSignal">PreviewTrafficSignal</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-27" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/preview.rs.html#41-64" title="goto source code">[src]</a></div><a href="#method.event-27" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-28" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/preview.rs.html#66-69" title="goto source code">[src]</a></div><a href="#method.draw-28" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-27" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/picker.rs.html#46-106" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-27" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/traffic_signals/picker/struct.SignalPicker.html" title="struct game::edit::traffic_signals::picker::SignalPicker">SignalPicker</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-27" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/picker.rs.html#47-90" title="goto source code">[src]</a></div><a href="#method.event-27" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-28" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/picker.rs.html#92-105" title="goto source code">[src]</a></div><a href="#method.draw-28" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-27" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-27" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-27" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-27" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-28" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/mod.rs.html#192-535" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-28" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/traffic_signals/struct.TrafficSignalEditor.html" title="struct game::edit::traffic_signals::TrafficSignalEditor">TrafficSignalEditor</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-28" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/mod.rs.html#193-485" title="goto source code">[src]</a></div><a href="#method.event-28" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-28" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/mod.rs.html#487-489" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-28" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-29" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/mod.rs.html#491-534" title="goto source code">[src]</a></div><a href="#method.draw-29" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-28" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/preview.rs.html#40-70" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-28" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/traffic_signals/preview/struct.PreviewTrafficSignal.html" title="struct game::edit::traffic_signals::preview::PreviewTrafficSignal">PreviewTrafficSignal</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-28" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/preview.rs.html#41-64" title="goto source code">[src]</a></div><a href="#method.event-28" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-29" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/preview.rs.html#66-69" title="goto source code">[src]</a></div><a href="#method.draw-29" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-28" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-28" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-28" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-28" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-29" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/zones.rs.html#83-166" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-29" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/zones/struct.ZoneEditor.html" title="struct game::edit::zones::ZoneEditor">ZoneEditor</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-29" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/zones.rs.html#84-157" title="goto source code">[src]</a></div><a href="#method.event-29" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-30" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/zones.rs.html#159-165" title="goto source code">[src]</a></div><a href="#method.draw-30" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-29" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-29" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-29" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/mod.rs.html#192-535" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-29" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/traffic_signals/struct.TrafficSignalEditor.html" title="struct game::edit::traffic_signals::TrafficSignalEditor">TrafficSignalEditor</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-29" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/mod.rs.html#193-485" title="goto source code">[src]</a></div><a href="#method.event-29" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-29" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/mod.rs.html#487-489" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-29" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-30" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/traffic_signals/mod.rs.html#491-534" title="goto source code">[src]</a></div><a href="#method.draw-30" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-29" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-29" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-3" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/common/warp.rs.html#39-65" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-3" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../common/warp/struct.Warping.html" title="struct game::common::warp::Warping">Warping</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/common/warp.rs.html#40-62" title="goto source code">[src]</a></div><a href="#method.event-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-4" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/common/warp.rs.html#64" title="goto source code">[src]</a></div><a href="#method.draw-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-3" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-3" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-3" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-3" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-30" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#144-386" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-30" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/struct.EditMode.html" title="struct game::edit::EditMode">EditMode</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-30" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#145-377" title="goto source code">[src]</a></div><a href="#method.event-30" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-31" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#379-385" title="goto source code">[src]</a></div><a href="#method.draw-31" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-30" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/zones.rs.html#83-166" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-30" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/zones/struct.ZoneEditor.html" title="struct game::edit::zones::ZoneEditor">ZoneEditor</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-30" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/zones.rs.html#84-157" title="goto source code">[src]</a></div><a href="#method.event-30" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-31" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/zones.rs.html#159-165" title="goto source code">[src]</a></div><a href="#method.draw-31" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-30" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-30" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-30" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-30" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-31" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#505-545" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-31" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/struct.SaveEdits.html" title="struct game::edit::SaveEdits">SaveEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-31" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#506-539" title="goto source code">[src]</a></div><a href="#method.event-31" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-32" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#541-544" title="goto source code">[src]</a></div><a href="#method.draw-32" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-31" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#144-386" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-31" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/struct.EditMode.html" title="struct game::edit::EditMode">EditMode</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-31" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#145-377" title="goto source code">[src]</a></div><a href="#method.event-31" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-32" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#379-385" title="goto source code">[src]</a></div><a href="#method.draw-32" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-31" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-31" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-31" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-31" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-32" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#607-680" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-32" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/struct.LoadEdits.html" title="struct game::edit::LoadEdits">LoadEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-32" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#608-674" title="goto source code">[src]</a></div><a href="#method.event-32" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-33" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#676-679" title="goto source code">[src]</a></div><a href="#method.draw-33" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-32" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#505-545" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-32" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/struct.SaveEdits.html" title="struct game::edit::SaveEdits">SaveEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-32" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#506-539" title="goto source code">[src]</a></div><a href="#method.event-32" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-33" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#541-544" title="goto source code">[src]</a></div><a href="#method.draw-33" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-32" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-32" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-32" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-32" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-33" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#954-972" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-33" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/struct.ConfirmDiscard.html" title="struct game::edit::ConfirmDiscard">ConfirmDiscard</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-33" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#955-967" title="goto source code">[src]</a></div><a href="#method.event-33" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-34" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#969-971" title="goto source code">[src]</a></div><a href="#method.draw-34" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-33" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#607-680" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-33" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/struct.LoadEdits.html" title="struct game::edit::LoadEdits">LoadEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-33" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#608-674" title="goto source code">[src]</a></div><a href="#method.event-33" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-34" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#676-679" title="goto source code">[src]</a></div><a href="#method.draw-34" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-33" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-33" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-33" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-33" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-34" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/layer/mod.rs.html#160-278" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-34" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../layer/struct.PickLayer.html" title="struct game::layer::PickLayer">PickLayer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-34" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/layer/mod.rs.html#161-268" title="goto source code">[src]</a></div><a href="#method.event-34" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-34" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/layer/mod.rs.html#270-272" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-34" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-35" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/layer/mod.rs.html#274-277" title="goto source code">[src]</a></div><a href="#method.draw-35" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-34" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#954-972" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-34" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../edit/struct.ConfirmDiscard.html" title="struct game::edit::ConfirmDiscard">ConfirmDiscard</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-34" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#955-967" title="goto source code">[src]</a></div><a href="#method.event-34" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-35" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/edit/mod.rs.html#969-971" title="goto source code">[src]</a></div><a href="#method.draw-35" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-34" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-34" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-34" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-34" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-35" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ltn/browse.rs.html#40-78" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-35" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ltn/browse/struct.BrowseNeighborhoods.html" title="struct game::ltn::browse::BrowseNeighborhoods">BrowseNeighborhoods</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-35" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ltn/browse.rs.html#41-72" title="goto source code">[src]</a></div><a href="#method.event-35" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-36" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ltn/browse.rs.html#74-77" title="goto source code">[src]</a></div><a href="#method.draw-36" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-35" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-35" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-35" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/layer/mod.rs.html#160-278" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-35" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../layer/struct.PickLayer.html" title="struct game::layer::PickLayer">PickLayer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-35" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/layer/mod.rs.html#161-268" title="goto source code">[src]</a></div><a href="#method.event-35" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-35" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/layer/mod.rs.html#270-272" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-35" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-36" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/layer/mod.rs.html#274-277" title="goto source code">[src]</a></div><a href="#method.draw-36" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-35" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-35" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-36" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ltn/mod.rs.html#167-235" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-36" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ltn/struct.Viewer.html" title="struct game::ltn::Viewer">Viewer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-36" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ltn/mod.rs.html#168-216" title="goto source code">[src]</a></div><a href="#method.event-36" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-37" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ltn/mod.rs.html#218-234" title="goto source code">[src]</a></div><a href="#method.draw-37" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-36" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ltn/browse.rs.html#40-78" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-36" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ltn/browse/struct.BrowseNeighborhoods.html" title="struct game::ltn::browse::BrowseNeighborhoods">BrowseNeighborhoods</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-36" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ltn/browse.rs.html#41-72" title="goto source code">[src]</a></div><a href="#method.event-36" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-37" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ltn/browse.rs.html#74-77" title="goto source code">[src]</a></div><a href="#method.draw-37" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-36" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-36" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-36" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-36" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-37" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/proposals.rs.html#129-172" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-37" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-37" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/proposals.rs.html#130-162" title="goto source code">[src]</a></div><a href="#method.event-37" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-37" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/proposals.rs.html#164-166" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-37" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-38" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/proposals.rs.html#168-171" title="goto source code">[src]</a></div><a href="#method.draw-38" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-37" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ltn/mod.rs.html#167-235" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-37" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ltn/struct.Viewer.html" title="struct game::ltn::Viewer">Viewer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-37" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ltn/mod.rs.html#168-216" title="goto source code">[src]</a></div><a href="#method.event-37" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-38" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ltn/mod.rs.html#218-234" title="goto source code">[src]</a></div><a href="#method.draw-38" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-37" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-37" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-37" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-37" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-38" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#66-86" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-38" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../pregame/struct.TitleScreen.html" title="struct game::pregame::TitleScreen">TitleScreen</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-38" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#67-81" title="goto source code">[src]</a></div><a href="#method.event-38" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-39" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#83-85" title="goto source code">[src]</a></div><a href="#method.draw-39" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-38" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-38" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-38" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/proposals.rs.html#129-172" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-38" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-38" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/proposals.rs.html#130-162" title="goto source code">[src]</a></div><a href="#method.event-38" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-38" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/proposals.rs.html#164-166" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-38" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-39" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/proposals.rs.html#168-171" title="goto source code">[src]</a></div><a href="#method.draw-39" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-38" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-38" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-39" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#190-240" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-39" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../pregame/struct.MainMenu.html" title="struct game::pregame::MainMenu">MainMenu</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-39" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#191-230" title="goto source code">[src]</a></div><a href="#method.event-39" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-39" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#232-234" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-39" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-40" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#236-239" title="goto source code">[src]</a></div><a href="#method.draw-40" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-39" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#66-86" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-39" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../pregame/struct.TitleScreen.html" title="struct game::pregame::TitleScreen">TitleScreen</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-39" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#67-81" title="goto source code">[src]</a></div><a href="#method.event-39" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-40" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#83-85" title="goto source code">[src]</a></div><a href="#method.draw-40" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-39" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-39" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-39" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-39" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-4" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/common/warp.rs.html#132-151" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-4" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../common/warp/struct.DebugWarp.html" title="struct game::common::warp::DebugWarp">DebugWarp</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-4" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/common/warp.rs.html#133-145" title="goto source code">[src]</a></div><a href="#method.event-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-5" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/common/warp.rs.html#147-150" title="goto source code">[src]</a></div><a href="#method.draw-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-4" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-4" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-4" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-4" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-40" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#298-323" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-40" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../pregame/struct.About.html" title="struct game::pregame::About">About</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-40" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#299-313" title="goto source code">[src]</a></div><a href="#method.event-40" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-40" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#315-317" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-40" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-41" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#319-322" title="goto source code">[src]</a></div><a href="#method.draw-41" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-40" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#190-240" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-40" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../pregame/struct.MainMenu.html" title="struct game::pregame::MainMenu">MainMenu</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-40" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#191-230" title="goto source code">[src]</a></div><a href="#method.event-40" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-40" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#232-234" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-40" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-41" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#236-239" title="goto source code">[src]</a></div><a href="#method.draw-41" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-40" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-40" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-41" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/commuter.rs.html#337-450" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-41" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/commuter/struct.CommuterPatterns.html" title="struct game::sandbox::dashboards::commuter::CommuterPatterns">CommuterPatterns</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-41" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/commuter.rs.html#338-441" title="goto source code">[src]</a></div><a href="#method.event-41" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-42" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/commuter.rs.html#443-449" title="goto source code">[src]</a></div><a href="#method.draw-42" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-41" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-41" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-41" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#298-323" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-41" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../pregame/struct.About.html" title="struct game::pregame::About">About</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-41" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#299-313" title="goto source code">[src]</a></div><a href="#method.event-41" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-41" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#315-317" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-41" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-42" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/pregame/mod.rs.html#319-322" title="goto source code">[src]</a></div><a href="#method.draw-42" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-41" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-41" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-42" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#63-80" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-42" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/misc/struct.ActiveTraffic.html" title="struct game::sandbox::dashboards::misc::ActiveTraffic">ActiveTraffic</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-42" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#64-75" title="goto source code">[src]</a></div><a href="#method.event-42" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-43" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#77-79" title="goto source code">[src]</a></div><a href="#method.draw-43" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-42" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/commuter.rs.html#337-450" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-42" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/commuter/struct.CommuterPatterns.html" title="struct game::sandbox::dashboards::commuter::CommuterPatterns">CommuterPatterns</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-42" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/commuter.rs.html#338-441" title="goto source code">[src]</a></div><a href="#method.event-42" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-43" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/commuter.rs.html#443-449" title="goto source code">[src]</a></div><a href="#method.draw-43" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-42" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-42" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-42" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-42" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-43" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#203-253" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-43" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/misc/struct.TransitRoutes.html" title="struct game::sandbox::dashboards::misc::TransitRoutes">TransitRoutes</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-43" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#204-248" title="goto source code">[src]</a></div><a href="#method.event-43" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-44" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#250-252" title="goto source code">[src]</a></div><a href="#method.draw-44" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-43" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#63-80" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-43" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/misc/struct.ActiveTraffic.html" title="struct game::sandbox::dashboards::misc::ActiveTraffic">ActiveTraffic</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-43" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#64-75" title="goto source code">[src]</a></div><a href="#method.event-43" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-44" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#77-79" title="goto source code">[src]</a></div><a href="#method.draw-44" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-43" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-43" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-43" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-43" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-44" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/mode_shift.rs.html#59-101" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-44" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/mode_shift/struct.ModeShift.html" title="struct game::sandbox::dashboards::mode_shift::ModeShift">ModeShift</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-44" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/mode_shift.rs.html#60-88" title="goto source code">[src]</a></div><a href="#method.event-44" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-45" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/mode_shift.rs.html#90-100" title="goto source code">[src]</a></div><a href="#method.draw-45" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-44" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#203-253" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-44" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/misc/struct.TransitRoutes.html" title="struct game::sandbox::dashboards::misc::TransitRoutes">TransitRoutes</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-44" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#204-248" title="goto source code">[src]</a></div><a href="#method.event-44" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-45" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/misc.rs.html#250-252" title="goto source code">[src]</a></div><a href="#method.draw-45" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-44" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-44" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-44" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-44" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-45" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/parking_overhead.rs.html#73-105" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-45" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/parking_overhead/struct.ParkingOverhead.html" title="struct game::sandbox::dashboards::parking_overhead::ParkingOverhead">ParkingOverhead</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-45" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/parking_overhead.rs.html#74-99" title="goto source code">[src]</a></div><a href="#method.event-45" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-46" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/parking_overhead.rs.html#101-104" title="goto source code">[src]</a></div><a href="#method.draw-46" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-45" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/mode_shift.rs.html#59-101" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-45" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/mode_shift/struct.ModeShift.html" title="struct game::sandbox::dashboards::mode_shift::ModeShift">ModeShift</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-45" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/mode_shift.rs.html#60-88" title="goto source code">[src]</a></div><a href="#method.event-45" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-46" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/mode_shift.rs.html#90-100" title="goto source code">[src]</a></div><a href="#method.draw-46" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-45" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-45" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-45" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-45" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-46" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/risks.rs.html#133-172" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-46" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/risks/struct.RiskSummaries.html" title="struct game::sandbox::dashboards::risks::RiskSummaries">RiskSummaries</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-46" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/risks.rs.html#134-167" title="goto source code">[src]</a></div><a href="#method.event-46" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-47" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/risks.rs.html#169-171" title="goto source code">[src]</a></div><a href="#method.draw-47" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-46" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/parking_overhead.rs.html#73-105" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-46" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/parking_overhead/struct.ParkingOverhead.html" title="struct game::sandbox::dashboards::parking_overhead::ParkingOverhead">ParkingOverhead</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-46" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/parking_overhead.rs.html#74-99" title="goto source code">[src]</a></div><a href="#method.event-46" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-47" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/parking_overhead.rs.html#101-104" title="goto source code">[src]</a></div><a href="#method.draw-47" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-46" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-46" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-46" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-46" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-47" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/selector.rs.html#58-116" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-47" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/selector/struct.RectangularSelector.html" title="struct game::sandbox::dashboards::selector::RectangularSelector">RectangularSelector</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-47" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/selector.rs.html#59-103" title="goto source code">[src]</a></div><a href="#method.event-47" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-48" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/selector.rs.html#105-115" title="goto source code">[src]</a></div><a href="#method.draw-48" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-47" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/risks.rs.html#133-172" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-47" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/risks/struct.RiskSummaries.html" title="struct game::sandbox::dashboards::risks::RiskSummaries">RiskSummaries</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-47" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/risks.rs.html#134-167" title="goto source code">[src]</a></div><a href="#method.event-47" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-48" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/risks.rs.html#169-171" title="goto source code">[src]</a></div><a href="#method.draw-48" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-47" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-47" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-47" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-47" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-48" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#111-163" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-48" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/traffic_signals/struct.TrafficSignalDemand.html" title="struct game::sandbox::dashboards::traffic_signals::TrafficSignalDemand">TrafficSignalDemand</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-48" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#112-148" title="goto source code">[src]</a></div><a href="#method.event-48" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-48" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#150-152" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-48" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-49" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#154-162" title="goto source code">[src]</a></div><a href="#method.draw-49" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-48" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/selector.rs.html#58-116" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-48" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/selector/struct.RectangularSelector.html" title="struct game::sandbox::dashboards::selector::RectangularSelector">RectangularSelector</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-48" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/selector.rs.html#59-103" title="goto source code">[src]</a></div><a href="#method.event-48" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-49" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/selector.rs.html#105-115" title="goto source code">[src]</a></div><a href="#method.draw-49" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-48" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-48" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-48" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-48" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-49" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/travel_times.rs.html#115-166" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-49" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/travel_times/struct.TravelTimes.html" title="struct game::sandbox::dashboards::travel_times::TravelTimes">TravelTimes</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-49" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/travel_times.rs.html#116-161" title="goto source code">[src]</a></div><a href="#method.event-49" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-50" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/travel_times.rs.html#163-165" title="goto source code">[src]</a></div><a href="#method.draw-50" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-49" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-49" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-49" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#111-163" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-49" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/traffic_signals/struct.TrafficSignalDemand.html" title="struct game::sandbox::dashboards::traffic_signals::TrafficSignalDemand">TrafficSignalDemand</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-49" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#112-148" title="goto source code">[src]</a></div><a href="#method.event-49" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-49" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#150-152" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-49" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-50" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/traffic_signals.rs.html#154-162" title="goto source code">[src]</a></div><a href="#method.draw-50" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-49" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-49" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-5" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blocked_by.rs.html#204-265" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-5" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/blocked_by/struct.Viewer.html" title="struct game::debug::blocked_by::Viewer">Viewer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-5" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blocked_by.rs.html#205-251" title="goto source code">[src]</a></div><a href="#method.event-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-6" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blocked_by.rs.html#253-264" title="goto source code">[src]</a></div><a href="#method.draw-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-5" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-5" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-5" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-5" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-50" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/trip_table.rs.html#120-209" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-50" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/trip_table/struct.TripTable.html" title="struct game::sandbox::dashboards::trip_table::TripTable">TripTable</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-50" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/trip_table.rs.html#121-194" title="goto source code">[src]</a></div><a href="#method.event-50" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-51" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/trip_table.rs.html#196-208" title="goto source code">[src]</a></div><a href="#method.draw-51" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-50" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/travel_times.rs.html#115-166" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-50" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/travel_times/struct.TravelTimes.html" title="struct game::sandbox::dashboards::travel_times::TravelTimes">TravelTimes</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-50" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/travel_times.rs.html#116-161" title="goto source code">[src]</a></div><a href="#method.event-50" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-51" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/travel_times.rs.html#163-165" title="goto source code">[src]</a></div><a href="#method.draw-51" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-50" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-50" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-50" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-50" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-51" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/spawner.rs.html#90-305" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-51" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/gameplay/freeform/spawner/struct.AgentSpawner.html" title="struct game::sandbox::gameplay::freeform::spawner::AgentSpawner">AgentSpawner</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-51" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/spawner.rs.html#91-289" title="goto source code">[src]</a></div><a href="#method.event-51" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-52" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/spawner.rs.html#291-304" title="goto source code">[src]</a></div><a href="#method.draw-52" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-51" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/trip_table.rs.html#120-209" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-51" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/dashboards/trip_table/struct.TripTable.html" title="struct game::sandbox::dashboards::trip_table::TripTable">TripTable</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-51" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/trip_table.rs.html#121-194" title="goto source code">[src]</a></div><a href="#method.event-51" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-52" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/dashboards/trip_table.rs.html#196-208" title="goto source code">[src]</a></div><a href="#method.draw-52" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-51" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-51" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-51" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-51" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-52" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#294-385" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-52" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/gameplay/play_scenario/struct.EditScenarioModifiers.html" title="struct game::sandbox::gameplay::play_scenario::EditScenarioModifiers">EditScenarioModifiers</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-52" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#295-379" title="goto source code">[src]</a></div><a href="#method.event-52" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-53" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#381-384" title="goto source code">[src]</a></div><a href="#method.draw-53" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-52" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/spawner.rs.html#90-305" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-52" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/gameplay/freeform/spawner/struct.AgentSpawner.html" title="struct game::sandbox::gameplay::freeform::spawner::AgentSpawner">AgentSpawner</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-52" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/spawner.rs.html#91-289" title="goto source code">[src]</a></div><a href="#method.event-52" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-53" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/spawner.rs.html#291-304" title="goto source code">[src]</a></div><a href="#method.draw-53" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-52" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-52" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-52" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-52" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-53" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#498-552" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-53" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/gameplay/play_scenario/struct.ChangeMode.html" title="struct game::sandbox::gameplay::play_scenario::ChangeMode">ChangeMode</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-53" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#499-546" title="goto source code">[src]</a></div><a href="#method.event-53" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-54" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#548-551" title="goto source code">[src]</a></div><a href="#method.draw-54" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-53" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#294-385" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-53" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/gameplay/play_scenario/struct.EditScenarioModifiers.html" title="struct game::sandbox::gameplay::play_scenario::EditScenarioModifiers">EditScenarioModifiers</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-53" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#295-379" title="goto source code">[src]</a></div><a href="#method.event-53" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-54" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#381-384" title="goto source code">[src]</a></div><a href="#method.draw-54" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-53" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-53" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-53" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-53" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-54" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/mod.rs.html#302-375" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-54" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/gameplay/struct.FinalScore.html" title="struct game::sandbox::gameplay::FinalScore">FinalScore</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-54" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/mod.rs.html#303-368" title="goto source code">[src]</a></div><a href="#method.event-54" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-55" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/mod.rs.html#370-374" title="goto source code">[src]</a></div><a href="#method.draw-55" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-54" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#498-552" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-54" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/gameplay/play_scenario/struct.ChangeMode.html" title="struct game::sandbox::gameplay::play_scenario::ChangeMode">ChangeMode</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-54" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#499-546" title="goto source code">[src]</a></div><a href="#method.event-54" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-55" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#548-551" title="goto source code">[src]</a></div><a href="#method.draw-55" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-54" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-54" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-54" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-54" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-55" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/misc_tools.rs.html#99-149" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-55" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/misc_tools/struct.TrafficRecorder.html" title="struct game::sandbox::misc_tools::TrafficRecorder">TrafficRecorder</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-55" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/misc_tools.rs.html#100-133" title="goto source code">[src]</a></div><a href="#method.event-55" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-56" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/misc_tools.rs.html#135-148" title="goto source code">[src]</a></div><a href="#method.draw-56" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-55" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/mod.rs.html#302-375" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-55" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/gameplay/struct.FinalScore.html" title="struct game::sandbox::gameplay::FinalScore">FinalScore</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-55" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/mod.rs.html#303-368" title="goto source code">[src]</a></div><a href="#method.event-55" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-56" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/gameplay/mod.rs.html#370-374" title="goto source code">[src]</a></div><a href="#method.draw-56" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-55" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-55" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-55" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-55" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-56" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#112-206" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-56" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/time_warp/struct.JumpToTime.html" title="struct game::sandbox::time_warp::JumpToTime">JumpToTime</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-56" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#113-200" title="goto source code">[src]</a></div><a href="#method.event-56" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-57" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#202-205" title="goto source code">[src]</a></div><a href="#method.draw-57" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-56" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/misc_tools.rs.html#99-149" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-56" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/misc_tools/struct.TrafficRecorder.html" title="struct game::sandbox::misc_tools::TrafficRecorder">TrafficRecorder</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-56" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/misc_tools.rs.html#100-133" title="goto source code">[src]</a></div><a href="#method.event-56" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-57" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/misc_tools.rs.html#135-148" title="goto source code">[src]</a></div><a href="#method.draw-57" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-56" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-56" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-56" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-56" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-57" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#268-400" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-57" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/time_warp/struct.TimeWarpScreen.html" title="struct game::sandbox::time_warp::TimeWarpScreen">TimeWarpScreen</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-57" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#269-376" title="goto source code">[src]</a></div><a href="#method.event-57" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-57" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#378-380" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-57" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-58" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#382-391" title="goto source code">[src]</a></div><a href="#method.draw-58" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-57" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#393-399" title="goto source code">[src]</a></div><a href="#method.on_destroy-57" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, _: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-58" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#108-251" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-58" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/struct.SandboxMode.html" title="struct game::sandbox::SandboxMode">SandboxMode</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-58" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#109-214" title="goto source code">[src]</a></div><a href="#method.event-58" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-59" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#216-244" title="goto source code">[src]</a></div><a href="#method.draw-59" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-58" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#246-250" title="goto source code">[src]</a></div><a href="#method.on_destroy-58" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, _: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-58" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-58" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-59" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#286-294" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-59" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/struct.BackToMainMenu.html" title="struct game::sandbox::BackToMainMenu">BackToMainMenu</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-59" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#287-291" title="goto source code">[src]</a></div><a href="#method.event-59" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-60" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#293" title="goto source code">[src]</a></div><a href="#method.draw-60" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-57" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#112-206" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-57" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/time_warp/struct.JumpToTime.html" title="struct game::sandbox::time_warp::JumpToTime">JumpToTime</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-57" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#113-200" title="goto source code">[src]</a></div><a href="#method.event-57" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-58" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#202-205" title="goto source code">[src]</a></div><a href="#method.draw-58" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-57" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-57" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-57" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-57" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-58" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#268-400" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-58" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/time_warp/struct.TimeWarpScreen.html" title="struct game::sandbox::time_warp::TimeWarpScreen">TimeWarpScreen</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-58" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#269-376" title="goto source code">[src]</a></div><a href="#method.event-58" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-58" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#378-380" title="goto source code">[src]</a></div><a href="#method.draw_baselayer-58" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-59" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#382-391" title="goto source code">[src]</a></div><a href="#method.draw-59" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-58" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#393-399" title="goto source code">[src]</a></div><a href="#method.on_destroy-58" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, _: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-59" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#108-251" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-59" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/struct.SandboxMode.html" title="struct game::sandbox::SandboxMode">SandboxMode</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-59" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#109-214" title="goto source code">[src]</a></div><a href="#method.event-59" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-60" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#216-244" title="goto source code">[src]</a></div><a href="#method.draw-60" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-59" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#246-250" title="goto source code">[src]</a></div><a href="#method.on_destroy-59" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, _: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-59" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-59" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-59" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-59" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-6" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/floodfill.rs.html#80-112" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-6" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/floodfill/struct.Floodfiller.html" title="struct game::debug::floodfill::Floodfiller">Floodfiller</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-6" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/floodfill.rs.html#81-106" title="goto source code">[src]</a></div><a href="#method.event-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/floodfill.rs.html#108-111" title="goto source code">[src]</a></div><a href="#method.draw-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-6" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#72-156" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-6" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/blockfinder/struct.Blockfinder.html" title="struct game::debug::blockfinder::Blockfinder">Blockfinder</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-6" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#73-150" title="goto source code">[src]</a></div><a href="#method.event-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/blockfinder.rs.html#152-155" title="goto source code">[src]</a></div><a href="#method.draw-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-6" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-6" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-6" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-6" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-60" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#450-637" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-60" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/struct.SandboxLoader.html" title="struct game::sandbox::SandboxLoader">SandboxLoader</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-60" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#451-634" title="goto source code">[src]</a></div><a href="#method.event-60" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-61" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#636" title="goto source code">[src]</a></div><a href="#method.draw-61" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-60" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#286-294" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-60" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/struct.BackToMainMenu.html" title="struct game::sandbox::BackToMainMenu">BackToMainMenu</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-60" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#287-291" title="goto source code">[src]</a></div><a href="#method.event-60" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-61" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#293" title="goto source code">[src]</a></div><a href="#method.draw-61" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-60" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-60" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-60" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-60" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-61" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/explore.rs.html#55-99" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-61" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/explore/struct.ExploreMap.html" title="struct game::ungap::explore::ExploreMap">ExploreMap</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-61" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/explore.rs.html#56-79" title="goto source code">[src]</a></div><a href="#method.event-61" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-62" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/explore.rs.html#81-98" title="goto source code">[src]</a></div><a href="#method.draw-62" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-61" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#450-637" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-61" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../sandbox/struct.SandboxLoader.html" title="struct game::sandbox::SandboxLoader">SandboxLoader</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-61" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#451-634" title="goto source code">[src]</a></div><a href="#method.event-61" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-62" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#636" title="goto source code">[src]</a></div><a href="#method.draw-62" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-61" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-61" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-61" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-61" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-62" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/predict.rs.html#41-128" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-62" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/predict/struct.ShowGaps.html" title="struct game::ungap::predict::ShowGaps">ShowGaps</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-62" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/predict.rs.html#42-115" title="goto source code">[src]</a></div><a href="#method.event-62" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-63" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/predict.rs.html#117-127" title="goto source code">[src]</a></div><a href="#method.draw-63" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-62" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/explore.rs.html#55-99" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-62" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/explore/struct.ExploreMap.html" title="struct game::ungap::explore::ExploreMap">ExploreMap</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-62" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/explore.rs.html#56-79" title="goto source code">[src]</a></div><a href="#method.event-62" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-63" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/explore.rs.html#81-98" title="goto source code">[src]</a></div><a href="#method.draw-63" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-62" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-62" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-62" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-62" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-63" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/quick_sketch.rs.html#107-208" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-63" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/quick_sketch/struct.QuickSketch.html" title="struct game::ungap::quick_sketch::QuickSketch">QuickSketch</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-63" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/quick_sketch.rs.html#108-201" title="goto source code">[src]</a></div><a href="#method.event-63" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-64" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/quick_sketch.rs.html#203-207" title="goto source code">[src]</a></div><a href="#method.draw-64" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-63" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/predict.rs.html#41-128" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-63" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/predict/struct.ShowGaps.html" title="struct game::ungap::predict::ShowGaps">ShowGaps</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-63" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/predict.rs.html#42-115" title="goto source code">[src]</a></div><a href="#method.event-63" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-64" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/predict.rs.html#117-127" title="goto source code">[src]</a></div><a href="#method.draw-64" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-63" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-63" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-63" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-63" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-64" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/mod.rs.html#176-261" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-64" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/trip/struct.TripPlanner.html" title="struct game::ungap::trip::TripPlanner">TripPlanner</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-64" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/mod.rs.html#177-246" title="goto source code">[src]</a></div><a href="#method.event-64" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-65" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/mod.rs.html#248-253" title="goto source code">[src]</a></div><a href="#method.draw-65" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-64" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/mod.rs.html#255-260" title="goto source code">[src]</a></div><a href="#method.on_destroy-64" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, _: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-64" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/quick_sketch.rs.html#107-208" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-64" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/quick_sketch/struct.QuickSketch.html" title="struct game::ungap::quick_sketch::QuickSketch">QuickSketch</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-64" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/quick_sketch.rs.html#108-201" title="goto source code">[src]</a></div><a href="#method.event-64" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-65" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/quick_sketch.rs.html#203-207" title="goto source code">[src]</a></div><a href="#method.draw-65" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-64" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-64" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-7" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/path_counter.rs.html#83-125" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-7" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/path_counter/struct.PathCounter.html" title="struct game::debug::path_counter::PathCounter">PathCounter</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/path_counter.rs.html#84-113" title="goto source code">[src]</a></div><a href="#method.event-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/path_counter.rs.html#115-124" title="goto source code">[src]</a></div><a href="#method.draw-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-64" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-64" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-65" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/mod.rs.html#176-261" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-65" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/trip/struct.TripPlanner.html" title="struct game::ungap::trip::TripPlanner">TripPlanner</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-65" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/mod.rs.html#177-246" title="goto source code">[src]</a></div><a href="#method.event-65" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-66" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/mod.rs.html#248-253" title="goto source code">[src]</a></div><a href="#method.draw-66" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-65" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/mod.rs.html#255-260" title="goto source code">[src]</a></div><a href="#method.on_destroy-65" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, _: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-65" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-65" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-7" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/floodfill.rs.html#80-112" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-7" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/floodfill/struct.Floodfiller.html" title="struct game::debug::floodfill::Floodfiller">Floodfiller</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/floodfill.rs.html#81-106" title="goto source code">[src]</a></div><a href="#method.event-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/floodfill.rs.html#108-111" title="goto source code">[src]</a></div><a href="#method.draw-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-7" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-7" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-7" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-7" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-8" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/polygons.rs.html#66-147" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-8" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/polygons/struct.PolygonDebugger.html" title="struct game::debug::polygons::PolygonDebugger">PolygonDebugger</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/polygons.rs.html#67-95" title="goto source code">[src]</a></div><a href="#method.event-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-9" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/polygons.rs.html#97-146" title="goto source code">[src]</a></div><a href="#method.draw-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-8" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/path_counter.rs.html#83-125" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-8" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/path_counter/struct.PathCounter.html" title="struct game::debug::path_counter::PathCounter">PathCounter</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/path_counter.rs.html#84-113" title="goto source code">[src]</a></div><a href="#method.event-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-9" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/path_counter.rs.html#115-124" title="goto source code">[src]</a></div><a href="#method.draw-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-8" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-8" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-8" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-8" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-9" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#74-188" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-9" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/routes/struct.RouteExplorer.html" title="struct game::debug::routes::RouteExplorer">RouteExplorer</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-9" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#75-162" title="goto source code">[src]</a></div><a href="#method.event-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-10" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/routes.rs.html#164-187" title="goto source code">[src]</a></div><a href="#method.draw-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-9" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/polygons.rs.html#66-147" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-9" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/polygons/struct.PolygonDebugger.html" title="struct game::debug::polygons::PolygonDebugger">PolygonDebugger</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-9" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/polygons.rs.html#67-95" title="goto source code">[src]</a></div><a href="#method.event-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-10" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/polygons.rs.html#97-146" title="goto source code">[src]</a></div><a href="#method.draw-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-9" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-9" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-9" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-9" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><div id="impl-RefUnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.56.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.App.html" title="struct game::app::App">App</a></h3></div><div id="impl-Send" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.App.html" title="struct game::app::App">App</a></h3></div><div id="impl-Sync" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.App.html" title="struct game::app::App">App</a></h3></div><div id="impl-Unpin" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.App.html" title="struct game::app::App">App</a></h3></div><div id="impl-UnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.56.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.App.html" title="struct game::app::App">App</a></h3></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Any" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.0/src/core/any.rs.html#132-136" title="goto source code">[src]</a></div><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.type_id" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.0/src/core/any.rs.html#133" title="goto source code">[src]</a></div><a href="#method.type_id" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.56.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.56.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></div></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.56.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `ShowObject` trait in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, ShowObject"><title>ShowObject in game::app - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Trait ShowObject</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><div class="sidebar-links"><a href="#tymethod.layers">layers</a><a href="#tymethod.show">show</a></div><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">app</a></h2><div id="sidebar-vars" data-name="ShowObject" data-ty="trait" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Trait <a href="../index.html">game</a>::<wbr><a href="index.html">app</a>::<wbr><a class="trait" href="#">ShowObject</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/app.rs.html#569-572" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust trait"><code>pub trait ShowObject {
|
||||
fn <a href="#tymethod.show" class="fnname">show</a>(&self, obj: &<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a>;
|
||||
<div class="item-spacer"></div> fn <a href="#tymethod.layers" class="fnname">layers</a>(&self) -> &<a class="struct" href="struct.ShowLayers.html" title="struct game::app::ShowLayers">ShowLayers</a>;
|
||||
}</code></pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.show" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/app.rs.html#570" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.show" class="fnname">show</a>(&self, obj: &<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a></h4></div><div id="tymethod.layers" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/app.rs.html#571" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.layers" class="fnname">layers</a>(&self) -> &<a class="struct" href="struct.ShowLayers.html" title="struct game::app::ShowLayers">ShowLayers</a></h4></div></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><div id="impl-ShowObject" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#505-523" title="goto source code">[src]</a></div><a href="#impl-ShowObject" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ShowObject.html" title="trait game::app::ShowObject">ShowObject</a> for <a class="struct" href="../debug/struct.DebugMode.html" title="struct game::debug::DebugMode">DebugMode</a></h3></div><div id="impl-ShowObject-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/app.rs.html#586-594" title="goto source code">[src]</a></div><a href="#impl-ShowObject-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ShowObject.html" title="trait game::app::ShowObject">ShowObject</a> for <a class="struct" href="struct.ShowEverything.html" title="struct game::app::ShowEverything">ShowEverything</a></h3></div></div><script type="text/javascript" src="../../implementors/game/app/trait.ShowObject.js" async></script></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
}</code></pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.show" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/app.rs.html#570" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.show" class="fnname">show</a>(&self, obj: &<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a></h4></div><div id="tymethod.layers" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/app.rs.html#571" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.layers" class="fnname">layers</a>(&self) -> &<a class="struct" href="struct.ShowLayers.html" title="struct game::app::ShowLayers">ShowLayers</a></h4></div></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><div id="impl-ShowObject" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#506-524" title="goto source code">[src]</a></div><a href="#impl-ShowObject" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ShowObject.html" title="trait game::app::ShowObject">ShowObject</a> for <a class="struct" href="../debug/struct.DebugMode.html" title="struct game::debug::DebugMode">DebugMode</a></h3></div><div id="impl-ShowObject-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/app.rs.html#586-594" title="goto source code">[src]</a></div><a href="#impl-ShowObject-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ShowObject.html" title="trait game::app::ShowObject">ShowObject</a> for <a class="struct" href="struct.ShowEverything.html" title="struct game::app::ShowEverything">ShowEverything</a></h3></div></div><script type="text/javascript" src="../../implementors/game/app/trait.ShowObject.js" async></script></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<script src="../../main.js"></script>
|
||||
</body></html>
|
3
rustdoc/game/debug/blockfinder/fn.make_panel.html
Normal file
3
rustdoc/game/debug/blockfinder/fn.make_panel.html
Normal file
@ -0,0 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_panel` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_panel"><title>make_panel in game::debug::blockfinder - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../../index.html">game</a>::<wbr><a href="../index.html">debug</a>::<wbr><a href="index.html">blockfinder</a></h2><div id="sidebar-vars" data-name="make_panel" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">debug</a>::<wbr><a href="index.html">blockfinder</a>::<wbr><a class="fn" href="#">make_panel</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/debug/blockfinder.rs.html#227-248" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn make_panel(ctx: &mut EventCtx<'_>) -> Panel</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="game" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
<script src="../../../main.js"></script>
|
||||
</body></html>
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `blockfinder` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, blockfinder"><title>game::debug::blockfinder - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module blockfinder</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><div id="sidebar-vars" data-name="blockfinder" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">debug</a>::<wbr><a class="mod" href="#">blockfinder</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/debug/blockfinder.rs.html#1-163" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.Blockfinder.html" title="game::debug::blockfinder::Blockfinder struct">Blockfinder</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.OneBlock.html" title="game::debug::blockfinder::OneBlock struct">OneBlock</a></div><div class="item-right docblock-short"></div></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="game" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `blockfinder` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, blockfinder"><title>game::debug::blockfinder - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module blockfinder</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="blockfinder" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">debug</a>::<wbr><a class="mod" href="#">blockfinder</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/debug/blockfinder.rs.html#1-248" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.Blockfinder.html" title="game::debug::blockfinder::Blockfinder struct">Blockfinder</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.Obj.html" title="game::debug::blockfinder::Obj struct">Obj</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.OneBlock.html" title="game::debug::blockfinder::OneBlock struct">OneBlock</a></div><div class="item-right docblock-short"></div></div><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="fn" href="fn.make_panel.html" title="game::debug::blockfinder::make_panel fn">make_panel</a></div><div class="item-right docblock-short"></div></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="game" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
<script src="../../../main.js"></script>
|
||||
</body></html>
|
@ -1 +1 @@
|
||||
initSidebarItems({"struct":[["Blockfinder",""],["OneBlock",""]]});
|
||||
initSidebarItems({"fn":[["make_panel",""]],"struct":[["Blockfinder",""],["Obj",""],["OneBlock",""]]});
|
File diff suppressed because one or more lines are too long
40
rustdoc/game/debug/blockfinder/struct.Obj.html
Normal file
40
rustdoc/game/debug/blockfinder/struct.Obj.html
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `calc_all_routes` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, calc_all_routes"><title>calc_all_routes in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="calc_all_routes" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">calc_all_routes</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#575-593" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn calc_all_routes(ctx: &EventCtx<'_>, app: &mut <a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.usize.html">usize</a>, Drawable<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">)</a></code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `calc_all_routes` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, calc_all_routes"><title>calc_all_routes in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="calc_all_routes" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">calc_all_routes</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#576-594" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn calc_all_routes(ctx: &EventCtx<'_>, app: &mut <a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.usize.html">usize</a>, Drawable<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">)</a></code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<script src="../../main.js"></script>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `diff_tags` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, diff_tags"><title>diff_tags in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="diff_tags" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">diff_tags</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#897-905" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn diff_tags(t1: &<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>, t2: &<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>)</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `diff_tags` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, diff_tags"><title>diff_tags in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="diff_tags" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">diff_tags</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#910-918" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn diff_tags(t1: &<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>, t2: &<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>)</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<script src="../../main.js"></script>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `draw_arterial_crosswalks` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_arterial_crosswalks"><title>draw_arterial_crosswalks in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="draw_arterial_crosswalks" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">draw_arterial_crosswalks</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#1033-1046" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn draw_arterial_crosswalks(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>) -> Drawable</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `draw_arterial_crosswalks` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_arterial_crosswalks"><title>draw_arterial_crosswalks in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="draw_arterial_crosswalks" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">draw_arterial_crosswalks</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#1046-1059" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn draw_arterial_crosswalks(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>) -> Drawable</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<script src="../../main.js"></script>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `draw_banned_turns` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_banned_turns"><title>draw_banned_turns in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="draw_banned_turns" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">draw_banned_turns</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#1001-1031" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn draw_banned_turns(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>) -> Drawable</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `draw_banned_turns` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_banned_turns"><title>draw_banned_turns in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="draw_banned_turns" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">draw_banned_turns</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#1014-1044" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn draw_banned_turns(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>) -> Drawable</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<script src="../../main.js"></script>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `export_for_leaflet` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, export_for_leaflet"><title>export_for_leaflet in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="export_for_leaflet" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">export_for_leaflet</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#979-999" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn export_for_leaflet(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>)</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `export_for_leaflet` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, export_for_leaflet"><title>export_for_leaflet in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="export_for_leaflet" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">export_for_leaflet</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#992-1012" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn export_for_leaflet(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>)</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<script src="../../main.js"></script>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `find_bad_signals` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, find_bad_signals"><title>find_bad_signals in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="find_bad_signals" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">find_bad_signals</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#848-858" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn find_bad_signals(app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>)</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `find_bad_signals` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, find_bad_signals"><title>find_bad_signals in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="find_bad_signals" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">find_bad_signals</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#861-871" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn find_bad_signals(app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>)</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<script src="../../main.js"></script>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `find_degenerate_roads` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, find_degenerate_roads"><title>find_degenerate_roads in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="find_degenerate_roads" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">find_degenerate_roads</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#862-895" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn find_degenerate_roads(app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>)</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `find_degenerate_roads` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, find_degenerate_roads"><title>find_degenerate_roads in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="find_degenerate_roads" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">find_degenerate_roads</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#875-908" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn find_degenerate_roads(app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>)</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<script src="../../main.js"></script>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `find_large_intersections` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, find_large_intersections"><title>find_large_intersections in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="find_large_intersections" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">find_large_intersections</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#907-915" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn find_large_intersections(app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>)</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `find_large_intersections` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, find_large_intersections"><title>find_large_intersections in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="find_large_intersections" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">find_large_intersections</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#920-928" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn find_large_intersections(app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>)</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<script src="../../main.js"></script>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `reimport_map` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, reimport_map"><title>reimport_map in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="reimport_map" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">reimport_map</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#1049-1084" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn reimport_map(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>, <br> rollback: <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../map_model/raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>>><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>>></code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `reimport_map` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, reimport_map"><title>reimport_map in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="reimport_map" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">reimport_map</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#1062-1097" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn reimport_map(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>, <br> rollback: <a class="enum" href="https://doc.rust-lang.org/1.56.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../map_model/raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>>><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>>></code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<script src="../../main.js"></script>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `search_osm` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, search_osm"><title>search_osm in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="search_osm" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">search_osm</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#525-567" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn search_osm(<br> filter: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>></code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `search_osm` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, search_osm"><title>search_osm in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="search_osm" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="#">search_osm</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#526-568" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>fn search_osm(<br> filter: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>></code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<script src="../../main.js"></script>
|
||||
</body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `debug` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, debug"><title>game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module debug</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="debug" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">game</a>::<wbr><a class="mod" href="#">debug</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#1-1084" title="goto source code">[src]</a></span></h1><h2 id="reexports" class="section-header"><a href="#reexports">Re-exports</a></h2>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `debug` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, debug"><title>game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module debug</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="debug" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">game</a>::<wbr><a class="mod" href="#">debug</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#1-1097" title="goto source code">[src]</a></span></h1><h2 id="reexports" class="section-header"><a href="#reexports">Re-exports</a></h2>
|
||||
<div class="item-table"><div class="item-left import-item"><code>pub use self::routes::<a class="struct" href="routes/struct.PathCostDebugger.html" title="struct game::debug::routes::PathCostDebugger">PathCostDebugger</a>;</code></div><div class="item-right docblock-short"></div></div><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="mod" href="blocked_by/index.html" title="game::debug::blocked_by mod">blocked_by</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="blockfinder/index.html" title="game::debug::blockfinder mod">blockfinder</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="floodfill/index.html" title="game::debug::floodfill mod">floodfill</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="objects/index.html" title="game::debug::objects mod">objects</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="path_counter/index.html" title="game::debug::path_counter mod">path_counter</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="polygons/index.html" title="game::debug::polygons mod">polygons</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="routes/index.html" title="game::debug::routes mod">routes</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="select_roads/index.html" title="game::debug::select_roads mod">select_roads</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="shared_row/index.html" title="game::debug::shared_row mod">shared_row</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="streetmix/index.html" title="game::debug::streetmix mod">streetmix</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="uber_turns/index.html" title="game::debug::uber_turns mod">uber_turns</a></div><div class="item-right docblock-short"></div></div><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.Actions.html" title="game::debug::Actions struct">Actions</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.DebugMode.html" title="game::debug::DebugMode struct">DebugMode</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.ScreenshotTest.html" title="game::debug::ScreenshotTest struct">ScreenshotTest</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.SearchResults.html" title="game::debug::SearchResults struct">SearchResults</a></div><div class="item-right docblock-short"></div></div><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `SearchResults` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, SearchResults"><title>SearchResults in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Struct SearchResults</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><div class="sidebar-links"><a href="#structfield.draw">draw</a><a href="#structfield.num_matches">num_matches</a><a href="#structfield.query">query</a></div><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="SearchResults" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="struct" href="#">SearchResults</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#569-573" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct"><code>struct SearchResults {
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `SearchResults` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, SearchResults"><title>SearchResults in game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Struct SearchResults</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><div class="sidebar-links"><a href="#structfield.draw">draw</a><a href="#structfield.num_matches">num_matches</a><a href="#structfield.query">query</a></div><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><h2 class="location">Other items in<br><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></h2><div id="sidebar-vars" data-name="SearchResults" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="struct" href="#">SearchResults</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#570-574" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct"><code>struct SearchResults {
|
||||
query: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
num_matches: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.usize.html">usize</a>,
|
||||
draw: Drawable,
|
||||
|
@ -3,6 +3,6 @@
|
||||
<div class="item-spacer"></div> fn <a href="#tymethod.execute" class="fnname">execute</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>, <br> id: <a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>, <br> action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> close_panel: &mut <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a><br> ) -> Transition<<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>>;
|
||||
<div class="item-spacer"></div> fn <a href="#tymethod.is_paused" class="fnname">is_paused</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a>;
|
||||
<div class="item-spacer"></div> fn <a href="#tymethod.gameplay_mode" class="fnname">gameplay_mode</a>(&self) -> <a class="enum" href="../sandbox/gameplay/enum.GameplayMode.html" title="enum game::sandbox::gameplay::GameplayMode">GameplayMode</a>;
|
||||
}</code></pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.actions" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/info/mod.rs.html#749" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.actions" class="fnname">actions</a>(&self, app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>, id: <a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">(</a>Key, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a><a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">)</a>></h4></div><div id="tymethod.execute" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/info/mod.rs.html#750-757" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.execute" class="fnname">execute</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>, <br> id: <a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>, <br> action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> close_panel: &mut <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a><br>) -> Transition<<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>></h4></div><div id="tymethod.is_paused" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/info/mod.rs.html#760" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.is_paused" class="fnname">is_paused</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a></h4></div><div id="tymethod.gameplay_mode" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/info/mod.rs.html#761" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.gameplay_mode" class="fnname">gameplay_mode</a>(&self) -> <a class="enum" href="../sandbox/gameplay/enum.GameplayMode.html" title="enum game::sandbox::gameplay::GameplayMode">GameplayMode</a></h4></div></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><div id="impl-ContextualActions" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#596-846" title="goto source code">[src]</a></div><a href="#impl-ContextualActions" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ContextualActions.html" title="trait game::info::ContextualActions">ContextualActions</a> for game::debug::<a class="struct" href="../debug/struct.Actions.html" title="struct game::debug::Actions">Actions</a></h3></div><div id="impl-ContextualActions-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#302-423" title="goto source code">[src]</a></div><a href="#impl-ContextualActions-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ContextualActions.html" title="trait game::info::ContextualActions">ContextualActions</a> for game::sandbox::<a class="struct" href="../sandbox/struct.Actions.html" title="struct game::sandbox::Actions">Actions</a></h3></div></div><script type="text/javascript" src="../../implementors/game/info/trait.ContextualActions.js" async></script></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
}</code></pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.actions" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/info/mod.rs.html#749" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.actions" class="fnname">actions</a>(&self, app: &<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>, id: <a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">(</a>Key, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a><a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">)</a>></h4></div><div id="tymethod.execute" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/info/mod.rs.html#750-757" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.execute" class="fnname">execute</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>, <br> id: <a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>, <br> action: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> close_panel: &mut <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a><br>) -> Transition<<a class="struct" href="../app/struct.App.html" title="struct game::app::App">App</a>></h4></div><div id="tymethod.is_paused" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/info/mod.rs.html#760" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.is_paused" class="fnname">is_paused</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.bool.html">bool</a></h4></div><div id="tymethod.gameplay_mode" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/info/mod.rs.html#761" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.gameplay_mode" class="fnname">gameplay_mode</a>(&self) -> <a class="enum" href="../sandbox/gameplay/enum.GameplayMode.html" title="enum game::sandbox::gameplay::GameplayMode">GameplayMode</a></h4></div></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><div id="impl-ContextualActions" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/mod.rs.html#597-859" title="goto source code">[src]</a></div><a href="#impl-ContextualActions" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ContextualActions.html" title="trait game::info::ContextualActions">ContextualActions</a> for game::debug::<a class="struct" href="../debug/struct.Actions.html" title="struct game::debug::Actions">Actions</a></h3></div><div id="impl-ContextualActions-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/sandbox/mod.rs.html#302-423" title="goto source code">[src]</a></div><a href="#impl-ContextualActions-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ContextualActions.html" title="trait game::info::ContextualActions">ContextualActions</a> for game::sandbox::<a class="struct" href="../sandbox/struct.Actions.html" title="struct game::sandbox::Actions">Actions</a></h3></div></div><script type="text/javascript" src="../../implementors/game/info/trait.ContextualActions.js" async></script></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="game" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<script src="../../main.js"></script>
|
||||
</body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The build time in RFC2822, UTC."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>BUILT_TIME_UTC in game::pregame::built_info - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a></h2><div id="sidebar-vars" data-name="BUILT_TIME_UTC" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-f75313d249ca30eb/out/built.rs.html#78" title="goto source code">[src]</a></span></h1><pre class="rust const"><code>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a> = r"Wed, 27 Oct 2021 20:29:35 +0000";</code></pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The build time in RFC2822, UTC."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>BUILT_TIME_UTC in game::pregame::built_info - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a></h2><div id="sidebar-vars" data-name="BUILT_TIME_UTC" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-f75313d249ca30eb/out/built.rs.html#78" title="goto source code">[src]</a></span></h1><pre class="rust const"><code>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a> = r"Thu, 28 Oct 2021 17:21:04 +0000";</code></pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
</div></details></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="game" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
<script src="../../../main.js"></script>
|
||||
</body></html>
|
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["abstio"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"abstio/abst_paths/struct.CityName.html\" title=\"struct abstio::abst_paths::CityName\">CityName</a>","synthetic":false,"types":["abstio::abst_paths::CityName"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"abstio/abst_paths/struct.MapName.html\" title=\"struct abstio::abst_paths::MapName\">MapName</a>","synthetic":false,"types":["abstio::abst_paths::MapName"]}];
|
||||
implementors["collisions"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"enum\" href=\"collisions/enum.Severity.html\" title=\"enum collisions::Severity\">Severity</a>","synthetic":false,"types":["collisions::Severity"]}];
|
||||
implementors["game"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"game/common/waypoints/struct.WaypointID.html\" title=\"struct game::common::waypoints::WaypointID\">WaypointID</a>","synthetic":false,"types":["game::common::waypoints::WaypointID"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"enum\" href=\"game/devtools/polygon/enum.Obj.html\" title=\"enum game::devtools::polygon::Obj\">Obj</a>","synthetic":false,"types":["game::devtools::polygon::Obj"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"game/devtools/story/struct.MarkerID.html\" title=\"struct game::devtools::story::MarkerID\">MarkerID</a>","synthetic":false,"types":["game::devtools::story::MarkerID"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"enum\" href=\"game/layer/parking/enum.Loc.html\" title=\"enum game::layer::parking::Loc\">Loc</a>","synthetic":false,"types":["game::layer::parking::Loc"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"game/sandbox/gameplay/tutorial/struct.TutorialPointer.html\" title=\"struct game::sandbox::gameplay::tutorial::TutorialPointer\">TutorialPointer</a>","synthetic":false,"types":["game::sandbox::gameplay::tutorial::TutorialPointer"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"enum\" href=\"game/sandbox/gameplay/enum.GameplayMode.html\" title=\"enum game::sandbox::gameplay::GameplayMode\">GameplayMode</a>","synthetic":false,"types":["game::sandbox::gameplay::GameplayMode"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"enum\" href=\"game/ungap/trip/enum.ID.html\" title=\"enum game::ungap::trip::ID\">ID</a>","synthetic":false,"types":["game::ungap::trip::ID"]}];
|
||||
implementors["game"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"game/common/waypoints/struct.WaypointID.html\" title=\"struct game::common::waypoints::WaypointID\">WaypointID</a>","synthetic":false,"types":["game::common::waypoints::WaypointID"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"game/debug/blockfinder/struct.Obj.html\" title=\"struct game::debug::blockfinder::Obj\">Obj</a>","synthetic":false,"types":["game::debug::blockfinder::Obj"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"enum\" href=\"game/devtools/polygon/enum.Obj.html\" title=\"enum game::devtools::polygon::Obj\">Obj</a>","synthetic":false,"types":["game::devtools::polygon::Obj"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"game/devtools/story/struct.MarkerID.html\" title=\"struct game::devtools::story::MarkerID\">MarkerID</a>","synthetic":false,"types":["game::devtools::story::MarkerID"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"enum\" href=\"game/layer/parking/enum.Loc.html\" title=\"enum game::layer::parking::Loc\">Loc</a>","synthetic":false,"types":["game::layer::parking::Loc"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"game/sandbox/gameplay/tutorial/struct.TutorialPointer.html\" title=\"struct game::sandbox::gameplay::tutorial::TutorialPointer\">TutorialPointer</a>","synthetic":false,"types":["game::sandbox::gameplay::tutorial::TutorialPointer"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"enum\" href=\"game/sandbox/gameplay/enum.GameplayMode.html\" title=\"enum game::sandbox::gameplay::GameplayMode\">GameplayMode</a>","synthetic":false,"types":["game::sandbox::gameplay::GameplayMode"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"enum\" href=\"game/ungap/trip/enum.ID.html\" title=\"enum game::ungap::trip::ID\">ID</a>","synthetic":false,"types":["game::ungap::trip::ID"]}];
|
||||
implementors["geom"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"geom/distance/struct.Distance.html\" title=\"struct geom::distance::Distance\">Distance</a>","synthetic":false,"types":["geom::distance::Distance"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"geom/duration/struct.Duration.html\" title=\"struct geom::duration::Duration\">Duration</a>","synthetic":false,"types":["geom::duration::Duration"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"geom/gps/struct.LonLat.html\" title=\"struct geom::gps::LonLat\">LonLat</a>","synthetic":false,"types":["geom::gps::LonLat"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"geom/pt/struct.HashablePt2D.html\" title=\"struct geom::pt::HashablePt2D\">HashablePt2D</a>","synthetic":false,"types":["geom::pt::HashablePt2D"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"geom/speed/struct.Speed.html\" title=\"struct geom::speed::Speed\">Speed</a>","synthetic":false,"types":["geom::speed::Speed"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"enum\" href=\"geom/stats/enum.Statistic.html\" title=\"enum geom::stats::Statistic\">Statistic</a>","synthetic":false,"types":["geom::stats::Statistic"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"struct\" href=\"geom/time/struct.Time.html\" title=\"struct geom::time::Time\">Time</a>","synthetic":false,"types":["geom::time::Time"]}];
|
||||
implementors["map_editor"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"enum\" href=\"map_editor/model/enum.ID.html\" title=\"enum map_editor::model::ID\">ID</a>","synthetic":false,"types":["map_editor::model::ID"]}];
|
||||
implementors["map_gui"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> for <a class=\"enum\" href=\"map_gui/enum.ID.html\" title=\"enum map_gui::ID\">ID</a>","synthetic":false,"types":["map_gui::ID"]}];
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["game"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"game/common/waypoints/struct.WaypointID.html\" title=\"struct game::common::waypoints::WaypointID\">WaypointID</a>","synthetic":false,"types":["game::common::waypoints::WaypointID"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"game/devtools/polygon/enum.Obj.html\" title=\"enum game::devtools::polygon::Obj\">Obj</a>","synthetic":false,"types":["game::devtools::polygon::Obj"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"game/devtools/story/struct.MarkerID.html\" title=\"struct game::devtools::story::MarkerID\">MarkerID</a>","synthetic":false,"types":["game::devtools::story::MarkerID"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"game/ungap/trip/enum.ID.html\" title=\"enum game::ungap::trip::ID\">ID</a>","synthetic":false,"types":["game::ungap::trip::ID"]}];
|
||||
implementors["game"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"game/common/waypoints/struct.WaypointID.html\" title=\"struct game::common::waypoints::WaypointID\">WaypointID</a>","synthetic":false,"types":["game::common::waypoints::WaypointID"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"game/debug/blockfinder/struct.Obj.html\" title=\"struct game::debug::blockfinder::Obj\">Obj</a>","synthetic":false,"types":["game::debug::blockfinder::Obj"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"game/devtools/polygon/enum.Obj.html\" title=\"enum game::devtools::polygon::Obj\">Obj</a>","synthetic":false,"types":["game::devtools::polygon::Obj"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"game/devtools/story/struct.MarkerID.html\" title=\"struct game::devtools::story::MarkerID\">MarkerID</a>","synthetic":false,"types":["game::devtools::story::MarkerID"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"game/ungap/trip/enum.ID.html\" title=\"enum game::ungap::trip::ID\">ID</a>","synthetic":false,"types":["game::ungap::trip::ID"]}];
|
||||
implementors["geom"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"geom/pt/struct.HashablePt2D.html\" title=\"struct geom::pt::HashablePt2D\">HashablePt2D</a>","synthetic":false,"types":["geom::pt::HashablePt2D"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"geom/time/struct.Time.html\" title=\"struct geom::time::Time\">Time</a>","synthetic":false,"types":["geom::time::Time"]}];
|
||||
implementors["map_editor"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"map_editor/model/enum.ID.html\" title=\"enum map_editor::model::ID\">ID</a>","synthetic":false,"types":["map_editor::model::ID"]}];
|
||||
implementors["map_gui"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"map_gui/enum.ID.html\" title=\"enum map_gui::ID\">ID</a>","synthetic":false,"types":["map_gui::ID"]}];
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["abstio"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"abstio/abst_paths/struct.CityName.html\" title=\"struct abstio::abst_paths::CityName\">CityName</a>","synthetic":false,"types":["abstio::abst_paths::CityName"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"abstio/abst_paths/struct.MapName.html\" title=\"struct abstio::abst_paths::MapName\">MapName</a>","synthetic":false,"types":["abstio::abst_paths::MapName"]}];
|
||||
implementors["collisions"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"collisions/enum.Severity.html\" title=\"enum collisions::Severity\">Severity</a>","synthetic":false,"types":["collisions::Severity"]}];
|
||||
implementors["game"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"game/common/waypoints/struct.WaypointID.html\" title=\"struct game::common::waypoints::WaypointID\">WaypointID</a>","synthetic":false,"types":["game::common::waypoints::WaypointID"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"game/devtools/polygon/enum.Obj.html\" title=\"enum game::devtools::polygon::Obj\">Obj</a>","synthetic":false,"types":["game::devtools::polygon::Obj"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"game/devtools/story/struct.MarkerID.html\" title=\"struct game::devtools::story::MarkerID\">MarkerID</a>","synthetic":false,"types":["game::devtools::story::MarkerID"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"game/layer/parking/enum.Loc.html\" title=\"enum game::layer::parking::Loc\">Loc</a>","synthetic":false,"types":["game::layer::parking::Loc"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"game/sandbox/gameplay/tutorial/struct.TutorialPointer.html\" title=\"struct game::sandbox::gameplay::tutorial::TutorialPointer\">TutorialPointer</a>","synthetic":false,"types":["game::sandbox::gameplay::tutorial::TutorialPointer"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"game/sandbox/gameplay/enum.GameplayMode.html\" title=\"enum game::sandbox::gameplay::GameplayMode\">GameplayMode</a>","synthetic":false,"types":["game::sandbox::gameplay::GameplayMode"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"game/ungap/trip/enum.ID.html\" title=\"enum game::ungap::trip::ID\">ID</a>","synthetic":false,"types":["game::ungap::trip::ID"]}];
|
||||
implementors["game"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"game/common/waypoints/struct.WaypointID.html\" title=\"struct game::common::waypoints::WaypointID\">WaypointID</a>","synthetic":false,"types":["game::common::waypoints::WaypointID"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"game/debug/blockfinder/struct.Obj.html\" title=\"struct game::debug::blockfinder::Obj\">Obj</a>","synthetic":false,"types":["game::debug::blockfinder::Obj"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"game/devtools/polygon/enum.Obj.html\" title=\"enum game::devtools::polygon::Obj\">Obj</a>","synthetic":false,"types":["game::devtools::polygon::Obj"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"game/devtools/story/struct.MarkerID.html\" title=\"struct game::devtools::story::MarkerID\">MarkerID</a>","synthetic":false,"types":["game::devtools::story::MarkerID"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"game/layer/parking/enum.Loc.html\" title=\"enum game::layer::parking::Loc\">Loc</a>","synthetic":false,"types":["game::layer::parking::Loc"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"game/sandbox/gameplay/tutorial/struct.TutorialPointer.html\" title=\"struct game::sandbox::gameplay::tutorial::TutorialPointer\">TutorialPointer</a>","synthetic":false,"types":["game::sandbox::gameplay::tutorial::TutorialPointer"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"game/sandbox/gameplay/enum.GameplayMode.html\" title=\"enum game::sandbox::gameplay::GameplayMode\">GameplayMode</a>","synthetic":false,"types":["game::sandbox::gameplay::GameplayMode"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"game/ungap/trip/enum.ID.html\" title=\"enum game::ungap::trip::ID\">ID</a>","synthetic":false,"types":["game::ungap::trip::ID"]}];
|
||||
implementors["geom"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"geom/gps/struct.LonLat.html\" title=\"struct geom::gps::LonLat\">LonLat</a>","synthetic":false,"types":["geom::gps::LonLat"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"geom/pt/struct.HashablePt2D.html\" title=\"struct geom::pt::HashablePt2D\">HashablePt2D</a>","synthetic":false,"types":["geom::pt::HashablePt2D"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"geom/stats/enum.Statistic.html\" title=\"enum geom::stats::Statistic\">Statistic</a>","synthetic":false,"types":["geom::stats::Statistic"]}];
|
||||
implementors["map_editor"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"map_editor/model/enum.ID.html\" title=\"enum map_editor::model::ID\">ID</a>","synthetic":false,"types":["map_editor::model::ID"]}];
|
||||
implementors["map_gui"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.56.0/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"map_gui/enum.ID.html\" title=\"enum map_gui::ID\">ID</a>","synthetic":false,"types":["map_gui::ID"]}];
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["game"] = [{"text":"impl ObjectID for <a class=\"struct\" href=\"game/common/waypoints/struct.WaypointID.html\" title=\"struct game::common::waypoints::WaypointID\">WaypointID</a>","synthetic":false,"types":["game::common::waypoints::WaypointID"]},{"text":"impl ObjectID for <a class=\"enum\" href=\"game/devtools/polygon/enum.Obj.html\" title=\"enum game::devtools::polygon::Obj\">Obj</a>","synthetic":false,"types":["game::devtools::polygon::Obj"]},{"text":"impl ObjectID for <a class=\"struct\" href=\"game/devtools/story/struct.MarkerID.html\" title=\"struct game::devtools::story::MarkerID\">MarkerID</a>","synthetic":false,"types":["game::devtools::story::MarkerID"]},{"text":"impl ObjectID for <a class=\"enum\" href=\"game/ungap/trip/enum.ID.html\" title=\"enum game::ungap::trip::ID\">ID</a>","synthetic":false,"types":["game::ungap::trip::ID"]}];
|
||||
implementors["game"] = [{"text":"impl ObjectID for <a class=\"struct\" href=\"game/common/waypoints/struct.WaypointID.html\" title=\"struct game::common::waypoints::WaypointID\">WaypointID</a>","synthetic":false,"types":["game::common::waypoints::WaypointID"]},{"text":"impl ObjectID for <a class=\"struct\" href=\"game/debug/blockfinder/struct.Obj.html\" title=\"struct game::debug::blockfinder::Obj\">Obj</a>","synthetic":false,"types":["game::debug::blockfinder::Obj"]},{"text":"impl ObjectID for <a class=\"enum\" href=\"game/devtools/polygon/enum.Obj.html\" title=\"enum game::devtools::polygon::Obj\">Obj</a>","synthetic":false,"types":["game::devtools::polygon::Obj"]},{"text":"impl ObjectID for <a class=\"struct\" href=\"game/devtools/story/struct.MarkerID.html\" title=\"struct game::devtools::story::MarkerID\">MarkerID</a>","synthetic":false,"types":["game::devtools::story::MarkerID"]},{"text":"impl ObjectID for <a class=\"enum\" href=\"game/ungap/trip/enum.ID.html\" title=\"enum game::ungap::trip::ID\">ID</a>","synthetic":false,"types":["game::ungap::trip::ID"]}];
|
||||
implementors["widgetry"] = [];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
File diff suppressed because one or more lines are too long
@ -67,15 +67,15 @@ here to keep each crosswalk separate.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.ParkingLot.html" title="map_model::ParkingLot struct">ParkingLot</a></div><div class="item-right docblock-short"><p>Parking lots have some fixed capacity for cars, and are connected to a sidewalk and road.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.ParkingLotID.html" title="map_model::ParkingLotID struct">ParkingLotID</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.Path.html" title="map_model::Path struct">Path</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.PathRequest.html" title="map_model::PathRequest struct">PathRequest</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.PathV2.html" title="map_model::PathV2 struct">PathV2</a></div><div class="item-right docblock-short"><p>A path between two endpoints for a particular mode. This representation is immutable and doesn’t
|
||||
prescribe specific lanes and turns to follow.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.Perimeter.html" title="map_model::Perimeter struct">Perimeter</a></div><div class="item-right docblock-short"><p>A sequence of roads in order, beginning and ending at the same place. No “crossings” – tracing
|
||||
along this sequence should geometrically yield a simple polygon.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.PermanentMapEdits.html" title="map_model::PermanentMapEdits struct">PermanentMapEdits</a></div><div class="item-right docblock-short"><p>MapEdits are converted to this before serializing. Referencing things like LaneID in a Map won’t
|
||||
work if the basemap is rebuilt from new OSM data, so instead we use stabler OSM IDs that’re less
|
||||
likely to change.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.Position.html" title="map_model::Position struct">Position</a></div><div class="item-right docblock-short"><p>Represents a specific point some distance along a lane.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.RawToMapOptions.html" title="map_model::RawToMapOptions struct">RawToMapOptions</a></div><div class="item-right docblock-short"><p>Options for converting RawMaps to Maps.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.Road.html" title="map_model::Road struct">Road</a></div><div class="item-right docblock-short"><p>A Road represents a segment between exactly two Intersections. It contains Lanes as children.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.RoadID.html" title="map_model::RoadID struct">RoadID</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.RoadLoop.html" title="map_model::RoadLoop struct">RoadLoop</a></div><div class="item-right docblock-short"><p>A sequence of roads in order, beginning and ending at the same place. No “crossings” – tracing
|
||||
along this sequence should geometrically yield a simple polygon.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.RoadSideID.html" title="map_model::RoadSideID struct">RoadSideID</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.RoadWithStopSign.html" title="map_model::RoadWithStopSign struct">RoadWithStopSign</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.RoutingParams.html" title="map_model::RoutingParams struct">RoutingParams</a></div><div class="item-right docblock-short"><p>Tuneable parameters for all types of routing.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.RoadID.html" title="map_model::RoadID struct">RoadID</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.RoadSideID.html" title="map_model::RoadSideID struct">RoadSideID</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.RoadWithStopSign.html" title="map_model::RoadWithStopSign struct">RoadWithStopSign</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.RoutingParams.html" title="map_model::RoutingParams struct">RoutingParams</a></div><div class="item-right docblock-short"><p>Tuneable parameters for all types of routing.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.Stage.html" title="map_model::Stage struct">Stage</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.Turn.html" title="map_model::Turn struct">Turn</a></div><div class="item-right docblock-short"><p>A Turn leads from the end of one Lane to the start of another. (Except for pedestrians;
|
||||
sidewalks are bidirectional.)</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.TurnID.html" title="map_model::TurnID struct">TurnID</a></div><div class="item-right docblock-short"><p>Turns are uniquely identified by their (src, dst) lanes and their parent intersection.
|
||||
|
@ -1,9 +1,9 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `block` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, block"><title>map_model::objects::block - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module block</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><div id="sidebar-vars" data-name="block" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">objects</a>::<wbr><a class="mod" href="#">block</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/objects/block.rs.html#1-154" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `block` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, block"><title>map_model::objects::block - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module block</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><div id="sidebar-vars" data-name="block" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">objects</a>::<wbr><a class="mod" href="#">block</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/objects/block.rs.html#1-314" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.Block.html" title="map_model::objects::block::Block struct">Block</a></div><div class="item-right docblock-short"><p>A block is defined by a perimeter that traces along the sides of roads. Inside the perimeter,
|
||||
the block may contain buildings and interior roads. In the simple case, a block represents a
|
||||
single “city block”, with no interior roads. It may also cover a “neighborhood”, where the
|
||||
perimeter contains some “major” and the interior consists only of “minor” roads.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.RoadLoop.html" title="map_model::objects::block::RoadLoop struct">RoadLoop</a></div><div class="item-right docblock-short"><p>A sequence of roads in order, beginning and ending at the same place. No “crossings” – tracing
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.Perimeter.html" title="map_model::objects::block::Perimeter struct">Perimeter</a></div><div class="item-right docblock-short"><p>A sequence of roads in order, beginning and ending at the same place. No “crossings” – tracing
|
||||
along this sequence should geometrically yield a simple polygon.</p>
|
||||
</div></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="map_model" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
<script src="../../../main.js"></script>
|
||||
|
@ -1 +1 @@
|
||||
initSidebarItems({"struct":[["Block","A block is defined by a perimeter that traces along the sides of roads. Inside the perimeter, the block may contain buildings and interior roads. In the simple case, a block represents a single “city block”, with no interior roads. It may also cover a “neighborhood”, where the perimeter contains some “major” and the interior consists only of “minor” roads."],["RoadLoop","A sequence of roads in order, beginning and ending at the same place. No “crossings” – tracing along this sequence should geometrically yield a simple polygon."]]});
|
||||
initSidebarItems({"struct":[["Block","A block is defined by a perimeter that traces along the sides of roads. Inside the perimeter, the block may contain buildings and interior roads. In the simple case, a block represents a single “city block”, with no interior roads. It may also cover a “neighborhood”, where the perimeter contains some “major” and the interior consists only of “minor” roads."],["Perimeter","A sequence of roads in order, beginning and ending at the same place. No “crossings” – tracing along this sequence should geometrically yield a simple polygon."]]});
|
File diff suppressed because one or more lines are too long
33
rustdoc/map_model/objects/block/struct.Perimeter.html
Normal file
33
rustdoc/map_model/objects/block/struct.Perimeter.html
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
33
rustdoc/map_model/struct.Perimeter.html
Normal file
33
rustdoc/map_model/struct.Perimeter.html
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -161,102 +161,249 @@
|
||||
<span id="161">161</span>
|
||||
<span id="162">162</span>
|
||||
<span id="163">163</span>
|
||||
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">geom::Distance</span>;
|
||||
<span class="kw">use</span> <span class="ident">map_gui::tools::PopupMsg</span>;
|
||||
<span class="kw">use</span> <span class="ident">map_gui::ID</span>;
|
||||
<span class="kw">use</span> <span class="ident">map_model::Block</span>;
|
||||
<span id="164">164</span>
|
||||
<span id="165">165</span>
|
||||
<span id="166">166</span>
|
||||
<span id="167">167</span>
|
||||
<span id="168">168</span>
|
||||
<span id="169">169</span>
|
||||
<span id="170">170</span>
|
||||
<span id="171">171</span>
|
||||
<span id="172">172</span>
|
||||
<span id="173">173</span>
|
||||
<span id="174">174</span>
|
||||
<span id="175">175</span>
|
||||
<span id="176">176</span>
|
||||
<span id="177">177</span>
|
||||
<span id="178">178</span>
|
||||
<span id="179">179</span>
|
||||
<span id="180">180</span>
|
||||
<span id="181">181</span>
|
||||
<span id="182">182</span>
|
||||
<span id="183">183</span>
|
||||
<span id="184">184</span>
|
||||
<span id="185">185</span>
|
||||
<span id="186">186</span>
|
||||
<span id="187">187</span>
|
||||
<span id="188">188</span>
|
||||
<span id="189">189</span>
|
||||
<span id="190">190</span>
|
||||
<span id="191">191</span>
|
||||
<span id="192">192</span>
|
||||
<span id="193">193</span>
|
||||
<span id="194">194</span>
|
||||
<span id="195">195</span>
|
||||
<span id="196">196</span>
|
||||
<span id="197">197</span>
|
||||
<span id="198">198</span>
|
||||
<span id="199">199</span>
|
||||
<span id="200">200</span>
|
||||
<span id="201">201</span>
|
||||
<span id="202">202</span>
|
||||
<span id="203">203</span>
|
||||
<span id="204">204</span>
|
||||
<span id="205">205</span>
|
||||
<span id="206">206</span>
|
||||
<span id="207">207</span>
|
||||
<span id="208">208</span>
|
||||
<span id="209">209</span>
|
||||
<span id="210">210</span>
|
||||
<span id="211">211</span>
|
||||
<span id="212">212</span>
|
||||
<span id="213">213</span>
|
||||
<span id="214">214</span>
|
||||
<span id="215">215</span>
|
||||
<span id="216">216</span>
|
||||
<span id="217">217</span>
|
||||
<span id="218">218</span>
|
||||
<span id="219">219</span>
|
||||
<span id="220">220</span>
|
||||
<span id="221">221</span>
|
||||
<span id="222">222</span>
|
||||
<span id="223">223</span>
|
||||
<span id="224">224</span>
|
||||
<span id="225">225</span>
|
||||
<span id="226">226</span>
|
||||
<span id="227">227</span>
|
||||
<span id="228">228</span>
|
||||
<span id="229">229</span>
|
||||
<span id="230">230</span>
|
||||
<span id="231">231</span>
|
||||
<span id="232">232</span>
|
||||
<span id="233">233</span>
|
||||
<span id="234">234</span>
|
||||
<span id="235">235</span>
|
||||
<span id="236">236</span>
|
||||
<span id="237">237</span>
|
||||
<span id="238">238</span>
|
||||
<span id="239">239</span>
|
||||
<span id="240">240</span>
|
||||
<span id="241">241</span>
|
||||
<span id="242">242</span>
|
||||
<span id="243">243</span>
|
||||
<span id="244">244</span>
|
||||
<span id="245">245</span>
|
||||
<span id="246">246</span>
|
||||
<span id="247">247</span>
|
||||
<span id="248">248</span>
|
||||
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::collections</span>::{<span class="ident">HashMap</span>, <span class="ident">HashSet</span>};
|
||||
|
||||
<span class="kw">use</span> <span class="ident">geom::Distance</span>;
|
||||
<span class="kw">use</span> <span class="ident">map_model::osm::RoadRank</span>;
|
||||
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">Block</span>, <span class="ident">PathConstraints</span>, <span class="ident">Perimeter</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry::mapspace</span>::{<span class="ident">ObjectID</span>, <span class="ident">World</span>, <span class="ident">WorldOutcome</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
||||
<span class="ident">Color</span>, <span class="ident">Drawable</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>, <span class="ident">HorizontalAlignment</span>, <span class="ident">Line</span>, <span class="ident">Panel</span>, <span class="ident">SimpleState</span>,
|
||||
<span class="ident">State</span>, <span class="ident">TextExt</span>, <span class="ident">Toggle</span>, <span class="ident">VerticalAlignment</span>, <span class="ident">Widget</span>,
|
||||
<span class="ident">Color</span>, <span class="ident">EventCtx</span>, <span class="ident">GfxCtx</span>, <span class="ident">HorizontalAlignment</span>, <span class="ident">Key</span>, <span class="ident">Line</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">SimpleState</span>, <span class="ident">State</span>,
|
||||
<span class="ident">TextExt</span>, <span class="ident">VerticalAlignment</span>, <span class="ident">Widget</span>,
|
||||
};
|
||||
|
||||
<span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::app</span>::{<span class="ident">App</span>, <span class="ident">Transition</span>};
|
||||
<span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::debug::polygons</span>;
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Blockfinder</span> {
|
||||
<span class="ident">draw_all_blocks</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">Drawable</span><span class="op">></span>,
|
||||
<span class="ident">panel</span>: <span class="ident">Panel</span>,
|
||||
<span class="ident">id_counter</span>: <span class="ident">usize</span>,
|
||||
<span class="ident">blocks</span>: <span class="ident">HashMap</span><span class="op"><</span><span class="ident">Obj</span>, <span class="ident">Block</span><span class="op">></span>,
|
||||
<span class="ident">world</span>: <span class="ident">World</span><span class="op"><</span><span class="ident">Obj</span><span class="op">></span>,
|
||||
<span class="ident">to_merge</span>: <span class="ident">HashSet</span><span class="op"><</span><span class="ident">Obj</span><span class="op">></span>,
|
||||
}
|
||||
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Clone</span>, <span class="ident">Copy</span>, <span class="ident">Debug</span>, <span class="ident">PartialEq</span>, <span class="ident">Eq</span>, <span class="ident">Hash</span>)]</span>
|
||||
<span class="kw">struct</span> <span class="ident">Obj</span>(<span class="ident">usize</span>);
|
||||
<span class="kw">impl</span> <span class="ident">ObjectID</span> <span class="kw">for</span> <span class="ident">Obj</span> {}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">Blockfinder</span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">new_state</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Box</span><span class="op"><</span><span class="kw">dyn</span> <span class="ident">State</span><span class="op"><</span><span class="ident">App</span><span class="op">></span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="ident">panel</span> <span class="op">=</span> <span class="ident">Panel::new_builder</span>(<span class="ident">Widget::col</span>(<span class="macro">vec!</span>[
|
||||
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
|
||||
<span class="ident">Line</span>(<span class="string">"Blockfinder"</span>).<span class="ident">small_heading</span>().<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">ctx</span>.<span class="ident">style</span>().<span class="ident">btn_close_widget</span>(<span class="ident">ctx</span>),
|
||||
]),
|
||||
<span class="ident">Toggle::checkbox</span>(<span class="ident">ctx</span>, <span class="string">"Draw all blocks"</span>, <span class="prelude-val">None</span>, <span class="bool-val">false</span>),
|
||||
<span class="string">"Click a lane to find one block"</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>),
|
||||
]))
|
||||
.<span class="ident">aligned</span>(<span class="ident">HorizontalAlignment::Center</span>, <span class="ident">VerticalAlignment::Top</span>)
|
||||
.<span class="ident">build</span>(<span class="ident">ctx</span>);
|
||||
<span class="op"><</span><span class="kw">dyn</span> <span class="ident">SimpleState</span><span class="op"><</span><span class="kw">_</span><span class="op">></span><span class="op">></span><span class="ident">::new_state</span>(
|
||||
<span class="ident">panel</span>,
|
||||
<span class="ident">Box::new</span>(<span class="ident">Blockfinder</span> {
|
||||
<span class="ident">draw_all_blocks</span>: <span class="prelude-val">None</span>,
|
||||
}),
|
||||
)
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">new_state</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Box</span><span class="op"><</span><span class="kw">dyn</span> <span class="ident">State</span><span class="op"><</span><span class="ident">App</span><span class="op">></span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">state</span> <span class="op">=</span> <span class="ident">Blockfinder</span> {
|
||||
<span class="ident">panel</span>: <span class="ident">make_panel</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">id_counter</span>: <span class="number">0</span>,
|
||||
<span class="ident">blocks</span>: <span class="ident">HashMap::new</span>(),
|
||||
<span class="ident">world</span>: <span class="ident">World::bounded</span>(<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_bounds</span>()),
|
||||
<span class="ident">to_merge</span>: <span class="ident">HashSet::new</span>(),
|
||||
};
|
||||
|
||||
<span class="ident">ctx</span>.<span class="ident">loading_screen</span>(<span class="string">"calculate all blocks"</span>, <span class="op">|</span><span class="ident">ctx</span>, <span class="kw">_</span><span class="op">|</span> {
|
||||
<span class="kw">for</span> <span class="ident">block</span> <span class="kw">in</span> <span class="ident">Block::find_all_single_blocks</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>) {
|
||||
<span class="kw">let</span> <span class="ident">id</span> <span class="op">=</span> <span class="ident">state</span>.<span class="ident">new_id</span>();
|
||||
<span class="ident">state</span>.<span class="ident">add_block</span>(<span class="ident">ctx</span>, <span class="ident">id</span>, <span class="prelude-val">None</span>, <span class="ident">block</span>);
|
||||
}
|
||||
});
|
||||
<span class="ident">state</span>.<span class="ident">world</span>.<span class="ident">initialize_hover</span>(<span class="ident">ctx</span>);
|
||||
<span class="ident">Box::new</span>(<span class="ident">state</span>)
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">new_id</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Obj</span> {
|
||||
<span class="kw">let</span> <span class="ident">id</span> <span class="op">=</span> <span class="ident">Obj</span>(<span class="self">self</span>.<span class="ident">id_counter</span>);
|
||||
<span class="self">self</span>.<span class="ident">id_counter</span> <span class="op">+</span><span class="op">=</span> <span class="number">1</span>;
|
||||
<span class="ident">id</span>
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">add_block</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">id</span>: <span class="ident">Obj</span>, <span class="ident">color</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">Color</span><span class="op">></span>, <span class="ident">block</span>: <span class="ident">Block</span>) {
|
||||
<span class="kw">let</span> <span class="ident">color</span> <span class="op">=</span> <span class="ident">color</span>.<span class="ident">unwrap_or</span>(<span class="ident">Color::RED</span>);
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">obj</span> <span class="op">=</span> <span class="self">self</span>
|
||||
.<span class="ident">world</span>
|
||||
.<span class="ident">add</span>(<span class="ident">id</span>)
|
||||
.<span class="ident">hitbox</span>(<span class="ident">block</span>.<span class="ident">polygon</span>.<span class="ident">clone</span>())
|
||||
.<span class="ident">draw_color</span>(<span class="ident">color</span>.<span class="ident">alpha</span>(<span class="number">0.5</span>))
|
||||
.<span class="ident">hover_outline</span>(<span class="ident">Color::BLACK</span>, <span class="ident">Distance::meters</span>(<span class="number">5.0</span>))
|
||||
.<span class="ident">clickable</span>();
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">to_merge</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="ident">id</span>) {
|
||||
<span class="ident">obj</span> <span class="op">=</span> <span class="ident">obj</span>.<span class="ident">hotkey</span>(<span class="ident">Key::Space</span>, <span class="string">"remove from merge set"</span>)
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">obj</span> <span class="op">=</span> <span class="ident">obj</span>.<span class="ident">hotkey</span>(<span class="ident">Key::Space</span>, <span class="string">"add to merge set"</span>)
|
||||
}
|
||||
<span class="ident">obj</span>.<span class="ident">build</span>(<span class="ident">ctx</span>);
|
||||
<span class="self">self</span>.<span class="ident">blocks</span>.<span class="ident">insert</span>(<span class="ident">id</span>, <span class="ident">block</span>);
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">SimpleState</span><span class="op"><</span><span class="ident">App</span><span class="op">></span> <span class="kw">for</span> <span class="ident">Blockfinder</span> {
|
||||
<span class="kw">fn</span> <span class="ident">on_click</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="kw">_</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="kw">_</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">App</span>, <span class="ident">x</span>: <span class="kw-2">&</span><span class="ident">str</span>, <span class="kw">_</span>: <span class="kw-2">&</span><span class="ident">Panel</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Transition</span> {
|
||||
<span class="kw">match</span> <span class="ident">x</span> {
|
||||
<span class="string">"close"</span> <span class="op">=</span><span class="op">></span> <span class="ident">Transition::Pop</span>,
|
||||
<span class="kw">impl</span> <span class="ident">State</span><span class="op"><</span><span class="ident">App</span><span class="op">></span> <span class="kw">for</span> <span class="ident">Blockfinder</span> {
|
||||
<span class="kw">fn</span> <span class="ident">event</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">App</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Transition</span> {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="ident">Outcome::Clicked</span>(<span class="ident">x</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">event</span>(<span class="ident">ctx</span>) {
|
||||
<span class="kw">match</span> <span class="ident">x</span>.<span class="ident">as_ref</span>() {
|
||||
<span class="string">"close"</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">return</span> <span class="ident">Transition::Pop</span>;
|
||||
}
|
||||
<span class="string">"Merge"</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="comment">// TODO We could update the panel, but meh</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">blocks</span> <span class="op">=</span> <span class="ident">Vec::new</span>();
|
||||
<span class="kw">for</span> <span class="ident">id</span> <span class="kw">in</span> <span class="self">self</span>.<span class="ident">to_merge</span>.<span class="ident">drain</span>() {
|
||||
<span class="ident">blocks</span>.<span class="ident">push</span>(<span class="self">self</span>.<span class="ident">blocks</span>.<span class="ident">remove</span>(<span class="kw-2">&</span><span class="ident">id</span>).<span class="ident">unwrap</span>());
|
||||
<span class="comment">// TODO If we happen to be hovering on one, uh oh! It's going to change</span>
|
||||
<span class="comment">// ID...</span>
|
||||
<span class="self">self</span>.<span class="ident">world</span>.<span class="ident">delete</span>(<span class="ident">id</span>);
|
||||
}
|
||||
<span class="kw">for</span> <span class="ident">block</span> <span class="kw">in</span> <span class="ident">Block::merge_all</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>, <span class="ident">blocks</span>) {
|
||||
<span class="kw">let</span> <span class="ident">id</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">new_id</span>();
|
||||
<span class="self">self</span>.<span class="ident">add_block</span>(<span class="ident">ctx</span>, <span class="ident">id</span>, <span class="prelude-val">None</span>, <span class="ident">block</span>);
|
||||
}
|
||||
<span class="kw">return</span> <span class="ident">Transition::Keep</span>;
|
||||
}
|
||||
<span class="string">"Auto-merge all neighborhoods"</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="ident">perimeters</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">Perimeter</span><span class="op">></span> <span class="op">=</span>
|
||||
<span class="self">self</span>.<span class="ident">blocks</span>.<span class="ident">drain</span>().<span class="ident">map</span>(<span class="op">|</span>(<span class="kw">_</span>, <span class="ident">b</span>)<span class="op">|</span> <span class="ident">b</span>.<span class="ident">perimeter</span>).<span class="ident">collect</span>();
|
||||
<span class="kw">let</span> <span class="ident">map</span> <span class="op">=</span> <span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>;
|
||||
<span class="kw">let</span> <span class="ident">partitions</span> <span class="op">=</span> <span class="ident">Perimeter::partition_by_predicate</span>(<span class="ident">perimeters</span>, <span class="op">|</span><span class="ident">r</span><span class="op">|</span> {
|
||||
<span class="comment">// "Interior" roads of a neighborhood aren't classified as arterial and are</span>
|
||||
<span class="comment">// driveable (so existing bike-only connections induce a split)</span>
|
||||
<span class="kw">let</span> <span class="ident">road</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_r</span>(<span class="ident">r</span>);
|
||||
<span class="ident">road</span>.<span class="ident">get_rank</span>() <span class="op">=</span><span class="op">=</span> <span class="ident">RoadRank::Local</span>
|
||||
<span class="op">&&</span> <span class="ident">road</span>
|
||||
.<span class="ident">lanes</span>
|
||||
.<span class="ident">iter</span>()
|
||||
.<span class="ident">any</span>(<span class="op">|</span><span class="ident">l</span><span class="op">|</span> <span class="ident">PathConstraints::Car</span>.<span class="ident">can_use</span>(<span class="ident">l</span>, <span class="ident">map</span>))
|
||||
});
|
||||
|
||||
<span class="comment">// Reset pretty much all of our state</span>
|
||||
<span class="self">self</span>.<span class="ident">id_counter</span> <span class="op">=</span> <span class="number">0</span>;
|
||||
<span class="self">self</span>.<span class="ident">world</span> <span class="op">=</span> <span class="ident">World::bounded</span>(<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_bounds</span>());
|
||||
<span class="self">self</span>.<span class="ident">to_merge</span>.<span class="ident">clear</span>();
|
||||
|
||||
<span class="comment">// Until we can actually do the merge, just color the partition to show results</span>
|
||||
<span class="kw">for</span> (<span class="ident">color_idx</span>, <span class="ident">perimeters</span>) <span class="kw">in</span> <span class="ident">partitions</span>.<span class="ident">into_iter</span>().<span class="ident">enumerate</span>() {
|
||||
<span class="kw">let</span> <span class="ident">color</span> <span class="op">=</span>
|
||||
[<span class="ident">Color::RED</span>, <span class="ident">Color::YELLOW</span>, <span class="ident">Color::GREEN</span>, <span class="ident">Color::PURPLE</span>][<span class="ident">color_idx</span> <span class="op">%</span> <span class="number">4</span>];
|
||||
<span class="kw">for</span> <span class="ident">perimeter</span> <span class="kw">in</span> <span class="ident">perimeters</span> {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">block</span>) <span class="op">=</span> <span class="ident">perimeter</span>.<span class="ident">to_block</span>(<span class="ident">map</span>) {
|
||||
<span class="kw">let</span> <span class="ident">id</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">new_id</span>();
|
||||
<span class="self">self</span>.<span class="ident">add_block</span>(<span class="ident">ctx</span>, <span class="ident">id</span>, <span class="prelude-val">Some</span>(<span class="ident">color</span>), <span class="ident">block</span>);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> <span class="macro">unreachable!</span>(),
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">panel_changed</span>(
|
||||
<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>,
|
||||
<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>,
|
||||
<span class="ident">app</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">App</span>,
|
||||
<span class="kw">_</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">Panel</span>,
|
||||
) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">Transition</span><span class="op">></span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">draw_all_blocks</span>.<span class="ident">is_some</span>() {
|
||||
<span class="self">self</span>.<span class="ident">draw_all_blocks</span> <span class="op">=</span> <span class="prelude-val">None</span>;
|
||||
} <span class="kw">else</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">batch</span> <span class="op">=</span> <span class="ident">GeomBatch::new</span>();
|
||||
<span class="kw">for</span> <span class="ident">block</span> <span class="kw">in</span> <span class="ident">Block::find_all_single_blocks</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>) {
|
||||
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">Color::RED</span>.<span class="ident">alpha</span>(<span class="number">0.5</span>), <span class="ident">block</span>.<span class="ident">polygon</span>.<span class="ident">clone</span>());
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">outline</span>) <span class="op">=</span> <span class="ident">block</span>.<span class="ident">polygon</span>.<span class="ident">to_outline</span>(<span class="ident">Distance::meters</span>(<span class="number">3.0</span>)) {
|
||||
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">Color::BLACK</span>, <span class="ident">outline</span>);
|
||||
<span class="kw">match</span> <span class="self">self</span>.<span class="ident">world</span>.<span class="ident">event</span>(<span class="ident">ctx</span>) {
|
||||
<span class="ident">WorldOutcome::Keypress</span>(<span class="string">"add to merge set"</span>, <span class="ident">id</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="self">self</span>.<span class="ident">to_merge</span>.<span class="ident">insert</span>(<span class="ident">id</span>);
|
||||
<span class="kw">let</span> <span class="ident">block</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">blocks</span>.<span class="ident">remove</span>(<span class="kw-2">&</span><span class="ident">id</span>).<span class="ident">unwrap</span>();
|
||||
<span class="self">self</span>.<span class="ident">world</span>.<span class="ident">delete_before_replacement</span>(<span class="ident">id</span>);
|
||||
<span class="self">self</span>.<span class="ident">add_block</span>(<span class="ident">ctx</span>, <span class="ident">id</span>, <span class="prelude-val">Some</span>(<span class="ident">Color::CYAN</span>), <span class="ident">block</span>);
|
||||
}
|
||||
<span class="ident">WorldOutcome::Keypress</span>(<span class="string">"remove from merge set"</span>, <span class="ident">id</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="self">self</span>.<span class="ident">to_merge</span>.<span class="ident">remove</span>(<span class="kw-2">&</span><span class="ident">id</span>);
|
||||
<span class="kw">let</span> <span class="ident">block</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">blocks</span>.<span class="ident">remove</span>(<span class="kw-2">&</span><span class="ident">id</span>).<span class="ident">unwrap</span>();
|
||||
<span class="self">self</span>.<span class="ident">world</span>.<span class="ident">delete_before_replacement</span>(<span class="ident">id</span>);
|
||||
<span class="self">self</span>.<span class="ident">add_block</span>(<span class="ident">ctx</span>, <span class="ident">id</span>, <span class="prelude-val">None</span>, <span class="ident">block</span>);
|
||||
}
|
||||
<span class="self">self</span>.<span class="ident">draw_all_blocks</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">batch</span>.<span class="ident">upload</span>(<span class="ident">ctx</span>));
|
||||
<span class="ident">WorldOutcome::ClickedObject</span>(<span class="ident">id</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">return</span> <span class="ident">Transition::Push</span>(<span class="ident">OneBlock::new_state</span>(<span class="ident">ctx</span>, <span class="self">self</span>.<span class="ident">blocks</span>[<span class="kw-2">&</span><span class="ident">id</span>].<span class="ident">clone</span>()));
|
||||
}
|
||||
<span class="prelude-val">None</span>
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> {}
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">on_mouseover</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">App</span>) {
|
||||
<span class="ident">app</span>.<span class="ident">recalculate_current_selection</span>(<span class="ident">ctx</span>);
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">other_event</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">App</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Transition</span> {
|
||||
<span class="ident">ctx</span>.<span class="ident">canvas_movement</span>();
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">ID::Lane</span>(<span class="ident">l</span>)) <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">current_selection</span> {
|
||||
<span class="kw">if</span> <span class="ident">app</span>.<span class="ident">per_obj</span>.<span class="ident">left_click</span>(<span class="ident">ctx</span>, <span class="string">"trace this block"</span>) {
|
||||
<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">current_selection</span> <span class="op">=</span> <span class="prelude-val">None</span>;
|
||||
<span class="kw">return</span> <span class="ident">Transition::Push</span>(<span class="kw">match</span> <span class="ident">Block::single_block</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>, <span class="ident">l</span>) {
|
||||
<span class="prelude-val">Ok</span>(<span class="ident">block</span>) <span class="op">=</span><span class="op">></span> <span class="ident">OneBlock::new_state</span>(<span class="ident">ctx</span>, <span class="ident">block</span>),
|
||||
<span class="prelude-val">Err</span>(<span class="ident">err</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="comment">// Rendering the error message is breaking</span>
|
||||
<span class="macro">error!</span>(<span class="string">"Blockfinding failed: {}"</span>, <span class="ident">err</span>);
|
||||
<span class="ident">PopupMsg::new_state</span>(<span class="ident">ctx</span>, <span class="string">"Error"</span>, <span class="macro">vec!</span>[<span class="string">"See console"</span>])
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
<span class="ident">Transition::Keep</span>
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">draw</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">g</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">GfxCtx</span>, <span class="kw">_</span>: <span class="kw-2">&</span><span class="ident">App</span>) {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="kw-2">ref</span> <span class="ident">draw</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">draw_all_blocks</span> {
|
||||
<span class="ident">g</span>.<span class="ident">redraw</span>(<span class="ident">draw</span>);
|
||||
}
|
||||
<span class="self">self</span>.<span class="ident">world</span>.<span class="ident">draw</span>(<span class="ident">g</span>);
|
||||
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">draw</span>(<span class="ident">g</span>);
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">struct</span> <span class="ident">OneBlock</span> {
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">OneBlock</span> {
|
||||
<span class="ident">block</span>: <span class="ident">Block</span>,
|
||||
}
|
||||
|
||||
@ -324,6 +471,29 @@
|
||||
<span class="ident">g</span>.<span class="ident">draw_polygon</span>(<span class="ident">Color::RED</span>.<span class="ident">alpha</span>(<span class="number">0.8</span>), <span class="self">self</span>.<span class="ident">block</span>.<span class="ident">polygon</span>.<span class="ident">clone</span>());
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">make_panel</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Panel</span> {
|
||||
<span class="ident">Panel::new_builder</span>(<span class="ident">Widget::col</span>(<span class="macro">vec!</span>[
|
||||
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
|
||||
<span class="ident">Line</span>(<span class="string">"Blockfinder"</span>).<span class="ident">small_heading</span>().<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">ctx</span>.<span class="ident">style</span>().<span class="ident">btn_close_widget</span>(<span class="ident">ctx</span>),
|
||||
]),
|
||||
<span class="string">"Click a block to examine."</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>),
|
||||
<span class="string">"Press space to mark/unmark for merging"</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">ctx</span>.<span class="ident">style</span>()
|
||||
.<span class="ident">btn_outline</span>
|
||||
.<span class="ident">text</span>(<span class="string">"Merge"</span>)
|
||||
.<span class="ident">hotkey</span>(<span class="ident">Key::M</span>)
|
||||
.<span class="ident">build_def</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">ctx</span>.<span class="ident">style</span>()
|
||||
.<span class="ident">btn_outline</span>
|
||||
.<span class="ident">text</span>(<span class="string">"Auto-merge all neighborhoods"</span>)
|
||||
.<span class="ident">hotkey</span>(<span class="ident">Key::N</span>)
|
||||
.<span class="ident">build_def</span>(<span class="ident">ctx</span>),
|
||||
]))
|
||||
.<span class="ident">aligned</span>(<span class="ident">HorizontalAlignment::Left</span>, <span class="ident">VerticalAlignment::Top</span>)
|
||||
.<span class="ident">build</span>(<span class="ident">ctx</span>)
|
||||
}
|
||||
</code></pre></div>
|
||||
</section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="game" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
<script src="../../../main.js"></script><script src="../../../source-script.js"></script><script src="../../../source-files.js"></script>
|
||||
|
@ -1082,6 +1082,19 @@
|
||||
<span id="1082">1082</span>
|
||||
<span id="1083">1083</span>
|
||||
<span id="1084">1084</span>
|
||||
<span id="1085">1085</span>
|
||||
<span id="1086">1086</span>
|
||||
<span id="1087">1087</span>
|
||||
<span id="1088">1088</span>
|
||||
<span id="1089">1089</span>
|
||||
<span id="1090">1090</span>
|
||||
<span id="1091">1091</span>
|
||||
<span id="1092">1092</span>
|
||||
<span id="1093">1093</span>
|
||||
<span id="1094">1094</span>
|
||||
<span id="1095">1095</span>
|
||||
<span id="1096">1096</span>
|
||||
<span id="1097">1097</span>
|
||||
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::collections::HashSet</span>;
|
||||
|
||||
<span class="kw">use</span> <span class="ident">abstio::MapName</span>;
|
||||
@ -1094,7 +1107,7 @@
|
||||
<span class="kw">use</span> <span class="ident">map_gui::tools</span>::{<span class="ident">ChooseSomething</span>, <span class="ident">PopupMsg</span>, <span class="ident">PromptInput</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::{<span class="ident">AppLike</span>, <span class="ident">ID</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_model</span>::{
|
||||
<span class="ident">osm</span>, <span class="ident">ControlTrafficSignal</span>, <span class="ident">IntersectionID</span>, <span class="ident">PathConstraints</span>, <span class="ident">Position</span>, <span class="ident">RoadID</span>,
|
||||
<span class="ident">osm</span>, <span class="ident">Block</span>, <span class="ident">ControlTrafficSignal</span>, <span class="ident">IntersectionID</span>, <span class="ident">PathConstraints</span>, <span class="ident">Position</span>, <span class="ident">RoadID</span>,
|
||||
<span class="ident">NORMAL_LANE_THICKNESS</span>,
|
||||
};
|
||||
<span class="kw">use</span> <span class="ident">sim</span>::{<span class="ident">Sim</span>, <span class="ident">TripEndpoint</span>};
|
||||
@ -1441,7 +1454,8 @@
|
||||
<span class="kw">return</span> <span class="ident">Transition::Push</span>(<span class="ident">blocked_by::Viewer::new_state</span>(<span class="ident">ctx</span>, <span class="ident">app</span>));
|
||||
}
|
||||
<span class="string">"blockfinder"</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">return</span> <span class="ident">Transition::Push</span>(<span class="ident">blockfinder::Blockfinder::new_state</span>(<span class="ident">ctx</span>));
|
||||
<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">current_selection</span> <span class="op">=</span> <span class="prelude-val">None</span>;
|
||||
<span class="kw">return</span> <span class="ident">Transition::Push</span>(<span class="ident">blockfinder::Blockfinder::new_state</span>(<span class="ident">ctx</span>, <span class="ident">app</span>));
|
||||
}
|
||||
<span class="string">"render to GeoJSON"</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="comment">// TODO Loading screen doesn't actually display anything because of the rules</span>
|
||||
@ -1694,6 +1708,7 @@
|
||||
<span class="ident">actions</span>.<span class="ident">push</span>((<span class="ident">Key::F2</span>, <span class="string">"debug lane triangles geometry"</span>.<span class="ident">to_string</span>()));
|
||||
<span class="ident">actions</span>.<span class="ident">push</span>((<span class="ident">Key::C</span>, <span class="string">"export roads"</span>.<span class="ident">to_string</span>()));
|
||||
<span class="ident">actions</span>.<span class="ident">push</span>((<span class="ident">Key::E</span>, <span class="string">"show equiv_pos"</span>.<span class="ident">to_string</span>()));
|
||||
<span class="ident">actions</span>.<span class="ident">push</span>((<span class="ident">Key::B</span>, <span class="string">"trace this block"</span>.<span class="ident">to_string</span>()));
|
||||
<span class="kw">if</span> <span class="macro">cfg!</span>(<span class="ident">not</span>(<span class="ident">target_arch</span> <span class="op">=</span> <span class="string">"wasm32"</span>)) {
|
||||
<span class="ident">actions</span>.<span class="ident">push</span>((<span class="ident">Key::M</span>, <span class="string">"merge short segment"</span>.<span class="ident">to_string</span>()));
|
||||
}
|
||||
@ -1870,6 +1885,17 @@
|
||||
}
|
||||
}))
|
||||
}
|
||||
(<span class="ident">ID::Lane</span>(<span class="ident">l</span>), <span class="string">"trace this block"</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">current_selection</span> <span class="op">=</span> <span class="prelude-val">None</span>;
|
||||
<span class="kw">return</span> <span class="ident">Transition::Push</span>(<span class="kw">match</span> <span class="ident">Block::single_block</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>, <span class="ident">l</span>) {
|
||||
<span class="prelude-val">Ok</span>(<span class="ident">block</span>) <span class="op">=</span><span class="op">></span> <span class="ident">blockfinder::OneBlock::new_state</span>(<span class="ident">ctx</span>, <span class="ident">block</span>),
|
||||
<span class="prelude-val">Err</span>(<span class="ident">err</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="comment">// Rendering the error message is breaking</span>
|
||||
<span class="macro">error!</span>(<span class="string">"Blockfinding failed: {}"</span>, <span class="ident">err</span>);
|
||||
<span class="ident">PopupMsg::new_state</span>(<span class="ident">ctx</span>, <span class="string">"Error"</span>, <span class="macro">vec!</span>[<span class="string">"See console"</span>])
|
||||
}
|
||||
});
|
||||
}
|
||||
<span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">not</span>(<span class="ident">target_arch</span> <span class="op">=</span> <span class="string">"wasm32"</span>))]</span>
|
||||
(<span class="ident">ID::Lane</span>(<span class="ident">l</span>), <span class="string">"merge short segment"</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">timer</span> <span class="op">=</span> <span class="ident">Timer::throwaway</span>();
|
||||
|
@ -174,7 +174,7 @@
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"rustdoc 1.56.0 (09c42c458 2021-10-18)"</span>;
|
||||
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#"The build time in RFC2822, UTC."#</span>]</span>
|
||||
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"Wed, 27 Oct 2021 20:29:35 +0000"</span>;
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"Thu, 28 Oct 2021 17:21:04 +0000"</span>;
|
||||
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#"The target architecture, given by `CARGO_CFG_TARGET_ARCH`."#</span>]</span>
|
||||
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"x86_64"</span>;
|
||||
|
@ -163,7 +163,7 @@
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::make::RawToMapOptions</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::map</span>::{<span class="ident">DrivingSide</span>, <span class="ident">MapConfig</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::objects::area</span>::{<span class="ident">Area</span>, <span class="ident">AreaID</span>, <span class="ident">AreaType</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::objects::block</span>::{<span class="ident">Block</span>, <span class="ident">RoadLoop</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::objects::block</span>::{<span class="ident">Block</span>, <span class="ident">Perimeter</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::objects::building</span>::{
|
||||
<span class="ident">Amenity</span>, <span class="ident">AmenityType</span>, <span class="ident">Building</span>, <span class="ident">BuildingID</span>, <span class="ident">BuildingType</span>, <span class="ident">NamePerLanguage</span>, <span class="ident">OffstreetParking</span>,
|
||||
};
|
||||
|
@ -152,22 +152,183 @@
|
||||
<span id="152">152</span>
|
||||
<span id="153">153</span>
|
||||
<span id="154">154</span>
|
||||
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::collections::HashSet</span>;
|
||||
<span id="155">155</span>
|
||||
<span id="156">156</span>
|
||||
<span id="157">157</span>
|
||||
<span id="158">158</span>
|
||||
<span id="159">159</span>
|
||||
<span id="160">160</span>
|
||||
<span id="161">161</span>
|
||||
<span id="162">162</span>
|
||||
<span id="163">163</span>
|
||||
<span id="164">164</span>
|
||||
<span id="165">165</span>
|
||||
<span id="166">166</span>
|
||||
<span id="167">167</span>
|
||||
<span id="168">168</span>
|
||||
<span id="169">169</span>
|
||||
<span id="170">170</span>
|
||||
<span id="171">171</span>
|
||||
<span id="172">172</span>
|
||||
<span id="173">173</span>
|
||||
<span id="174">174</span>
|
||||
<span id="175">175</span>
|
||||
<span id="176">176</span>
|
||||
<span id="177">177</span>
|
||||
<span id="178">178</span>
|
||||
<span id="179">179</span>
|
||||
<span id="180">180</span>
|
||||
<span id="181">181</span>
|
||||
<span id="182">182</span>
|
||||
<span id="183">183</span>
|
||||
<span id="184">184</span>
|
||||
<span id="185">185</span>
|
||||
<span id="186">186</span>
|
||||
<span id="187">187</span>
|
||||
<span id="188">188</span>
|
||||
<span id="189">189</span>
|
||||
<span id="190">190</span>
|
||||
<span id="191">191</span>
|
||||
<span id="192">192</span>
|
||||
<span id="193">193</span>
|
||||
<span id="194">194</span>
|
||||
<span id="195">195</span>
|
||||
<span id="196">196</span>
|
||||
<span id="197">197</span>
|
||||
<span id="198">198</span>
|
||||
<span id="199">199</span>
|
||||
<span id="200">200</span>
|
||||
<span id="201">201</span>
|
||||
<span id="202">202</span>
|
||||
<span id="203">203</span>
|
||||
<span id="204">204</span>
|
||||
<span id="205">205</span>
|
||||
<span id="206">206</span>
|
||||
<span id="207">207</span>
|
||||
<span id="208">208</span>
|
||||
<span id="209">209</span>
|
||||
<span id="210">210</span>
|
||||
<span id="211">211</span>
|
||||
<span id="212">212</span>
|
||||
<span id="213">213</span>
|
||||
<span id="214">214</span>
|
||||
<span id="215">215</span>
|
||||
<span id="216">216</span>
|
||||
<span id="217">217</span>
|
||||
<span id="218">218</span>
|
||||
<span id="219">219</span>
|
||||
<span id="220">220</span>
|
||||
<span id="221">221</span>
|
||||
<span id="222">222</span>
|
||||
<span id="223">223</span>
|
||||
<span id="224">224</span>
|
||||
<span id="225">225</span>
|
||||
<span id="226">226</span>
|
||||
<span id="227">227</span>
|
||||
<span id="228">228</span>
|
||||
<span id="229">229</span>
|
||||
<span id="230">230</span>
|
||||
<span id="231">231</span>
|
||||
<span id="232">232</span>
|
||||
<span id="233">233</span>
|
||||
<span id="234">234</span>
|
||||
<span id="235">235</span>
|
||||
<span id="236">236</span>
|
||||
<span id="237">237</span>
|
||||
<span id="238">238</span>
|
||||
<span id="239">239</span>
|
||||
<span id="240">240</span>
|
||||
<span id="241">241</span>
|
||||
<span id="242">242</span>
|
||||
<span id="243">243</span>
|
||||
<span id="244">244</span>
|
||||
<span id="245">245</span>
|
||||
<span id="246">246</span>
|
||||
<span id="247">247</span>
|
||||
<span id="248">248</span>
|
||||
<span id="249">249</span>
|
||||
<span id="250">250</span>
|
||||
<span id="251">251</span>
|
||||
<span id="252">252</span>
|
||||
<span id="253">253</span>
|
||||
<span id="254">254</span>
|
||||
<span id="255">255</span>
|
||||
<span id="256">256</span>
|
||||
<span id="257">257</span>
|
||||
<span id="258">258</span>
|
||||
<span id="259">259</span>
|
||||
<span id="260">260</span>
|
||||
<span id="261">261</span>
|
||||
<span id="262">262</span>
|
||||
<span id="263">263</span>
|
||||
<span id="264">264</span>
|
||||
<span id="265">265</span>
|
||||
<span id="266">266</span>
|
||||
<span id="267">267</span>
|
||||
<span id="268">268</span>
|
||||
<span id="269">269</span>
|
||||
<span id="270">270</span>
|
||||
<span id="271">271</span>
|
||||
<span id="272">272</span>
|
||||
<span id="273">273</span>
|
||||
<span id="274">274</span>
|
||||
<span id="275">275</span>
|
||||
<span id="276">276</span>
|
||||
<span id="277">277</span>
|
||||
<span id="278">278</span>
|
||||
<span id="279">279</span>
|
||||
<span id="280">280</span>
|
||||
<span id="281">281</span>
|
||||
<span id="282">282</span>
|
||||
<span id="283">283</span>
|
||||
<span id="284">284</span>
|
||||
<span id="285">285</span>
|
||||
<span id="286">286</span>
|
||||
<span id="287">287</span>
|
||||
<span id="288">288</span>
|
||||
<span id="289">289</span>
|
||||
<span id="290">290</span>
|
||||
<span id="291">291</span>
|
||||
<span id="292">292</span>
|
||||
<span id="293">293</span>
|
||||
<span id="294">294</span>
|
||||
<span id="295">295</span>
|
||||
<span id="296">296</span>
|
||||
<span id="297">297</span>
|
||||
<span id="298">298</span>
|
||||
<span id="299">299</span>
|
||||
<span id="300">300</span>
|
||||
<span id="301">301</span>
|
||||
<span id="302">302</span>
|
||||
<span id="303">303</span>
|
||||
<span id="304">304</span>
|
||||
<span id="305">305</span>
|
||||
<span id="306">306</span>
|
||||
<span id="307">307</span>
|
||||
<span id="308">308</span>
|
||||
<span id="309">309</span>
|
||||
<span id="310">310</span>
|
||||
<span id="311">311</span>
|
||||
<span id="312">312</span>
|
||||
<span id="313">313</span>
|
||||
<span id="314">314</span>
|
||||
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::collections</span>::{<span class="ident">HashMap</span>, <span class="ident">HashSet</span>};
|
||||
|
||||
<span class="kw">use</span> <span class="ident">anyhow::Result</span>;
|
||||
|
||||
<span class="kw">use</span> <span class="ident">abstutil::wraparound_get</span>;
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Polygon</span>, <span class="ident">Pt2D</span>, <span class="ident">Ring</span>};
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">LaneID</span>, <span class="ident">Map</span>, <span class="ident">RoadSideID</span>, <span class="ident">SideOfRoad</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">LaneID</span>, <span class="ident">Map</span>, <span class="ident">RoadID</span>, <span class="ident">RoadSideID</span>, <span class="ident">SideOfRoad</span>};
|
||||
|
||||
<span class="doccomment">/// A block is defined by a perimeter that traces along the sides of roads. Inside the perimeter,</span>
|
||||
<span class="doccomment">/// the block may contain buildings and interior roads. In the simple case, a block represents a</span>
|
||||
<span class="doccomment">/// single "city block", with no interior roads. It may also cover a "neighborhood", where the</span>
|
||||
<span class="doccomment">/// perimeter contains some "major" and the interior consists only of "minor" roads.</span>
|
||||
<span class="comment">// TODO Maybe "block" is a misleading term. "Contiguous road trace area"?</span>
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Clone</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Block</span> {
|
||||
<span class="kw">pub</span> <span class="ident">perimeter</span>: <span class="ident">RoadLoop</span>,
|
||||
<span class="kw">pub</span> <span class="ident">perimeter</span>: <span class="ident">Perimeter</span>,
|
||||
<span class="doccomment">/// The polygon covers the interior of the block.</span>
|
||||
<span class="kw">pub</span> <span class="ident">polygon</span>: <span class="ident">Polygon</span>,
|
||||
<span class="comment">// TODO Track interior buildings and roads</span>
|
||||
@ -175,14 +336,15 @@
|
||||
|
||||
<span class="doccomment">/// A sequence of roads in order, beginning and ending at the same place. No "crossings" -- tracing</span>
|
||||
<span class="doccomment">/// along this sequence should geometrically yield a simple polygon.</span>
|
||||
<span class="comment">// TODO Handle the map boundary. Sometimes this loop should be broken up by border intersections or</span>
|
||||
<span class="comment">// possibly by water/park areas.</span>
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">RoadLoop</span> {
|
||||
<span class="comment">// TODO Handle the map boundary. Sometimes this perimeter should be broken up by border</span>
|
||||
<span class="comment">// intersections or possibly by water/park areas.</span>
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Clone</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Perimeter</span> {
|
||||
<span class="kw">pub</span> <span class="ident">roads</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">RoadSideID</span><span class="op">></span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">RoadLoop</span> {
|
||||
<span class="kw">fn</span> <span class="ident">single_block</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>, <span class="ident">start</span>: <span class="ident">LaneID</span>) <span class="op">-</span><span class="op">></span> <span class="ident">RoadLoop</span> {
|
||||
<span class="kw">impl</span> <span class="ident">Perimeter</span> {
|
||||
<span class="kw">fn</span> <span class="ident">single_block</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>, <span class="ident">start</span>: <span class="ident">LaneID</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Perimeter</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">roads</span> <span class="op">=</span> <span class="ident">Vec::new</span>();
|
||||
<span class="kw">let</span> <span class="ident">start_road_side</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_l</span>(<span class="ident">start</span>).<span class="ident">get_nearest_side_of_road</span>(<span class="ident">map</span>);
|
||||
<span class="comment">// We need to track which side of the road we're at, but also which direction we're facing</span>
|
||||
@ -199,10 +361,10 @@
|
||||
<span class="comment">// at a dead-end, we want to avoid the other side of the same road.</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">next</span> <span class="op">=</span> <span class="kw-2">*</span><span class="ident">wraparound_get</span>(<span class="kw-2">&</span><span class="ident">sorted_roads</span>, <span class="ident">idx</span> <span class="op">+</span> <span class="number">1</span>);
|
||||
<span class="macro">assert_ne!</span>(<span class="ident">next</span>, <span class="ident">current_road_side</span>);
|
||||
<span class="kw">if</span> <span class="ident">next</span>.<span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="ident">current_road_side</span>.<span class="ident">id</span> {
|
||||
<span class="kw">if</span> <span class="ident">next</span>.<span class="ident">road</span> <span class="op">=</span><span class="op">=</span> <span class="ident">current_road_side</span>.<span class="ident">road</span> {
|
||||
<span class="ident">next</span> <span class="op">=</span> <span class="kw-2">*</span><span class="ident">wraparound_get</span>(<span class="kw-2">&</span><span class="ident">sorted_roads</span>, <span class="ident">idx</span> <span class="op">-</span> <span class="number">1</span>);
|
||||
<span class="macro">assert_ne!</span>(<span class="ident">next</span>, <span class="ident">current_road_side</span>);
|
||||
<span class="kw">if</span> <span class="ident">next</span>.<span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="ident">current_road_side</span>.<span class="ident">id</span> {
|
||||
<span class="kw">if</span> <span class="ident">next</span>.<span class="ident">road</span> <span class="op">=</span><span class="op">=</span> <span class="ident">current_road_side</span>.<span class="ident">road</span> {
|
||||
<span class="comment">// We must be at a dead-end</span>
|
||||
<span class="macro">assert_eq!</span>(<span class="number">2</span>, <span class="ident">sorted_roads</span>.<span class="ident">len</span>());
|
||||
}
|
||||
@ -210,7 +372,7 @@
|
||||
<span class="ident">roads</span>.<span class="ident">push</span>(<span class="ident">current_road_side</span>);
|
||||
<span class="ident">current_road_side</span> <span class="op">=</span> <span class="ident">next</span>;
|
||||
<span class="ident">current_intersection</span> <span class="op">=</span> <span class="ident">map</span>
|
||||
.<span class="ident">get_r</span>(<span class="ident">current_road_side</span>.<span class="ident">id</span>)
|
||||
.<span class="ident">get_r</span>(<span class="ident">current_road_side</span>.<span class="ident">road</span>)
|
||||
.<span class="ident">other_endpt</span>(<span class="ident">current_intersection</span>);
|
||||
|
||||
<span class="kw">if</span> <span class="ident">current_road_side</span> <span class="op">=</span><span class="op">=</span> <span class="ident">start_road_side</span> {
|
||||
@ -219,7 +381,125 @@
|
||||
}
|
||||
}
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">roads</span>[<span class="number">0</span>], <span class="kw-2">*</span><span class="ident">roads</span>.<span class="ident">last</span>().<span class="ident">unwrap</span>());
|
||||
<span class="ident">RoadLoop</span> { <span class="ident">roads</span> }
|
||||
<span class="ident">Perimeter</span> { <span class="ident">roads</span> }
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Merges two perimeters using a road in common. Mutates the current perimeter. Panics if they</span>
|
||||
<span class="doccomment">/// don't have that road in common. Doesn't handle blocks that have multiple roads in common.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">merge</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="kw-2">mut</span> <span class="ident">other</span>: <span class="ident">Perimeter</span>, <span class="ident">common_road</span>: <span class="ident">RoadID</span>) {
|
||||
<span class="comment">// TODO Alt algorithm would rotate until common is first or last...</span>
|
||||
<span class="kw">let</span> <span class="ident">idx1</span> <span class="op">=</span> <span class="self">self</span>
|
||||
.<span class="ident">roads</span>
|
||||
.<span class="ident">iter</span>()
|
||||
.<span class="ident">position</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">road</span> <span class="op">=</span><span class="op">=</span> <span class="ident">common_road</span>)
|
||||
.<span class="ident">unwrap_or_else</span>(<span class="op">|</span><span class="op">|</span> <span class="macro">panic!</span>(<span class="string">"First Perimeter doesn't have {}"</span>, <span class="ident">common_road</span>));
|
||||
<span class="kw">let</span> <span class="ident">idx2</span> <span class="op">=</span> <span class="ident">other</span>
|
||||
.<span class="ident">roads</span>
|
||||
.<span class="ident">iter</span>()
|
||||
.<span class="ident">position</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">road</span> <span class="op">=</span><span class="op">=</span> <span class="ident">common_road</span>)
|
||||
.<span class="ident">unwrap_or_else</span>(<span class="op">|</span><span class="op">|</span> <span class="macro">panic!</span>(<span class="string">"Second Perimeter doesn't have {}"</span>, <span class="ident">common_road</span>));
|
||||
|
||||
<span class="comment">// The first element is the common road, now an interior</span>
|
||||
<span class="kw">let</span> <span class="ident">last_pieces</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">roads</span>.<span class="ident">split_off</span>(<span class="ident">idx1</span>);
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">middle_pieces</span> <span class="op">=</span> <span class="ident">other</span>.<span class="ident">roads</span>.<span class="ident">split_off</span>(<span class="ident">idx2</span>);
|
||||
<span class="comment">// We repeat the first and last road, but we don't want that for the middle piece</span>
|
||||
<span class="ident">middle_pieces</span>.<span class="ident">pop</span>();
|
||||
|
||||
<span class="comment">// TODO just operate on self</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">roads</span> <span class="op">=</span> <span class="ident">std::mem::take</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>.<span class="ident">roads</span>);
|
||||
<span class="ident">roads</span>.<span class="ident">extend</span>(<span class="ident">middle_pieces</span>.<span class="ident">into_iter</span>().<span class="ident">skip</span>(<span class="number">1</span>));
|
||||
<span class="ident">roads</span>.<span class="ident">append</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">other</span>.<span class="ident">roads</span>);
|
||||
<span class="ident">roads</span>.<span class="ident">extend</span>(<span class="ident">last_pieces</span>.<span class="ident">into_iter</span>().<span class="ident">skip</span>(<span class="number">1</span>));
|
||||
|
||||
<span class="comment">// If the common_road is the first or last, we might wind up not matching here...</span>
|
||||
<span class="kw">if</span> <span class="ident">roads</span>[<span class="number">0</span>] <span class="op">!</span><span class="op">=</span> <span class="kw-2">*</span><span class="ident">roads</span>.<span class="ident">last</span>().<span class="ident">unwrap</span>() {
|
||||
<span class="ident">roads</span>.<span class="ident">push</span>(<span class="ident">roads</span>[<span class="number">0</span>]);
|
||||
}
|
||||
|
||||
<span class="self">self</span>.<span class="ident">roads</span> <span class="op">=</span> <span class="ident">roads</span>;
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Find an arbitrary road that two perimeters have in common.</span>
|
||||
<span class="kw">fn</span> <span class="ident">find_common_road</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">other</span>: <span class="kw-2">&</span><span class="ident">Perimeter</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">RoadID</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">roads</span> <span class="op">=</span> <span class="ident">HashSet::new</span>();
|
||||
<span class="kw">for</span> <span class="ident">id</span> <span class="kw">in</span> <span class="self">self</span>.<span class="ident">roads</span>.<span class="ident">iter</span>().<span class="ident">skip</span>(<span class="number">1</span>) {
|
||||
<span class="ident">roads</span>.<span class="ident">insert</span>(<span class="ident">id</span>.<span class="ident">road</span>);
|
||||
}
|
||||
<span class="kw">for</span> <span class="ident">id</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">other</span>.<span class="ident">roads</span> {
|
||||
<span class="kw">if</span> <span class="ident">roads</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="ident">id</span>.<span class="ident">road</span>) {
|
||||
<span class="kw">return</span> <span class="prelude-val">Some</span>(<span class="ident">id</span>.<span class="ident">road</span>);
|
||||
}
|
||||
}
|
||||
<span class="prelude-val">None</span>
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Consider the perimeters as a graph, with adjacency determined by sharing any road in common.</span>
|
||||
<span class="doccomment">/// Partition adjacent perimeters, subject to the predicate. Each partition should produce a</span>
|
||||
<span class="doccomment">/// single result with `merge_all`.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">partition_by_predicate</span><span class="op"><</span><span class="ident">F</span>: <span class="ident">Fn</span>(<span class="ident">RoadID</span>) <span class="op">-</span><span class="op">></span> <span class="ident">bool</span><span class="op">></span>(
|
||||
<span class="ident">input</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">Perimeter</span><span class="op">></span>,
|
||||
<span class="ident">predicate</span>: <span class="ident">F</span>,
|
||||
) <span class="op">-</span><span class="op">></span> <span class="ident">Vec</span><span class="op"><</span><span class="ident">Vec</span><span class="op"><</span><span class="ident">Perimeter</span><span class="op">></span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">road_to_perimeters</span>: <span class="ident">HashMap</span><span class="op"><</span><span class="ident">RoadID</span>, <span class="ident">Vec</span><span class="op"><</span><span class="ident">usize</span><span class="op">></span><span class="op">></span> <span class="op">=</span> <span class="ident">HashMap::new</span>();
|
||||
<span class="kw">for</span> (<span class="ident">idx</span>, <span class="ident">perimeter</span>) <span class="kw">in</span> <span class="ident">input</span>.<span class="ident">iter</span>().<span class="ident">enumerate</span>() {
|
||||
<span class="kw">for</span> <span class="ident">id</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">perimeter</span>.<span class="ident">roads</span> {
|
||||
<span class="ident">road_to_perimeters</span>
|
||||
.<span class="ident">entry</span>(<span class="ident">id</span>.<span class="ident">road</span>)
|
||||
.<span class="ident">or_insert_with</span>(<span class="ident">Vec::new</span>)
|
||||
.<span class="ident">push</span>(<span class="ident">idx</span>);
|
||||
}
|
||||
}
|
||||
|
||||
<span class="comment">// Start at one perimeter, floodfill to adjacent perimeters, subject to the predicate.</span>
|
||||
<span class="comment">// Returns the indices of everything in that component.</span>
|
||||
<span class="kw">let</span> <span class="ident">floodfill</span> <span class="op">=</span> <span class="op">|</span><span class="ident">start</span>: <span class="ident">usize</span><span class="op">|</span> <span class="op">-</span><span class="op">></span> <span class="ident">HashSet</span><span class="op"><</span><span class="ident">usize</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">visited</span> <span class="op">=</span> <span class="ident">HashSet::new</span>();
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">queue</span> <span class="op">=</span> <span class="macro">vec!</span>[<span class="ident">start</span>];
|
||||
<span class="kw">while</span> <span class="op">!</span><span class="ident">queue</span>.<span class="ident">is_empty</span>() {
|
||||
<span class="kw">let</span> <span class="ident">current</span> <span class="op">=</span> <span class="ident">queue</span>.<span class="ident">pop</span>().<span class="ident">unwrap</span>();
|
||||
<span class="kw">if</span> <span class="ident">visited</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="ident">current</span>) {
|
||||
<span class="kw">continue</span>;
|
||||
}
|
||||
<span class="ident">visited</span>.<span class="ident">insert</span>(<span class="ident">current</span>);
|
||||
<span class="kw">for</span> <span class="ident">id</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">input</span>[<span class="ident">current</span>].<span class="ident">roads</span> {
|
||||
<span class="kw">if</span> <span class="ident">predicate</span>(<span class="ident">id</span>.<span class="ident">road</span>) {
|
||||
<span class="ident">queue</span>.<span class="ident">extend</span>(<span class="ident">road_to_perimeters</span>[<span class="kw-2">&</span><span class="ident">id</span>.<span class="ident">road</span>].<span class="ident">clone</span>());
|
||||
}
|
||||
}
|
||||
}
|
||||
<span class="ident">visited</span>
|
||||
};
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">partitions</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">HashSet</span><span class="op"><</span><span class="ident">usize</span><span class="op">></span><span class="op">></span> <span class="op">=</span> <span class="ident">Vec::new</span>();
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">finished</span>: <span class="ident">HashSet</span><span class="op"><</span><span class="ident">usize</span><span class="op">></span> <span class="op">=</span> <span class="ident">HashSet::new</span>();
|
||||
<span class="kw">for</span> <span class="ident">start</span> <span class="kw">in</span> <span class="number">0</span>..<span class="ident">input</span>.<span class="ident">len</span>() {
|
||||
<span class="kw">if</span> <span class="ident">finished</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="ident">start</span>) {
|
||||
<span class="kw">continue</span>;
|
||||
}
|
||||
<span class="kw">let</span> <span class="ident">partition</span> <span class="op">=</span> <span class="ident">floodfill</span>(<span class="ident">start</span>);
|
||||
<span class="ident">finished</span>.<span class="ident">extend</span>(<span class="ident">partition</span>.<span class="ident">clone</span>());
|
||||
<span class="ident">partitions</span>.<span class="ident">push</span>(<span class="ident">partition</span>);
|
||||
}
|
||||
|
||||
<span class="comment">// Map the indices back to the actual perimeters.</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">perimeters</span>: <span class="ident">Vec</span><span class="op"><</span><span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">Perimeter</span><span class="op">></span><span class="op">></span> <span class="op">=</span> <span class="ident">input</span>.<span class="ident">into_iter</span>().<span class="ident">map</span>(<span class="prelude-val">Some</span>).<span class="ident">collect</span>();
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">results</span> <span class="op">=</span> <span class="ident">Vec::new</span>();
|
||||
<span class="kw">for</span> <span class="ident">indices</span> <span class="kw">in</span> <span class="ident">partitions</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">partition</span> <span class="op">=</span> <span class="ident">Vec::new</span>();
|
||||
<span class="kw">for</span> <span class="ident">idx</span> <span class="kw">in</span> <span class="ident">indices</span> {
|
||||
<span class="ident">partition</span>.<span class="ident">push</span>(<span class="ident">perimeters</span>[<span class="ident">idx</span>].<span class="ident">take</span>().<span class="ident">unwrap</span>());
|
||||
}
|
||||
<span class="ident">results</span>.<span class="ident">push</span>(<span class="ident">partition</span>);
|
||||
}
|
||||
<span class="comment">// Sanity check</span>
|
||||
<span class="kw">for</span> <span class="ident">maybe_perimeter</span> <span class="kw">in</span> <span class="ident">perimeters</span> {
|
||||
<span class="macro">assert!</span>(<span class="ident">maybe_perimeter</span>.<span class="ident">is_none</span>());
|
||||
}
|
||||
<span class="ident">results</span>
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">to_block</span>(<span class="self">self</span>, <span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Result</span><span class="op"><</span><span class="ident">Block</span><span class="op">></span> {
|
||||
<span class="ident">Block::from_perimeter</span>(<span class="ident">map</span>, <span class="self">self</span>)
|
||||
}
|
||||
}
|
||||
|
||||
@ -228,9 +508,11 @@
|
||||
<span class="doccomment">/// block, with no interior roads. This will fail if a map boundary is reached. The results are</span>
|
||||
<span class="doccomment">/// unusual when crossing the entrance to a tunnel or bridge.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">single_block</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>, <span class="ident">start</span>: <span class="ident">LaneID</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Result</span><span class="op"><</span><span class="ident">Block</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="ident">perimeter</span> <span class="op">=</span> <span class="ident">RoadLoop::single_block</span>(<span class="ident">map</span>, <span class="ident">start</span>);
|
||||
<span class="ident">Block::from_perimeter</span>(<span class="ident">map</span>, <span class="ident">Perimeter::single_block</span>(<span class="ident">map</span>, <span class="ident">start</span>))
|
||||
}
|
||||
|
||||
<span class="comment">// Trace along the loop and build the polygon</span>
|
||||
<span class="kw">fn</span> <span class="ident">from_perimeter</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>, <span class="ident">perimeter</span>: <span class="ident">Perimeter</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Result</span><span class="op"><</span><span class="ident">Block</span><span class="op">></span> {
|
||||
<span class="comment">// Trace along the perimeter and build the polygon</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">pts</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">Pt2D</span><span class="op">></span> <span class="op">=</span> <span class="ident">Vec::new</span>();
|
||||
<span class="kw">for</span> <span class="ident">pair</span> <span class="kw">in</span> <span class="ident">perimeter</span>.<span class="ident">roads</span>.<span class="ident">windows</span>(<span class="number">2</span>) {
|
||||
<span class="kw">let</span> <span class="ident">lane1</span> <span class="op">=</span> <span class="ident">pair</span>[<span class="number">0</span>].<span class="ident">get_outermost_lane</span>(<span class="ident">map</span>);
|
||||
@ -245,7 +527,7 @@
|
||||
<span class="ident">SideOfRoad::Right</span> <span class="op">=</span><span class="op">></span> <span class="ident">lane1</span>.<span class="ident">lane_center_pts</span>.<span class="ident">must_shift_right</span>(<span class="ident">lane1</span>.<span class="ident">width</span> <span class="op">/</span> <span class="number">2.0</span>),
|
||||
<span class="ident">SideOfRoad::Left</span> <span class="op">=</span><span class="op">></span> <span class="ident">lane1</span>.<span class="ident">lane_center_pts</span>.<span class="ident">must_shift_left</span>(<span class="ident">lane1</span>.<span class="ident">width</span> <span class="op">/</span> <span class="number">2.0</span>),
|
||||
};
|
||||
<span class="kw">let</span> <span class="ident">keep_lane_orientation</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">pair</span>[<span class="number">0</span>].<span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="ident">pair</span>[<span class="number">1</span>].<span class="ident">id</span> {
|
||||
<span class="kw">let</span> <span class="ident">keep_lane_orientation</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">pair</span>[<span class="number">0</span>].<span class="ident">road</span> <span class="op">=</span><span class="op">=</span> <span class="ident">pair</span>[<span class="number">1</span>].<span class="ident">road</span> {
|
||||
<span class="comment">// We're doubling back at a dead-end. Always follow the orientation of the lane.</span>
|
||||
<span class="bool-val">true</span>
|
||||
} <span class="kw">else</span> {
|
||||
@ -305,6 +587,44 @@
|
||||
}
|
||||
<span class="ident">blocks</span>
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Try to merge all given blocks. If successful, only one block will be returned. Blocks are</span>
|
||||
<span class="doccomment">/// never "destroyed" -- if not merged, they'll appear in the results.</span>
|
||||
<span class="doccomment">/// TODO This may not handle all possible merges yet, the order is brittle...</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">merge_all</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>, <span class="ident">list</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">Block</span><span class="op">></span>) <span class="op">-</span><span class="op">></span> <span class="ident">Vec</span><span class="op"><</span><span class="ident">Block</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">results</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">Perimeter</span><span class="op">></span> <span class="op">=</span> <span class="ident">Vec::new</span>();
|
||||
<span class="kw">let</span> <span class="ident">input</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">Perimeter</span><span class="op">></span> <span class="op">=</span> <span class="ident">list</span>.<span class="ident">into_iter</span>().<span class="ident">map</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">perimeter</span>).<span class="ident">collect</span>();
|
||||
|
||||
<span class="comment">// To debug, return after any single change</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">debug</span> <span class="op">=</span> <span class="bool-val">false</span>;
|
||||
<span class="kw">for</span> <span class="ident">perimeter</span> <span class="kw">in</span> <span class="ident">input</span> {
|
||||
<span class="kw">if</span> <span class="ident">debug</span> {
|
||||
<span class="ident">results</span>.<span class="ident">push</span>(<span class="ident">perimeter</span>);
|
||||
<span class="kw">continue</span>;
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">partner</span> <span class="op">=</span> <span class="prelude-val">None</span>;
|
||||
<span class="kw">for</span> (<span class="ident">idx</span>, <span class="ident">adjacent</span>) <span class="kw">in</span> <span class="ident">results</span>.<span class="ident">iter</span>().<span class="ident">enumerate</span>() {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">r</span>) <span class="op">=</span> <span class="ident">perimeter</span>.<span class="ident">find_common_road</span>(<span class="ident">adjacent</span>) {
|
||||
<span class="ident">partner</span> <span class="op">=</span> <span class="prelude-val">Some</span>((<span class="ident">idx</span>, <span class="ident">r</span>));
|
||||
<span class="kw">break</span>;
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>((<span class="ident">idx</span>, <span class="ident">r</span>)) <span class="op">=</span> <span class="ident">partner</span> {
|
||||
<span class="ident">results</span>[<span class="ident">idx</span>].<span class="ident">merge</span>(<span class="ident">perimeter</span>, <span class="ident">r</span>);
|
||||
<span class="ident">debug</span> <span class="op">=</span> <span class="bool-val">true</span>;
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">results</span>.<span class="ident">push</span>(<span class="ident">perimeter</span>);
|
||||
}
|
||||
}
|
||||
<span class="comment">// TODO Fixpoint...</span>
|
||||
<span class="comment">// TODO Shouldn't be any new errors, right?</span>
|
||||
<span class="ident">results</span>
|
||||
.<span class="ident">into_iter</span>()
|
||||
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">Block::from_perimeter</span>(<span class="ident">map</span>, <span class="ident">x</span>).<span class="ident">unwrap</span>())
|
||||
.<span class="ident">collect</span>()
|
||||
}
|
||||
}
|
||||
</code></pre></div>
|
||||
</section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="map_model" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
|
@ -414,20 +414,20 @@
|
||||
<span class="kw">let</span> <span class="ident">r</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_r</span>(<span class="ident">r</span>);
|
||||
<span class="kw">if</span> <span class="ident">r</span>.<span class="ident">dst_i</span> <span class="op">=</span><span class="op">=</span> <span class="self">self</span>.<span class="ident">id</span> {
|
||||
<span class="ident">sides</span>.<span class="ident">push</span>(<span class="ident">RoadSideID</span> {
|
||||
<span class="ident">id</span>: <span class="ident">r</span>.<span class="ident">id</span>,
|
||||
<span class="ident">road</span>: <span class="ident">r</span>.<span class="ident">id</span>,
|
||||
<span class="ident">side</span>: <span class="ident">SideOfRoad::Right</span>,
|
||||
});
|
||||
<span class="ident">sides</span>.<span class="ident">push</span>(<span class="ident">RoadSideID</span> {
|
||||
<span class="ident">id</span>: <span class="ident">r</span>.<span class="ident">id</span>,
|
||||
<span class="ident">road</span>: <span class="ident">r</span>.<span class="ident">id</span>,
|
||||
<span class="ident">side</span>: <span class="ident">SideOfRoad::Left</span>,
|
||||
});
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">sides</span>.<span class="ident">push</span>(<span class="ident">RoadSideID</span> {
|
||||
<span class="ident">id</span>: <span class="ident">r</span>.<span class="ident">id</span>,
|
||||
<span class="ident">road</span>: <span class="ident">r</span>.<span class="ident">id</span>,
|
||||
<span class="ident">side</span>: <span class="ident">SideOfRoad::Left</span>,
|
||||
});
|
||||
<span class="ident">sides</span>.<span class="ident">push</span>(<span class="ident">RoadSideID</span> {
|
||||
<span class="ident">id</span>: <span class="ident">r</span>.<span class="ident">id</span>,
|
||||
<span class="ident">road</span>: <span class="ident">r</span>.<span class="ident">id</span>,
|
||||
<span class="ident">side</span>: <span class="ident">SideOfRoad::Right</span>,
|
||||
});
|
||||
}
|
||||
|
@ -958,7 +958,7 @@
|
||||
(<span class="ident">Direction::Back</span>, <span class="ident">DrivingSide::Left</span>) <span class="op">=</span><span class="op">></span> <span class="ident">SideOfRoad::Right</span>,
|
||||
};
|
||||
<span class="ident">RoadSideID</span> {
|
||||
<span class="ident">id</span>: <span class="self">self</span>.<span class="ident">id</span>.<span class="ident">road</span>,
|
||||
<span class="ident">road</span>: <span class="self">self</span>.<span class="ident">id</span>.<span class="ident">road</span>,
|
||||
<span class="ident">side</span>,
|
||||
}
|
||||
}
|
||||
|
@ -825,13 +825,13 @@
|
||||
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Clone</span>, <span class="ident">Copy</span>, <span class="ident">Debug</span>, <span class="ident">Eq</span>, <span class="ident">Hash</span>, <span class="ident">PartialEq</span>, <span class="ident">PartialOrd</span>, <span class="ident">Ord</span>, <span class="ident">Serialize</span>, <span class="ident">Deserialize</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">RoadSideID</span> {
|
||||
<span class="kw">pub</span> <span class="ident">id</span>: <span class="ident">RoadID</span>,
|
||||
<span class="kw">pub</span> <span class="ident">road</span>: <span class="ident">RoadID</span>,
|
||||
<span class="kw">pub</span> <span class="ident">side</span>: <span class="ident">SideOfRoad</span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">RoadSideID</span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">get_outermost_lane</span>(<span class="self">self</span>, <span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>) <span class="op">-</span><span class="op">></span> <span class="kw-2">&</span><span class="ident">Lane</span> {
|
||||
<span class="kw">let</span> <span class="ident">r</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_r</span>(<span class="self">self</span>.<span class="ident">id</span>);
|
||||
<span class="kw">let</span> <span class="ident">r</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_r</span>(<span class="self">self</span>.<span class="ident">road</span>);
|
||||
<span class="kw">match</span> <span class="self">self</span>.<span class="ident">side</span> {
|
||||
<span class="ident">SideOfRoad::Right</span> <span class="op">=</span><span class="op">></span> <span class="ident">r</span>.<span class="ident">lanes</span>.<span class="ident">last</span>().<span class="ident">unwrap</span>(),
|
||||
<span class="ident">SideOfRoad::Left</span> <span class="op">=</span><span class="op">></span> <span class="kw-2">&</span><span class="ident">r</span>.<span class="ident">lanes</span>[<span class="number">0</span>],
|
||||
|
@ -7,88 +7,104 @@
|
||||
<span id="7"> 7</span>
|
||||
<span id="8"> 8</span>
|
||||
<span id="9"> 9</span>
|
||||
<span id="10">10</span>
|
||||
<span id="11">11</span>
|
||||
<span id="12">12</span>
|
||||
<span id="13">13</span>
|
||||
<span id="14">14</span>
|
||||
<span id="15">15</span>
|
||||
<span id="16">16</span>
|
||||
<span id="17">17</span>
|
||||
<span id="18">18</span>
|
||||
<span id="19">19</span>
|
||||
<span id="20">20</span>
|
||||
<span id="21">21</span>
|
||||
<span id="22">22</span>
|
||||
<span id="23">23</span>
|
||||
<span id="24">24</span>
|
||||
<span id="25">25</span>
|
||||
<span id="26">26</span>
|
||||
<span id="27">27</span>
|
||||
<span id="28">28</span>
|
||||
<span id="29">29</span>
|
||||
<span id="30">30</span>
|
||||
<span id="31">31</span>
|
||||
<span id="32">32</span>
|
||||
<span id="33">33</span>
|
||||
<span id="34">34</span>
|
||||
<span id="35">35</span>
|
||||
<span id="36">36</span>
|
||||
<span id="37">37</span>
|
||||
<span id="38">38</span>
|
||||
<span id="39">39</span>
|
||||
<span id="40">40</span>
|
||||
<span id="41">41</span>
|
||||
<span id="42">42</span>
|
||||
<span id="43">43</span>
|
||||
<span id="44">44</span>
|
||||
<span id="45">45</span>
|
||||
<span id="46">46</span>
|
||||
<span id="47">47</span>
|
||||
<span id="48">48</span>
|
||||
<span id="49">49</span>
|
||||
<span id="50">50</span>
|
||||
<span id="51">51</span>
|
||||
<span id="52">52</span>
|
||||
<span id="53">53</span>
|
||||
<span id="54">54</span>
|
||||
<span id="55">55</span>
|
||||
<span id="56">56</span>
|
||||
<span id="57">57</span>
|
||||
<span id="58">58</span>
|
||||
<span id="59">59</span>
|
||||
<span id="60">60</span>
|
||||
<span id="61">61</span>
|
||||
<span id="62">62</span>
|
||||
<span id="63">63</span>
|
||||
<span id="64">64</span>
|
||||
<span id="65">65</span>
|
||||
<span id="66">66</span>
|
||||
<span id="67">67</span>
|
||||
<span id="68">68</span>
|
||||
<span id="69">69</span>
|
||||
<span id="70">70</span>
|
||||
<span id="71">71</span>
|
||||
<span id="72">72</span>
|
||||
<span id="73">73</span>
|
||||
<span id="74">74</span>
|
||||
<span id="75">75</span>
|
||||
<span id="76">76</span>
|
||||
<span id="77">77</span>
|
||||
<span id="78">78</span>
|
||||
<span id="79">79</span>
|
||||
<span id="80">80</span>
|
||||
<span id="81">81</span>
|
||||
<span id="82">82</span>
|
||||
<span id="83">83</span>
|
||||
<span id="84">84</span>
|
||||
<span id="85">85</span>
|
||||
<span id="86">86</span>
|
||||
<span id="87">87</span>
|
||||
<span id="10"> 10</span>
|
||||
<span id="11"> 11</span>
|
||||
<span id="12"> 12</span>
|
||||
<span id="13"> 13</span>
|
||||
<span id="14"> 14</span>
|
||||
<span id="15"> 15</span>
|
||||
<span id="16"> 16</span>
|
||||
<span id="17"> 17</span>
|
||||
<span id="18"> 18</span>
|
||||
<span id="19"> 19</span>
|
||||
<span id="20"> 20</span>
|
||||
<span id="21"> 21</span>
|
||||
<span id="22"> 22</span>
|
||||
<span id="23"> 23</span>
|
||||
<span id="24"> 24</span>
|
||||
<span id="25"> 25</span>
|
||||
<span id="26"> 26</span>
|
||||
<span id="27"> 27</span>
|
||||
<span id="28"> 28</span>
|
||||
<span id="29"> 29</span>
|
||||
<span id="30"> 30</span>
|
||||
<span id="31"> 31</span>
|
||||
<span id="32"> 32</span>
|
||||
<span id="33"> 33</span>
|
||||
<span id="34"> 34</span>
|
||||
<span id="35"> 35</span>
|
||||
<span id="36"> 36</span>
|
||||
<span id="37"> 37</span>
|
||||
<span id="38"> 38</span>
|
||||
<span id="39"> 39</span>
|
||||
<span id="40"> 40</span>
|
||||
<span id="41"> 41</span>
|
||||
<span id="42"> 42</span>
|
||||
<span id="43"> 43</span>
|
||||
<span id="44"> 44</span>
|
||||
<span id="45"> 45</span>
|
||||
<span id="46"> 46</span>
|
||||
<span id="47"> 47</span>
|
||||
<span id="48"> 48</span>
|
||||
<span id="49"> 49</span>
|
||||
<span id="50"> 50</span>
|
||||
<span id="51"> 51</span>
|
||||
<span id="52"> 52</span>
|
||||
<span id="53"> 53</span>
|
||||
<span id="54"> 54</span>
|
||||
<span id="55"> 55</span>
|
||||
<span id="56"> 56</span>
|
||||
<span id="57"> 57</span>
|
||||
<span id="58"> 58</span>
|
||||
<span id="59"> 59</span>
|
||||
<span id="60"> 60</span>
|
||||
<span id="61"> 61</span>
|
||||
<span id="62"> 62</span>
|
||||
<span id="63"> 63</span>
|
||||
<span id="64"> 64</span>
|
||||
<span id="65"> 65</span>
|
||||
<span id="66"> 66</span>
|
||||
<span id="67"> 67</span>
|
||||
<span id="68"> 68</span>
|
||||
<span id="69"> 69</span>
|
||||
<span id="70"> 70</span>
|
||||
<span id="71"> 71</span>
|
||||
<span id="72"> 72</span>
|
||||
<span id="73"> 73</span>
|
||||
<span id="74"> 74</span>
|
||||
<span id="75"> 75</span>
|
||||
<span id="76"> 76</span>
|
||||
<span id="77"> 77</span>
|
||||
<span id="78"> 78</span>
|
||||
<span id="79"> 79</span>
|
||||
<span id="80"> 80</span>
|
||||
<span id="81"> 81</span>
|
||||
<span id="82"> 82</span>
|
||||
<span id="83"> 83</span>
|
||||
<span id="84"> 84</span>
|
||||
<span id="85"> 85</span>
|
||||
<span id="86"> 86</span>
|
||||
<span id="87"> 87</span>
|
||||
<span id="88"> 88</span>
|
||||
<span id="89"> 89</span>
|
||||
<span id="90"> 90</span>
|
||||
<span id="91"> 91</span>
|
||||
<span id="92"> 92</span>
|
||||
<span id="93"> 93</span>
|
||||
<span id="94"> 94</span>
|
||||
<span id="95"> 95</span>
|
||||
<span id="96"> 96</span>
|
||||
<span id="97"> 97</span>
|
||||
<span id="98"> 98</span>
|
||||
<span id="99"> 99</span>
|
||||
<span id="100">100</span>
|
||||
<span id="101">101</span>
|
||||
</pre><pre class="rust"><code><span class="kw">mod</span> <span class="ident">unzoomed</span>;
|
||||
<span class="kw">mod</span> <span class="ident">world</span>;
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">Drawable</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>, <span class="ident">RewriteColor</span>};
|
||||
<span class="kw">use</span> <span class="ident">geom::Polygon</span>;
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">Drawable</span>, <span class="ident">EventCtx</span>, <span class="ident">Fill</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>, <span class="ident">RewriteColor</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">unzoomed::DrawUnzoomedShapes</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">world</span>::{<span class="ident">DummyID</span>, <span class="ident">ObjectID</span>, <span class="ident">World</span>, <span class="ident">WorldOutcome</span>};
|
||||
|
||||
@ -146,7 +162,19 @@
|
||||
<span class="doccomment">/// Transforms all colors in both batches.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">color</span>(<span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">transformation</span>: <span class="ident">RewriteColor</span>) <span class="op">-</span><span class="op">></span> <span class="self">Self</span> {
|
||||
<span class="self">self</span>.<span class="ident">unzoomed</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">unzoomed</span>.<span class="ident">color</span>(<span class="ident">transformation</span>);
|
||||
<span class="kw">if</span> <span class="op">!</span><span class="self">self</span>.<span class="ident">always_draw_unzoomed</span> {
|
||||
<span class="self">self</span>.<span class="ident">zoomed</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">zoomed</span>.<span class="ident">color</span>(<span class="ident">transformation</span>);
|
||||
}
|
||||
<span class="self">self</span>
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Adds a single polygon to both batches, painted according to `Fill`</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">push</span><span class="op"><</span><span class="ident">F</span>: <span class="ident">Into</span><span class="op"><</span><span class="ident">Fill</span><span class="op">></span><span class="op">></span>(<span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">fill</span>: <span class="ident">F</span>, <span class="ident">p</span>: <span class="ident">Polygon</span>) <span class="op">-</span><span class="op">></span> <span class="self">Self</span> {
|
||||
<span class="kw">let</span> <span class="ident">fill</span> <span class="op">=</span> <span class="ident">fill</span>.<span class="ident">into</span>();
|
||||
<span class="kw">if</span> <span class="op">!</span><span class="self">self</span>.<span class="ident">always_draw_unzoomed</span> {
|
||||
<span class="self">self</span>.<span class="ident">zoomed</span>.<span class="ident">push</span>(<span class="ident">fill</span>.<span class="ident">clone</span>(), <span class="ident">p</span>.<span class="ident">clone</span>());
|
||||
}
|
||||
<span class="self">self</span>.<span class="ident">unzoomed</span>.<span class="ident">push</span>(<span class="ident">fill</span>, <span class="ident">p</span>);
|
||||
<span class="self">self</span>
|
||||
}
|
||||
|
||||
|
@ -481,6 +481,52 @@
|
||||
<span id="481">481</span>
|
||||
<span id="482">482</span>
|
||||
<span id="483">483</span>
|
||||
<span id="484">484</span>
|
||||
<span id="485">485</span>
|
||||
<span id="486">486</span>
|
||||
<span id="487">487</span>
|
||||
<span id="488">488</span>
|
||||
<span id="489">489</span>
|
||||
<span id="490">490</span>
|
||||
<span id="491">491</span>
|
||||
<span id="492">492</span>
|
||||
<span id="493">493</span>
|
||||
<span id="494">494</span>
|
||||
<span id="495">495</span>
|
||||
<span id="496">496</span>
|
||||
<span id="497">497</span>
|
||||
<span id="498">498</span>
|
||||
<span id="499">499</span>
|
||||
<span id="500">500</span>
|
||||
<span id="501">501</span>
|
||||
<span id="502">502</span>
|
||||
<span id="503">503</span>
|
||||
<span id="504">504</span>
|
||||
<span id="505">505</span>
|
||||
<span id="506">506</span>
|
||||
<span id="507">507</span>
|
||||
<span id="508">508</span>
|
||||
<span id="509">509</span>
|
||||
<span id="510">510</span>
|
||||
<span id="511">511</span>
|
||||
<span id="512">512</span>
|
||||
<span id="513">513</span>
|
||||
<span id="514">514</span>
|
||||
<span id="515">515</span>
|
||||
<span id="516">516</span>
|
||||
<span id="517">517</span>
|
||||
<span id="518">518</span>
|
||||
<span id="519">519</span>
|
||||
<span id="520">520</span>
|
||||
<span id="521">521</span>
|
||||
<span id="522">522</span>
|
||||
<span id="523">523</span>
|
||||
<span id="524">524</span>
|
||||
<span id="525">525</span>
|
||||
<span id="526">526</span>
|
||||
<span id="527">527</span>
|
||||
<span id="528">528</span>
|
||||
<span id="529">529</span>
|
||||
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::collections::HashMap</span>;
|
||||
<span class="kw">use</span> <span class="ident">std::fmt::Debug</span>;
|
||||
<span class="kw">use</span> <span class="ident">std::hash::Hash</span>;
|
||||
@ -642,6 +688,23 @@
|
||||
<span class="self">self</span>.<span class="ident">draw_hover_rewrite</span>(<span class="ident">RewriteColor::ChangeAlpha</span>(<span class="ident">alpha</span>))
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Draw the object in a hovered state by adding an outline to the normal drawing.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">hover_outline</span>(<span class="self">self</span>, <span class="ident">color</span>: <span class="ident">Color</span>, <span class="ident">thickness</span>: <span class="ident">Distance</span>) <span class="op">-</span><span class="op">></span> <span class="self">Self</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">draw</span> <span class="op">=</span> <span class="self">self</span>
|
||||
.<span class="ident">draw_normal</span>
|
||||
.<span class="ident">clone</span>()
|
||||
.<span class="ident">expect</span>(<span class="string">"first specify how to draw normally"</span>);
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">p</span>) <span class="op">=</span> <span class="self">self</span>
|
||||
.<span class="ident">hitbox</span>
|
||||
.<span class="ident">clone</span>()
|
||||
.<span class="ident">expect</span>(<span class="string">"call hitbox first"</span>)
|
||||
.<span class="ident">to_outline</span>(<span class="ident">thickness</span>)
|
||||
{
|
||||
<span class="ident">draw</span> <span class="op">=</span> <span class="ident">draw</span>.<span class="ident">push</span>(<span class="ident">color</span>, <span class="ident">p</span>);
|
||||
}
|
||||
<span class="self">self</span>.<span class="ident">draw_hovered</span>(<span class="ident">draw</span>)
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Draw a tooltip while hovering over this object.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">tooltip</span>(<span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">txt</span>: <span class="ident">Text</span>) <span class="op">-</span><span class="op">></span> <span class="self">Self</span> {
|
||||
<span class="macro">assert!</span>(<span class="self">self</span>.<span class="ident">tooltip</span>.<span class="ident">is_none</span>(), <span class="string">"already specified tooltip"</span>);
|
||||
@ -694,7 +757,7 @@
|
||||
<span class="self">self</span>.<span class="ident">id</span>,
|
||||
<span class="ident">Object</span> {
|
||||
<span class="ident">_id</span>: <span class="self">self</span>.<span class="ident">id</span>,
|
||||
<span class="ident">_quadtree_id</span>: <span class="ident">quadtree_id</span>,
|
||||
<span class="ident">quadtree_id</span>,
|
||||
<span class="ident">hitbox</span>,
|
||||
<span class="ident">zorder</span>: <span class="self">self</span>.<span class="ident">zorder</span>,
|
||||
<span class="ident">draw_normal</span>: <span class="self">self</span>
|
||||
@ -713,7 +776,7 @@
|
||||
|
||||
<span class="kw">struct</span> <span class="ident">Object</span><span class="op"><</span><span class="ident">ID</span>: <span class="ident">ObjectID</span><span class="op">></span> {
|
||||
<span class="ident">_id</span>: <span class="ident">ID</span>,
|
||||
<span class="ident">_quadtree_id</span>: <span class="ident">ItemId</span>,
|
||||
<span class="ident">quadtree_id</span>: <span class="ident">ItemId</span>,
|
||||
<span class="ident">hitbox</span>: <span class="ident">Polygon</span>,
|
||||
<span class="ident">zorder</span>: <span class="ident">usize</span>,
|
||||
<span class="ident">draw_normal</span>: <span class="ident">ToggleZoomed</span>,
|
||||
@ -775,6 +838,33 @@
|
||||
}
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Delete an object. Not idempotent -- this will panic if the object doesn't exist. Will panic</span>
|
||||
<span class="doccomment">/// if the object is deleted in the middle of being dragged.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">delete</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">id</span>: <span class="ident">ID</span>) {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">hovering</span> <span class="op">=</span><span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">id</span>) {
|
||||
<span class="self">self</span>.<span class="ident">hovering</span> <span class="op">=</span> <span class="prelude-val">None</span>;
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">dragging_from</span>.<span class="ident">is_some</span>() {
|
||||
<span class="macro">panic!</span>(<span class="string">"Can't delete {:?} mid-drag"</span>, <span class="ident">id</span>);
|
||||
}
|
||||
}
|
||||
|
||||
<span class="self">self</span>.<span class="ident">delete_before_replacement</span>(<span class="ident">id</span>);
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Delete an object, with the promise to recreate it with the same ID before the next call to</span>
|
||||
<span class="doccomment">/// `event`. This may be called while the object is being hovered on or dragged.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">delete_before_replacement</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">id</span>: <span class="ident">ID</span>) {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">obj</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">objects</span>.<span class="ident">remove</span>(<span class="kw-2">&</span><span class="ident">id</span>) {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">quadtree</span>.<span class="ident">remove</span>(<span class="ident">obj</span>.<span class="ident">quadtree_id</span>).<span class="ident">is_none</span>() {
|
||||
<span class="comment">// This can happen for objects that're out-of-bounds. One example is intersections</span>
|
||||
<span class="comment">// in map_editor.</span>
|
||||
<span class="macro">warn!</span>(<span class="string">"{:?} wasn't in the quadtree"</span>, <span class="ident">id</span>);
|
||||
}
|
||||
} <span class="kw">else</span> {
|
||||
<span class="macro">panic!</span>(<span class="string">"Can't delete {:?}; it's not in the World"</span>, <span class="ident">id</span>);
|
||||
}
|
||||
}
|
||||
|
||||
<span class="doccomment">/// After adding all objects to a `World`, call this to initially detect if the cursor is</span>
|
||||
<span class="doccomment">/// hovering on an object.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">initialize_hover</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="ident">EventCtx</span>) {
|
||||
@ -960,6 +1050,8 @@
|
||||
<span class="doccomment">///</span>
|
||||
<span class="doccomment">/// Note: You must call `build` on this object before calling `add_unnamed` again. Otherwise,</span>
|
||||
<span class="doccomment">/// the object IDs will collide.</span>
|
||||
<span class="doccomment">///</span>
|
||||
<span class="doccomment">/// TODO This will break when objects are deleted!</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">add_unnamed</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>) <span class="op">-</span><span class="op">></span> <span class="ident">ObjectBuilder</span><span class="op"><</span><span class="lifetime">'_</span>, <span class="ident">DummyID</span><span class="op">></span> {
|
||||
<span class="self">self</span>.<span class="ident">add</span>(<span class="ident">DummyID</span>(<span class="self">self</span>.<span class="ident">objects</span>.<span class="ident">len</span>()))
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ ring, it’s skipped. The world-space coordinates are optionally translated back
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone_from" class="method trait-impl has-srclink"><div class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/1.56.0/src/core/clone.rs.html#130" title="goto source code">[src]</a></div><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.56.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&</a>Self)</h4></div></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.56.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Debug" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/widgetry/geom/mod.rs.html#19-27" title="goto source code">[src]</a></div><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/widgetry/geom/mod.rs.html#20-26" title="goto source code">[src]</a></div><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.56.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.56.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.56.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></div></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.56.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Default" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/widgetry/geom/mod.rs.html#271-275" title="goto source code">[src]</a></div><a href="#impl-Default" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.default" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/widgetry/geom/mod.rs.html#272-274" title="goto source code">[src]</a></div><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.56.0/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> Self</h4></div></summary><div class='docblock'><p>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.56.0/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3CGeomBatch%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/widgetry/mapspace/mod.rs.html#79-87" title="goto source code">[src]</a></div><a href="#impl-From%3CGeomBatch%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a>> for <a class="struct" href="../mapspace/struct.ToggleZoomedBuilder.html" title="struct widgetry::mapspace::ToggleZoomedBuilder">ToggleZoomedBuilder</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/widgetry/mapspace/mod.rs.html#80-86" title="goto source code">[src]</a></div><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.56.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(unzoomed: <a class="struct" href="struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3CGeomBatch%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/widgetry/mapspace/mod.rs.html#93-101" title="goto source code">[src]</a></div><a href="#impl-From%3CGeomBatch%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a>> for <a class="struct" href="../mapspace/struct.ToggleZoomedBuilder.html" title="struct widgetry::mapspace::ToggleZoomedBuilder">ToggleZoomedBuilder</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/widgetry/mapspace/mod.rs.html#94-100" title="goto source code">[src]</a></div><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.56.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(unzoomed: <a class="struct" href="struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3CVec%3C(F%2C%20Polygon)%2C%20Global%3E%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/widgetry/geom/mod.rs.html#277-285" title="goto source code">[src]</a></div><a href="#impl-From%3CVec%3C(F%2C%20Polygon)%2C%20Global%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl<F: <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../color/enum.Fill.html" title="enum widgetry::color::Fill">Fill</a>>> <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">(</a>F, <a class="struct" href="../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a><a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">)</a>, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>> for <a class="struct" href="struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/widgetry/geom/mod.rs.html#279-284" title="goto source code">[src]</a></div><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.56.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(list: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">(</a>F, <a class="struct" href="../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a><a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">)</a>>) -> <a class="struct" href="struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h4></div></summary><div class="docblock"><p>Creates a batch of filled polygons.</p>
|
||||
</div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><div id="impl-RefUnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div><div id="impl-Send" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div><div id="impl-Sync" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div><div id="impl-Unpin" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div><div id="impl-UnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Any" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.0/src/core/any.rs.html#132-136" title="goto source code">[src]</a></div><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.type_id" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.0/src/core/any.rs.html#133" title="goto source code">[src]</a></div><a href="#method.type_id" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.56.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.56.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></div></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.56.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Borrow%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.0/src/core/borrow.rs.html#208-213" title="goto source code">[src]</a></div><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.0/src/core/borrow.rs.html#210" title="goto source code">[src]</a></div><a href="#method.borrow" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.56.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&</a>T</h4></div></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.56.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `mapspace` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, mapspace"><title>widgetry::mapspace - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module mapspace</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li></ul></div><div id="sidebar-vars" data-name="mapspace" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">widgetry</a>::<wbr><a class="mod" href="#">mapspace</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/widgetry/mapspace/mod.rs.html#1-87" title="goto source code">[src]</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `mapspace` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, mapspace"><title>widgetry::mapspace - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module mapspace</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li></ul></div><div id="sidebar-vars" data-name="mapspace" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">widgetry</a>::<wbr><a class="mod" href="#">mapspace</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/widgetry/mapspace/mod.rs.html#1-101" title="goto source code">[src]</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="mod" href="unzoomed/index.html" title="widgetry::mapspace::unzoomed mod">unzoomed</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="world/index.html" title="widgetry::mapspace::world mod">world</a></div><div class="item-right docblock-short"></div></div><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.DrawUnzoomedShapes.html" title="widgetry::mapspace::DrawUnzoomedShapes struct">DrawUnzoomedShapes</a></div><div class="item-right docblock-short"><p>Draw <code>Circles</code> and <code>PolyLines</code> in map-space that scale their size as the canvas is zoomed. The
|
||||
goal is to appear with roughly constant screen-space size, but for the moment, this is
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Objects in a `World` are uniquely identified by this caller-specified type"><meta name="keywords" content="rust, rustlang, rust-lang, ObjectID"><title>ObjectID in widgetry::mapspace - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Trait ObjectID</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div><h2 class="location">Other items in<br><a href="../index.html">widgetry</a>::<wbr><a href="index.html">mapspace</a></h2><div id="sidebar-vars" data-name="ObjectID" data-ty="trait" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Trait <a href="../index.html">widgetry</a>::<wbr><a href="index.html">mapspace</a>::<wbr><a class="trait" href="#">ObjectID</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/widgetry/mapspace/world.rs.html#79" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust trait"><code>pub trait ObjectID: <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> { }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Objects in a <code>World</code> are uniquely identified by this caller-specified type</p>
|
||||
</div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><div id="impl-ObjectID" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/widgetry/mapspace/world.rs.html#473" title="goto source code">[src]</a></div><a href="#impl-ObjectID" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="world/trait.ObjectID.html" title="trait widgetry::mapspace::world::ObjectID">ObjectID</a> for <a class="struct" href="world/struct.DummyID.html" title="struct widgetry::mapspace::world::DummyID">DummyID</a></h3></div></div><script type="text/javascript" src="../../implementors/widgetry/mapspace/trait.ObjectID.js" async></script></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="widgetry" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
</div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><div id="impl-ObjectID" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/widgetry/mapspace/world.rs.html#517" title="goto source code">[src]</a></div><a href="#impl-ObjectID" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="world/trait.ObjectID.html" title="trait widgetry::mapspace::world::ObjectID">ObjectID</a> for <a class="struct" href="world/struct.DummyID.html" title="struct widgetry::mapspace::world::DummyID">DummyID</a></h3></div></div><script type="text/javascript" src="../../implementors/widgetry/mapspace/trait.ObjectID.js" async></script></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="widgetry" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<script src="../../main.js"></script>
|
||||
</body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `world` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, world"><title>widgetry::mapspace::world - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module world</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li></ul></div><div id="sidebar-vars" data-name="world" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">mapspace</a>::<wbr><a class="mod" href="#">world</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/widgetry/mapspace/world.rs.html#1-483" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `world` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, world"><title>widgetry::mapspace::world - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module world</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li></ul></div><div id="sidebar-vars" data-name="world" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">mapspace</a>::<wbr><a class="mod" href="#">world</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/widgetry/mapspace/world.rs.html#1-529" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.DummyID.html" title="widgetry::mapspace::world::DummyID struct">DummyID</a></div><div class="item-right docblock-short"><p>If you don’t ever need to refer to objects in a <code>World</code>, you can auto-assign dummy IDs.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.Object.html" title="widgetry::mapspace::world::Object struct">Object</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.ObjectBuilder.html" title="widgetry::mapspace::world::ObjectBuilder struct">ObjectBuilder</a></div><div class="item-right docblock-short"><p>This provides a builder API for adding objects to a <code>World</code>.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.World.html" title="widgetry::mapspace::world::World struct">World</a></div><div class="item-right docblock-short"><p>A <code>World</code> manages objects that exist in “map-space”, the zoomable and pannable canvas. These
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Objects in a `World` are uniquely identified by this caller-specified type"><meta name="keywords" content="rust, rustlang, rust-lang, ObjectID"><title>ObjectID in widgetry::mapspace::world - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><h2 class="location">Trait ObjectID</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div><h2 class="location">Other items in<br><a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">mapspace</a>::<wbr><a href="index.html">world</a></h2><div id="sidebar-vars" data-name="ObjectID" data-ty="trait" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Trait <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">mapspace</a>::<wbr><a href="index.html">world</a>::<wbr><a class="trait" href="#">ObjectID</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/widgetry/mapspace/world.rs.html#79" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust trait"><code>pub trait ObjectID: <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> { }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Objects in a <code>World</code> are uniquely identified by this caller-specified type</p>
|
||||
</div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><div id="impl-ObjectID" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/mapspace/world.rs.html#473" title="goto source code">[src]</a></div><a href="#impl-ObjectID" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ObjectID.html" title="trait widgetry::mapspace::world::ObjectID">ObjectID</a> for <a class="struct" href="struct.DummyID.html" title="struct widgetry::mapspace::world::DummyID">DummyID</a></h3></div></div><script type="text/javascript" src="../../../implementors/widgetry/mapspace/world/trait.ObjectID.js" async></script></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="widgetry" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
</div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><div id="impl-ObjectID" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/mapspace/world.rs.html#517" title="goto source code">[src]</a></div><a href="#impl-ObjectID" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ObjectID.html" title="trait widgetry::mapspace::world::ObjectID">ObjectID</a> for <a class="struct" href="struct.DummyID.html" title="struct widgetry::mapspace::world::DummyID">DummyID</a></h3></div></div><script type="text/javascript" src="../../../implementors/widgetry/mapspace/world/trait.ObjectID.js" async></script></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="widgetry" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
<script src="../../../main.js"></script>
|
||||
</body></html>
|
@ -43,7 +43,7 @@ ring, it’s skipped. The world-space coordinates are optionally translated back
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone_from" class="method trait-impl has-srclink"><div class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/1.56.0/src/core/clone.rs.html#130" title="goto source code">[src]</a></div><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.56.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&</a>Self)</h4></div></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.56.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Debug" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/geom/mod.rs.html#19-27" title="goto source code">[src]</a></div><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="geom/struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/geom/mod.rs.html#20-26" title="goto source code">[src]</a></div><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.56.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.56.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.56.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></div></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.56.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Default" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/geom/mod.rs.html#271-275" title="goto source code">[src]</a></div><a href="#impl-Default" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="geom/struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.default" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/geom/mod.rs.html#272-274" title="goto source code">[src]</a></div><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.56.0/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> Self</h4></div></summary><div class='docblock'><p>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.56.0/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3CGeomBatch%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/mapspace/mod.rs.html#79-87" title="goto source code">[src]</a></div><a href="#impl-From%3CGeomBatch%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="geom/struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a>> for <a class="struct" href="mapspace/struct.ToggleZoomedBuilder.html" title="struct widgetry::mapspace::ToggleZoomedBuilder">ToggleZoomedBuilder</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/mapspace/mod.rs.html#80-86" title="goto source code">[src]</a></div><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.56.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(unzoomed: <a class="struct" href="geom/struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3CGeomBatch%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/mapspace/mod.rs.html#93-101" title="goto source code">[src]</a></div><a href="#impl-From%3CGeomBatch%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="geom/struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a>> for <a class="struct" href="mapspace/struct.ToggleZoomedBuilder.html" title="struct widgetry::mapspace::ToggleZoomedBuilder">ToggleZoomedBuilder</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/mapspace/mod.rs.html#94-100" title="goto source code">[src]</a></div><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.56.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(unzoomed: <a class="struct" href="geom/struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3CVec%3C(F%2C%20Polygon)%2C%20Global%3E%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/geom/mod.rs.html#277-285" title="goto source code">[src]</a></div><a href="#impl-From%3CVec%3C(F%2C%20Polygon)%2C%20Global%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl<F: <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="color/enum.Fill.html" title="enum widgetry::color::Fill">Fill</a>>> <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">(</a>F, <a class="struct" href="../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a><a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">)</a>, <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>> for <a class="struct" href="geom/struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/geom/mod.rs.html#279-284" title="goto source code">[src]</a></div><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.56.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(list: <a class="struct" href="https://doc.rust-lang.org/1.56.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">(</a>F, <a class="struct" href="../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a><a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.tuple.html">)</a>>) -> <a class="struct" href="geom/struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h4></div></summary><div class="docblock"><p>Creates a batch of filled polygons.</p>
|
||||
</div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><div id="impl-RefUnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="geom/struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div><div id="impl-Send" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="geom/struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div><div id="impl-Sync" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="geom/struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div><div id="impl-Unpin" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="geom/struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div><div id="impl-UnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="geom/struct.GeomBatch.html" title="struct widgetry::geom::GeomBatch">GeomBatch</a></h3></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Any" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.0/src/core/any.rs.html#132-136" title="goto source code">[src]</a></div><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.type_id" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.0/src/core/any.rs.html#133" title="goto source code">[src]</a></div><a href="#method.type_id" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.56.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.56.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></div></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.56.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Borrow%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.0/src/core/borrow.rs.html#208-213" title="goto source code">[src]</a></div><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.56.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.56.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.0/src/core/borrow.rs.html#210" title="goto source code">[src]</a></div><a href="#method.borrow" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.56.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.reference.html">&</a>T</h4></div></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.56.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
|
Loading…
Reference in New Issue
Block a user