mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 01:15:12 +03:00
deploy: 14a0e005c8
This commit is contained in:
parent
db85cef39f
commit
e844a647e3
File diff suppressed because one or more lines are too long
@ -98,7 +98,7 @@ the event and immediately apply the transition. <a href="#method.panel_changed">
|
||||
</div><h4 id="method.on_mouseover-8" class="method hidden trait-impl"><code>pub fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code><a href="#method.on_mouseover-8" class="anchor"></a></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||||
</div><h4 id="method.other_event-8" class="method hidden trait-impl"><code>pub fn <a href="#method.other_event" class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A) -> Transition<A></code><a href="#method.other_event-8" class="anchor"></a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div><h4 id="method.draw_baselayer-65" class="method hidden trait-impl"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer-65" class="anchor"></a></h4></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-SimpleState%3CApp%3E-9" class="impl"><code class="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></code><a href="#impl-SimpleState%3CApp%3E-9" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#597-610" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.on_click-9" class="method hidden trait-impl"><code>fn <a href="#tymethod.on_click" 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/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></code><a href="#method.on_click-9" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#598-609" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div><h4 id="method.draw_baselayer-65" class="method hidden trait-impl"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer-65" class="anchor"></a></h4></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-SimpleState%3CApp%3E-9" class="impl"><code class="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></code><a href="#impl-SimpleState%3CApp%3E-9" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#633-646" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.on_click-9" class="method hidden trait-impl"><code>fn <a href="#tymethod.on_click" 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/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></code><a href="#method.on_click-9" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#634-645" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div><h4 id="method.panel_changed-10" class="method hidden trait-impl"><code>pub fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code><a href="#method.panel_changed-10" class="anchor"></a></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
@ -133,8 +133,8 @@ call this to handle all other events. <a href="#method.other_event">Read more</a
|
||||
</div><h4 id="method.draw-15" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw-15" class="anchor"></a><a class="srclink" href="../../src/game/debug/mod.rs.html#991" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer-14" class="method hidden trait-impl"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer-14" class="anchor"></a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.on_destroy-14" class="method hidden trait-impl"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code><a href="#method.on_destroy-14" class="anchor"></a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E-15" class="impl"><code class="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></code><a href="#impl-State%3CApp%3E-15" class="anchor"></a><a class="srclink" href="../../src/game/devtools/collisions.rs.html#267-324" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event-15" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" 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>></code><a href="#method.event-15" class="anchor"></a><a class="srclink" href="../../src/game/devtools/collisions.rs.html#268-299" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw-16" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw-16" class="anchor"></a><a class="srclink" href="../../src/game/devtools/collisions.rs.html#301-323" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E-15" class="impl"><code class="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></code><a href="#impl-State%3CApp%3E-15" class="anchor"></a><a class="srclink" href="../../src/game/devtools/collisions.rs.html#267-323" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event-15" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" 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>></code><a href="#method.event-15" class="anchor"></a><a class="srclink" href="../../src/game/devtools/collisions.rs.html#268-298" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw-16" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw-16" class="anchor"></a><a class="srclink" href="../../src/game/devtools/collisions.rs.html#300-322" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer-15" class="method hidden trait-impl"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer-15" class="anchor"></a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.on_destroy-15" class="method hidden trait-impl"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code><a href="#method.on_destroy-15" class="anchor"></a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E-16" class="impl"><code class="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></code><a href="#impl-State%3CApp%3E-16" class="anchor"></a><a class="srclink" href="../../src/game/devtools/destinations.rs.html#112-168" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event-16" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" 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>></code><a href="#method.event-16" class="anchor"></a><a class="srclink" href="../../src/game/devtools/destinations.rs.html#113-146" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
@ -277,12 +277,12 @@ call this to handle all other events. <a href="#method.other_event">Read more</a
|
||||
</div><h4 id="method.draw-48" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw-48" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/freeform/spawner.rs.html#291-304" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer-47" class="method hidden trait-impl"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer-47" class="anchor"></a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.on_destroy-47" class="method hidden trait-impl"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code><a href="#method.on_destroy-47" class="anchor"></a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E-48" class="impl"><code class="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></code><a href="#impl-State%3CApp%3E-48" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#304-395" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event-48" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" 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>></code><a href="#method.event-48" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#305-389" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw-49" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw-49" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#391-394" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E-48" class="impl"><code class="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></code><a href="#impl-State%3CApp%3E-48" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#305-396" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event-48" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" 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>></code><a href="#method.event-48" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#306-390" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw-49" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw-49" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#392-395" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer-48" class="method hidden trait-impl"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer-48" class="anchor"></a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.on_destroy-48" class="method hidden trait-impl"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code><a href="#method.on_destroy-48" class="anchor"></a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E-49" class="impl"><code class="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></code><a href="#impl-State%3CApp%3E-49" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#462-527" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event-49" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" 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>></code><a href="#method.event-49" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#463-521" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw-50" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw-50" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#523-526" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E-49" class="impl"><code class="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></code><a href="#impl-State%3CApp%3E-49" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#509-563" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event-49" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" 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>></code><a href="#method.event-49" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#510-557" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw-50" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw-50" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/gameplay/play_scenario.rs.html#559-562" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer-49" class="method hidden trait-impl"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer-49" class="anchor"></a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.on_destroy-49" class="method hidden trait-impl"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code><a href="#method.on_destroy-49" class="anchor"></a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E-5" class="impl"><code class="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></code><a href="#impl-State%3CApp%3E-5" class="anchor"></a><a class="srclink" href="../../src/game/debug/blocked_by.rs.html#204-265" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event-5" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" 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>></code><a href="#method.event-5" class="anchor"></a><a class="srclink" href="../../src/game/debug/blocked_by.rs.html#205-251" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
@ -297,14 +297,14 @@ call this to handle all other events. <a href="#method.other_event">Read more</a
|
||||
</div><h4 id="method.draw-52" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw-52" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/misc_tools.rs.html#135-148" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer-51" class="method hidden trait-impl"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer-51" class="anchor"></a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.on_destroy-51" class="method hidden trait-impl"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code><a href="#method.on_destroy-51" class="anchor"></a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E-52" class="impl"><code class="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></code><a href="#impl-State%3CApp%3E-52" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#108-201" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event-52" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" 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>></code><a href="#method.event-52" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#109-195" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw-53" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw-53" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#197-200" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E-52" class="impl"><code class="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></code><a href="#impl-State%3CApp%3E-52" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#112-206" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event-52" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" 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>></code><a href="#method.event-52" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#113-200" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw-53" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw-53" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#202-205" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer-52" class="method hidden trait-impl"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer-52" class="anchor"></a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.on_destroy-52" class="method hidden trait-impl"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code><a href="#method.on_destroy-52" class="anchor"></a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E-53" class="impl"><code class="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></code><a href="#impl-State%3CApp%3E-53" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#263-395" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event-53" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" 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>></code><a href="#method.event-53" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#264-371" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw_baselayer-53" class="method hidden trait-impl"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer-53" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#373-375" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.draw-54" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw-54" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#377-386" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.on_destroy-53" class="method hidden trait-impl"><code>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>)</code><a href="#method.on_destroy-53" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#388-394" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E-53" class="impl"><code class="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></code><a href="#impl-State%3CApp%3E-53" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#268-400" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event-53" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" 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>></code><a href="#method.event-53" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#269-376" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw_baselayer-53" class="method hidden trait-impl"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer-53" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#378-380" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.draw-54" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw-54" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#382-391" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.on_destroy-53" class="method hidden trait-impl"><code>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>)</code><a href="#method.on_destroy-53" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/time_warp.rs.html#393-399" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E-54" class="impl"><code class="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></code><a href="#impl-State%3CApp%3E-54" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/mod.rs.html#108-253" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event-54" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" 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>></code><a href="#method.event-54" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/mod.rs.html#109-216" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw-55" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw-55" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/mod.rs.html#218-246" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.on_destroy-54" class="method hidden trait-impl"><code>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>)</code><a href="#method.on_destroy-54" class="anchor"></a><a class="srclink" href="../../src/game/sandbox/mod.rs.html#248-252" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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 `collisions` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, collisions"><title>game::devtools::collisions - 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="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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><p class="location">Module collisions</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></div><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">devtools</a></p><div id="sidebar-vars" data-name="collisions" 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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></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" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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">devtools</a>::<wbr><a class="mod" href="">collisions</a><button id="copy-path" onclick="copy_path(this)">⎘</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/devtools/collisions.rs.html#1-365" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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">devtools</a>::<wbr><a class="mod" href="">collisions</a><button id="copy-path" onclick="copy_path(this)">⎘</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/devtools/collisions.rs.html#1-364" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.CollisionsViewer.html" title="game::devtools::collisions::CollisionsViewer struct">CollisionsViewer</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Filters.html" title="game::devtools::collisions::Filters struct">Filters</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.MapspaceTooltips.html" title="game::devtools::collisions::MapspaceTooltips struct">MapspaceTooltips</a></td><td class="docblock-short"></td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||
<table><tr class="module-item"><td><a class="enum" href="enum.Dataviz.html" title="game::devtools::collisions::Dataviz enum">Dataviz</a></td><td class="docblock-short"></td></tr></table></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>
|
@ -7,8 +7,8 @@
|
||||
tooltips: <a class="struct" href="struct.MapspaceTooltips.html" title="struct game::devtools::collisions::MapspaceTooltips">MapspaceTooltips</a>,
|
||||
panel: Panel,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.data" class="structfield small-section-header"><a href="#structfield.data" class="anchor field"></a><code>data: <a class="struct" href="../../../collisions/struct.CollisionDataset.html" title="struct collisions::CollisionDataset">CollisionDataset</a></code></span><span id="structfield.dataviz" class="structfield small-section-header"><a href="#structfield.dataviz" class="anchor field"></a><code>dataviz: <a class="enum" href="enum.Dataviz.html" title="enum game::devtools::collisions::Dataviz">Dataviz</a></code></span><span id="structfield.tooltips" class="structfield small-section-header"><a href="#structfield.tooltips" class="anchor field"></a><code>tooltips: <a class="struct" href="struct.MapspaceTooltips.html" title="struct game::devtools::collisions::MapspaceTooltips">MapspaceTooltips</a></code></span><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="struct.CollisionsViewer.html" title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/game/devtools/collisions.rs.html#20-56" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.new_state" class="method"><code>pub fn <a href="#method.new_state" class="fnname">new_state</a>(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>>></code><a href="#method.new_state" class="anchor"></a><a class="srclink" href="../../../src/game/devtools/collisions.rs.html#21-55" title="goto source code">[src]</a></h4></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="struct.CollisionsViewer.html" title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../src/game/devtools/collisions.rs.html#267-324" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>></code><a href="#method.event" class="anchor"></a><a class="srclink" href="../../../src/game/devtools/collisions.rs.html#268-299" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw" class="anchor"></a><a class="srclink" href="../../../src/game/devtools/collisions.rs.html#301-323" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.data" class="structfield small-section-header"><a href="#structfield.data" class="anchor field"></a><code>data: <a class="struct" href="../../../collisions/struct.CollisionDataset.html" title="struct collisions::CollisionDataset">CollisionDataset</a></code></span><span id="structfield.dataviz" class="structfield small-section-header"><a href="#structfield.dataviz" class="anchor field"></a><code>dataviz: <a class="enum" href="enum.Dataviz.html" title="enum game::devtools::collisions::Dataviz">Dataviz</a></code></span><span id="structfield.tooltips" class="structfield small-section-header"><a href="#structfield.tooltips" class="anchor field"></a><code>tooltips: <a class="struct" href="struct.MapspaceTooltips.html" title="struct game::devtools::collisions::MapspaceTooltips">MapspaceTooltips</a></code></span><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="struct.CollisionsViewer.html" title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/game/devtools/collisions.rs.html#20-56" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.new_state" class="method"><code>pub fn <a href="#method.new_state" class="fnname">new_state</a>(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>>></code><a href="#method.new_state" class="anchor"></a><a class="srclink" href="../../../src/game/devtools/collisions.rs.html#21-55" title="goto source code">[src]</a></h4></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="struct.CollisionsViewer.html" title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../src/game/devtools/collisions.rs.html#267-323" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>></code><a href="#method.event" class="anchor"></a><a class="srclink" href="../../../src/game/devtools/collisions.rs.html#268-298" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw" class="anchor"></a><a class="srclink" href="../../../src/game/devtools/collisions.rs.html#300-322" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer" class="method hidden trait-impl"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer" class="anchor"></a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.on_destroy" class="method hidden trait-impl"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code><a href="#method.on_destroy" class="anchor"></a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></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"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.CollisionsViewer.html" title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a></h3><h3 id="impl-Send" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.CollisionsViewer.html" title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></code><a href="#impl-Send" class="anchor"></a></h3><h3 id="impl-Sync" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.CollisionsViewer.html" title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></code><a href="#impl-Sync" class="anchor"></a></h3><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.CollisionsViewer.html" title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></code><a href="#impl-Unpin" class="anchor"></a></h3><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.CollisionsViewer.html" title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></code><a href="#impl-UnwindSafe" class="anchor"></a></h3></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><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.type_id" class="method hidden trait-impl"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a href="#method.type_id" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
|
File diff suppressed because one or more lines are too long
@ -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="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="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a></p><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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></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" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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)">⎘</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-b46195c1bf7e0216/out/built.rs.html#78" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = r"Tue, 13 Jul 2021 16:10:23 +0000";</pre><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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)">⎘</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-b46195c1bf7e0216/out/built.rs.html#78" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = r"Tue, 13 Jul 2021 19:45:17 +0000";</pre><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
</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,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 `play_scenario` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, play_scenario"><title>game::sandbox::gameplay::play_scenario - 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="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc 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><p class="location">Module play_scenario</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">gameplay</a></p><div id="sidebar-vars" data-name="play_scenario" 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"><img src="../../../../brush.svg" width="18" height="18" alt="Pick another theme!"></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" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" height="18" alt="Change settings"></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">sandbox</a>::<wbr><a href="../index.html">gameplay</a>::<wbr><a class="mod" href="">play_scenario</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/gameplay/play_scenario.rs.html#1-610" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.ChangeMode.html" title="game::sandbox::gameplay::play_scenario::ChangeMode struct">ChangeMode</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.DepartureSummary.html" title="game::sandbox::gameplay::play_scenario::DepartureSummary struct">DepartureSummary</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.EditScenarioModifiers.html" title="game::sandbox::gameplay::play_scenario::EditScenarioModifiers struct">EditScenarioModifiers</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.PlayScenario.html" title="game::sandbox::gameplay::play_scenario::PlayScenario struct">PlayScenario</a></td><td class="docblock-short"></td></tr></table></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>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" height="18" alt="Change settings"></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">sandbox</a>::<wbr><a href="../index.html">gameplay</a>::<wbr><a class="mod" href="">play_scenario</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/gameplay/play_scenario.rs.html#1-689" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.ChangeMode.html" title="game::sandbox::gameplay::play_scenario::ChangeMode struct">ChangeMode</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.CountTrips.html" title="game::sandbox::gameplay::play_scenario::CountTrips struct">CountTrips</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.DepartureSummary.html" title="game::sandbox::gameplay::play_scenario::DepartureSummary struct">DepartureSummary</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.EditScenarioModifiers.html" title="game::sandbox::gameplay::play_scenario::EditScenarioModifiers struct">EditScenarioModifiers</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.PlayScenario.html" title="game::sandbox::gameplay::play_scenario::PlayScenario struct">PlayScenario</a></td><td class="docblock-short"></td></tr></table></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":[["ChangeMode",""],["DepartureSummary",""],["EditScenarioModifiers",""],["PlayScenario",""]]});
|
||||
initSidebarItems({"struct":[["ChangeMode",""],["CountTrips",""],["DepartureSummary",""],["EditScenarioModifiers",""],["PlayScenario",""]]});
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,10 +1,10 @@
|
||||
<!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 `DepartureSummary` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, DepartureSummary"><title>DepartureSummary in game::sandbox::gameplay::play_scenario - 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="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 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><p class="location">Struct DepartureSummary</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.first_trip">first_trip</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new_state">new_state</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-SimpleState%3CApp%3E">SimpleState<App></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-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><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">gameplay</a>::<wbr><a href="index.html">play_scenario</a></p><div id="sidebar-vars" data-name="DepartureSummary" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" height="18" alt="Pick another theme!"></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" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">gameplay</a>::<wbr><a href="index.html">play_scenario</a>::<wbr><a class="struct" href="">DepartureSummary</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/gameplay/play_scenario.rs.html#529-531" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct">pub struct DepartureSummary {
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">gameplay</a>::<wbr><a href="index.html">play_scenario</a>::<wbr><a class="struct" href="">DepartureSummary</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/gameplay/play_scenario.rs.html#565-567" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct">pub struct DepartureSummary {
|
||||
first_trip: <a class="struct" href="../../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.first_trip" class="structfield small-section-header"><a href="#structfield.first_trip" class="anchor field"></a><code>first_trip: <a class="struct" href="../../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="struct.DepartureSummary.html" title="struct game::sandbox::gameplay::play_scenario::DepartureSummary">DepartureSummary</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#533-595" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.new_state" class="method"><code>pub fn <a href="#method.new_state" class="fnname">new_state</a>(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>>></code><a href="#method.new_state" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#534-594" title="goto source code">[src]</a></h4></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-SimpleState%3CApp%3E" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="struct.DepartureSummary.html" title="struct game::sandbox::gameplay::play_scenario::DepartureSummary">DepartureSummary</a></code><a href="#impl-SimpleState%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#597-610" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.on_click" class="method hidden trait-impl"><code>fn <a href="#tymethod.on_click" class="fnname">on_click</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> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>></code><a href="#method.on_click" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#598-609" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.first_trip" class="structfield small-section-header"><a href="#structfield.first_trip" class="anchor field"></a><code>first_trip: <a class="struct" href="../../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="struct.DepartureSummary.html" title="struct game::sandbox::gameplay::play_scenario::DepartureSummary">DepartureSummary</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#569-631" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.new_state" class="method"><code>pub fn <a href="#method.new_state" class="fnname">new_state</a>(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>>></code><a href="#method.new_state" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#570-630" title="goto source code">[src]</a></h4></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-SimpleState%3CApp%3E" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="struct.DepartureSummary.html" title="struct game::sandbox::gameplay::play_scenario::DepartureSummary">DepartureSummary</a></code><a href="#impl-SimpleState%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#633-646" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.on_click" class="method hidden trait-impl"><code>fn <a href="#tymethod.on_click" class="fnname">on_click</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> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>></code><a href="#method.on_click" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#634-645" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div><h4 id="method.panel_changed" class="method hidden trait-impl"><code>pub fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code><a href="#method.panel_changed" class="anchor"></a></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
|
@ -1,13 +1,13 @@
|
||||
<!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 `EditScenarioModifiers` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, EditScenarioModifiers"><title>EditScenarioModifiers in game::sandbox::gameplay::play_scenario - 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="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 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><p class="location">Struct EditScenarioModifiers</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.modifiers">modifiers</a><a href="#structfield.panel">panel</a><a href="#structfield.scenario_name">scenario_name</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new_state">new_state</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-State%3CApp%3E">State<App></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">gameplay</a>::<wbr><a href="index.html">play_scenario</a></p><div id="sidebar-vars" data-name="EditScenarioModifiers" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" height="18" alt="Pick another theme!"></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" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">gameplay</a>::<wbr><a href="index.html">play_scenario</a>::<wbr><a class="struct" href="">EditScenarioModifiers</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/gameplay/play_scenario.rs.html#220-224" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct">struct EditScenarioModifiers {
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">gameplay</a>::<wbr><a href="index.html">play_scenario</a>::<wbr><a class="struct" href="">EditScenarioModifiers</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/gameplay/play_scenario.rs.html#221-225" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct">struct EditScenarioModifiers {
|
||||
scenario_name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
modifiers: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../../sim/make/modifier/enum.ScenarioModifier.html" title="enum sim::make::modifier::ScenarioModifier">ScenarioModifier</a>>,
|
||||
panel: Panel,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.scenario_name" class="structfield small-section-header"><a href="#structfield.scenario_name" class="anchor field"></a><code>scenario_name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.modifiers" class="structfield small-section-header"><a href="#structfield.modifiers" class="anchor field"></a><code>modifiers: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../../sim/make/modifier/enum.ScenarioModifier.html" title="enum sim::make::modifier::ScenarioModifier">ScenarioModifier</a>></code></span><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="struct.EditScenarioModifiers.html" title="struct game::sandbox::gameplay::play_scenario::EditScenarioModifiers">EditScenarioModifiers</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#226-302" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.new_state" class="method"><code>pub fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> scenario_name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> modifiers: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../../sim/make/modifier/enum.ScenarioModifier.html" title="enum sim::make::modifier::ScenarioModifier">ScenarioModifier</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>>></code><a href="#method.new_state" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#227-301" title="goto source code">[src]</a></h4></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="struct.EditScenarioModifiers.html" title="struct game::sandbox::gameplay::play_scenario::EditScenarioModifiers">EditScenarioModifiers</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#304-395" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>></code><a href="#method.event" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#305-389" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#391-394" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.scenario_name" class="structfield small-section-header"><a href="#structfield.scenario_name" class="anchor field"></a><code>scenario_name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.modifiers" class="structfield small-section-header"><a href="#structfield.modifiers" class="anchor field"></a><code>modifiers: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../../sim/make/modifier/enum.ScenarioModifier.html" title="enum sim::make::modifier::ScenarioModifier">ScenarioModifier</a>></code></span><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="struct.EditScenarioModifiers.html" title="struct game::sandbox::gameplay::play_scenario::EditScenarioModifiers">EditScenarioModifiers</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#227-303" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.new_state" class="method"><code>pub fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> scenario_name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> modifiers: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../../sim/make/modifier/enum.ScenarioModifier.html" title="enum sim::make::modifier::ScenarioModifier">ScenarioModifier</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>>></code><a href="#method.new_state" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#228-302" title="goto source code">[src]</a></h4></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="struct.EditScenarioModifiers.html" title="struct game::sandbox::gameplay::play_scenario::EditScenarioModifiers">EditScenarioModifiers</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#305-396" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>></code><a href="#method.event" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#306-390" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw" class="anchor"></a><a class="srclink" href="../../../../src/game/sandbox/gameplay/play_scenario.rs.html#392-395" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer" class="method hidden trait-impl"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer" class="anchor"></a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.on_destroy" class="method hidden trait-impl"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code><a href="#method.on_destroy" class="anchor"></a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></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"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.EditScenarioModifiers.html" title="struct game::sandbox::gameplay::play_scenario::EditScenarioModifiers">EditScenarioModifiers</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a></h3><h3 id="impl-Send" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.EditScenarioModifiers.html" title="struct game::sandbox::gameplay::play_scenario::EditScenarioModifiers">EditScenarioModifiers</a></code><a href="#impl-Send" class="anchor"></a></h3><h3 id="impl-Sync" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.EditScenarioModifiers.html" title="struct game::sandbox::gameplay::play_scenario::EditScenarioModifiers">EditScenarioModifiers</a></code><a href="#impl-Sync" class="anchor"></a></h3><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.EditScenarioModifiers.html" title="struct game::sandbox::gameplay::play_scenario::EditScenarioModifiers">EditScenarioModifiers</a></code><a href="#impl-Unpin" class="anchor"></a></h3><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.EditScenarioModifiers.html" title="struct game::sandbox::gameplay::play_scenario::EditScenarioModifiers">EditScenarioModifiers</a></code><a href="#impl-UnwindSafe" class="anchor"></a></h3></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><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.type_id" class="method hidden trait-impl"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a href="#method.type_id" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
|
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 @@
|
||||
<!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 `area_under_curve` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, area_under_curve"><title>area_under_curve in game::sandbox::time_warp - 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="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">sandbox</a>::<wbr><a href="index.html">time_warp</a></p><div id="sidebar-vars" data-name="area_under_curve" 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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></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" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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">sandbox</a>::<wbr><a href="index.html">time_warp</a>::<wbr><a class="fn" href="">area_under_curve</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/time_warp.rs.html#397-418" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn area_under_curve(raw: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>, width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></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>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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">sandbox</a>::<wbr><a href="index.html">time_warp</a>::<wbr><a class="fn" href="">area_under_curve</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/time_warp.rs.html#402-423" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn area_under_curve(raw: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>, width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></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,5 +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 `build_jump_to_delay_button` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, build_jump_to_delay_button"><title>build_jump_to_delay_button in game::sandbox::time_warp - 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="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">sandbox</a>::<wbr><a href="index.html">time_warp</a></p><div id="sidebar-vars" data-name="build_jump_to_delay_button" 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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></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" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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">sandbox</a>::<wbr><a href="index.html">time_warp</a>::<wbr><a class="fn" href="">build_jump_to_delay_button</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/time_warp.rs.html#443-451" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn build_jump_to_delay_button(ctx: &EventCtx<'_>, delay: <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>) -> Widget</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>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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">sandbox</a>::<wbr><a href="index.html">time_warp</a>::<wbr><a class="fn" href="">build_jump_to_delay_button</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/time_warp.rs.html#448-456" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn build_jump_to_delay_button(ctx: &EventCtx<'_>, delay: <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>) -> Widget</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,5 +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 `build_jump_to_time_btn` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, build_jump_to_time_btn"><title>build_jump_to_time_btn in game::sandbox::time_warp - 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="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">sandbox</a>::<wbr><a href="index.html">time_warp</a></p><div id="sidebar-vars" data-name="build_jump_to_time_btn" 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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></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" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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">sandbox</a>::<wbr><a href="index.html">time_warp</a>::<wbr><a class="fn" href="">build_jump_to_time_btn</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/time_warp.rs.html#433-441" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn build_jump_to_time_btn(ctx: &EventCtx<'_>, target: <a class="struct" href="../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a>) -> Widget</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>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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">sandbox</a>::<wbr><a href="index.html">time_warp</a>::<wbr><a class="fn" href="">build_jump_to_time_btn</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/time_warp.rs.html#438-446" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn build_jump_to_time_btn(ctx: &EventCtx<'_>, target: <a class="struct" href="../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a>) -> Widget</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,5 +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 `compare_count` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, compare_count"><title>compare_count in game::sandbox::time_warp - 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="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">sandbox</a>::<wbr><a href="index.html">time_warp</a></p><div id="sidebar-vars" data-name="compare_count" 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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></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" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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">sandbox</a>::<wbr><a href="index.html">time_warp</a>::<wbr><a class="fn" href="">compare_count</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/time_warp.rs.html#421-431" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn compare_count(after: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, before: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></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>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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">sandbox</a>::<wbr><a href="index.html">time_warp</a>::<wbr><a class="fn" href="">compare_count</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/time_warp.rs.html#426-436" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn compare_count(after: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, before: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></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,7 +1,7 @@
|
||||
<!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 `time_warp` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, time_warp"><title>game::sandbox::time_warp - 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="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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><p class="location">Module time_warp</p><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><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">sandbox</a></p><div id="sidebar-vars" data-name="time_warp" 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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></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" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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">sandbox</a>::<wbr><a class="mod" href="">time_warp</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/time_warp.rs.html#1-451" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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">sandbox</a>::<wbr><a class="mod" href="">time_warp</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/time_warp.rs.html#1-456" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.JumpToTime.html" title="game::sandbox::time_warp::JumpToTime struct">JumpToTime</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.TimeWarpScreen.html" title="game::sandbox::time_warp::TimeWarpScreen struct">TimeWarpScreen</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||
<table><tr class="module-item"><td><a class="fn" href="fn.area_under_curve.html" title="game::sandbox::time_warp::area_under_curve fn">area_under_curve</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.build_jump_to_delay_button.html" title="game::sandbox::time_warp::build_jump_to_delay_button fn">build_jump_to_delay_button</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.build_jump_to_time_btn.html" title="game::sandbox::time_warp::build_jump_to_time_btn fn">build_jump_to_time_btn</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.compare_count.html" title="game::sandbox::time_warp::compare_count fn">compare_count</a></td><td class="docblock-short"></td></tr></table></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>
|
@ -7,8 +7,8 @@
|
||||
maybe_mode: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../gameplay/enum.GameplayMode.html" title="enum game::sandbox::gameplay::GameplayMode">GameplayMode</a>>,
|
||||
tabs: TabController,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.target" class="structfield small-section-header"><a href="#structfield.target" class="anchor field"></a><code>target: <a class="struct" href="../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a></code></span><span id="structfield.maybe_mode" class="structfield small-section-header"><a href="#structfield.maybe_mode" class="anchor field"></a><code>maybe_mode: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../gameplay/enum.GameplayMode.html" title="enum game::sandbox::gameplay::GameplayMode">GameplayMode</a>></code></span><span id="structfield.tabs" class="structfield small-section-header"><a href="#structfield.tabs" class="anchor field"></a><code>tabs: TabController</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="struct.JumpToTime.html" title="struct game::sandbox::time_warp::JumpToTime">JumpToTime</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#25-106" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.new_state" class="method"><code>pub fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>, <br> maybe_mode: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../gameplay/enum.GameplayMode.html" title="enum game::sandbox::gameplay::GameplayMode">GameplayMode</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>>></code><a href="#method.new_state" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#26-105" title="goto source code">[src]</a></h4></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="struct.JumpToTime.html" title="struct game::sandbox::time_warp::JumpToTime">JumpToTime</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#108-201" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>></code><a href="#method.event" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#109-195" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#197-200" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.target" class="structfield small-section-header"><a href="#structfield.target" class="anchor field"></a><code>target: <a class="struct" href="../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a></code></span><span id="structfield.maybe_mode" class="structfield small-section-header"><a href="#structfield.maybe_mode" class="anchor field"></a><code>maybe_mode: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../gameplay/enum.GameplayMode.html" title="enum game::sandbox::gameplay::GameplayMode">GameplayMode</a>></code></span><span id="structfield.tabs" class="structfield small-section-header"><a href="#structfield.tabs" class="anchor field"></a><code>tabs: TabController</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="struct.JumpToTime.html" title="struct game::sandbox::time_warp::JumpToTime">JumpToTime</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#25-110" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.new_state" class="method"><code>pub fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>, <br> maybe_mode: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../gameplay/enum.GameplayMode.html" title="enum game::sandbox::gameplay::GameplayMode">GameplayMode</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>>></code><a href="#method.new_state" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#26-109" title="goto source code">[src]</a></h4></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="struct.JumpToTime.html" title="struct game::sandbox::time_warp::JumpToTime">JumpToTime</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#112-206" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>></code><a href="#method.event" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#113-200" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#202-205" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer" class="method hidden trait-impl"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer" class="anchor"></a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.on_destroy" class="method hidden trait-impl"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code><a href="#method.on_destroy" class="anchor"></a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></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"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.JumpToTime.html" title="struct game::sandbox::time_warp::JumpToTime">JumpToTime</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a></h3><h3 id="impl-Send" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.JumpToTime.html" title="struct game::sandbox::time_warp::JumpToTime">JumpToTime</a></code><a href="#impl-Send" class="anchor"></a></h3><h3 id="impl-Sync" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.JumpToTime.html" title="struct game::sandbox::time_warp::JumpToTime">JumpToTime</a></code><a href="#impl-Sync" class="anchor"></a></h3><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.JumpToTime.html" title="struct game::sandbox::time_warp::JumpToTime">JumpToTime</a></code><a href="#impl-Unpin" class="anchor"></a></h3><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.JumpToTime.html" title="struct game::sandbox::time_warp::JumpToTime">JumpToTime</a></code><a href="#impl-UnwindSafe" class="anchor"></a></h3></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><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.type_id" class="method hidden trait-impl"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a href="#method.type_id" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
|
@ -1,17 +1,17 @@
|
||||
<!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 `TimeWarpScreen` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, TimeWarpScreen"><title>TimeWarpScreen in game::sandbox::time_warp - 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="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 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><p class="location">Struct TimeWarpScreen</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.halt_upon_delay">halt_upon_delay</a><a href="#structfield.panel">panel</a><a href="#structfield.sim_time_started">sim_time_started</a><a href="#structfield.target">target</a><a href="#structfield.wall_time_started">wall_time_started</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new_state">new_state</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-State%3CApp%3E">State<App></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">sandbox</a>::<wbr><a href="index.html">time_warp</a></p><div id="sidebar-vars" data-name="TimeWarpScreen" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></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" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../../index.html">game</a>::<wbr><a href="../index.html">sandbox</a>::<wbr><a href="index.html">time_warp</a>::<wbr><a class="struct" href="">TimeWarpScreen</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/time_warp.rs.html#204-210" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct">pub struct TimeWarpScreen {
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../../index.html">game</a>::<wbr><a href="../index.html">sandbox</a>::<wbr><a href="index.html">time_warp</a>::<wbr><a class="struct" href="">TimeWarpScreen</a><button id="copy-path" onclick="copy_path(this)">⎘</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/sandbox/time_warp.rs.html#209-215" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct">pub struct TimeWarpScreen {
|
||||
target: <a class="struct" href="../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a>,
|
||||
wall_time_started: Instant,
|
||||
sim_time_started: <a class="struct" href="../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a>,
|
||||
halt_upon_delay: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>>,
|
||||
panel: Panel,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.target" class="structfield small-section-header"><a href="#structfield.target" class="anchor field"></a><code>target: <a class="struct" href="../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a></code></span><span id="structfield.wall_time_started" class="structfield small-section-header"><a href="#structfield.wall_time_started" class="anchor field"></a><code>wall_time_started: Instant</code></span><span id="structfield.sim_time_started" class="structfield small-section-header"><a href="#structfield.sim_time_started" class="anchor field"></a><code>sim_time_started: <a class="struct" href="../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a></code></span><span id="structfield.halt_upon_delay" class="structfield small-section-header"><a href="#structfield.halt_upon_delay" class="anchor field"></a><code>halt_upon_delay: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>></code></span><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="struct.TimeWarpScreen.html" title="struct game::sandbox::time_warp::TimeWarpScreen">TimeWarpScreen</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#212-261" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.new_state" class="method"><code>pub fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>, <br> target: <a class="struct" href="../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a>, <br> halt_upon_delay: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>>></code><a href="#method.new_state" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#213-260" title="goto source code">[src]</a></h4></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="struct.TimeWarpScreen.html" title="struct game::sandbox::time_warp::TimeWarpScreen">TimeWarpScreen</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#263-395" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>></code><a href="#method.event" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#264-371" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw_baselayer" class="method hidden trait-impl"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#373-375" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.draw" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#377-386" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.on_destroy" class="method hidden trait-impl"><code>fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, _: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.on_destroy" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#388-394" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.target" class="structfield small-section-header"><a href="#structfield.target" class="anchor field"></a><code>target: <a class="struct" href="../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a></code></span><span id="structfield.wall_time_started" class="structfield small-section-header"><a href="#structfield.wall_time_started" class="anchor field"></a><code>wall_time_started: Instant</code></span><span id="structfield.sim_time_started" class="structfield small-section-header"><a href="#structfield.sim_time_started" class="anchor field"></a><code>sim_time_started: <a class="struct" href="../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a></code></span><span id="structfield.halt_upon_delay" class="structfield small-section-header"><a href="#structfield.halt_upon_delay" class="anchor field"></a><code>halt_upon_delay: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>></code></span><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="struct.TimeWarpScreen.html" title="struct game::sandbox::time_warp::TimeWarpScreen">TimeWarpScreen</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#217-266" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.new_state" class="method"><code>pub fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>, <br> target: <a class="struct" href="../../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a>, <br> halt_upon_delay: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>>></code><a href="#method.new_state" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#218-265" title="goto source code">[src]</a></h4></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="struct.TimeWarpScreen.html" title="struct game::sandbox::time_warp::TimeWarpScreen">TimeWarpScreen</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#268-400" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.event" class="method hidden trait-impl"><code>fn <a href="#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>></code><a href="#method.event" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#269-376" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw_baselayer" class="method hidden trait-impl"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a href="#method.draw_baselayer" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#378-380" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.draw" class="method hidden trait-impl"><code>fn <a href="#tymethod.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.draw" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#382-391" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.on_destroy" class="method hidden trait-impl"><code>fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, _: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../app/struct.App.html" title="struct game::app::App">App</a>)</code><a href="#method.on_destroy" class="anchor"></a><a class="srclink" href="../../../src/game/sandbox/time_warp.rs.html#393-399" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></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"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.TimeWarpScreen.html" title="struct game::sandbox::time_warp::TimeWarpScreen">TimeWarpScreen</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a></h3><h3 id="impl-Send" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.TimeWarpScreen.html" title="struct game::sandbox::time_warp::TimeWarpScreen">TimeWarpScreen</a></code><a href="#impl-Send" class="anchor"></a></h3><h3 id="impl-Sync" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.TimeWarpScreen.html" title="struct game::sandbox::time_warp::TimeWarpScreen">TimeWarpScreen</a></code><a href="#impl-Sync" class="anchor"></a></h3><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.TimeWarpScreen.html" title="struct game::sandbox::time_warp::TimeWarpScreen">TimeWarpScreen</a></code><a href="#impl-Unpin" class="anchor"></a></h3><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.TimeWarpScreen.html" title="struct game::sandbox::time_warp::TimeWarpScreen">TimeWarpScreen</a></code><a href="#impl-UnwindSafe" class="anchor"></a></h3></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><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.type_id" class="method hidden trait-impl"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a href="#method.type_id" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208-213" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.borrow" class="method hidden trait-impl"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a href="#method.borrow" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#216-220" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden trait-impl"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a href="#method.borrow_mut" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
|
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
@ -365,7 +365,6 @@
|
||||
<span id="362">362</span>
|
||||
<span id="363">363</span>
|
||||
<span id="364">364</span>
|
||||
<span id="365">365</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">abstutil</span>::{<span class="ident">prettyprint_usize</span>, <span class="ident">Counter</span>};
|
||||
<span class="kw">use</span> <span class="ident">collisions</span>::{<span class="ident">CollisionDataset</span>, <span class="ident">Severity</span>};
|
||||
@ -467,11 +466,11 @@
|
||||
),
|
||||
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
|
||||
<span class="string">"Between:"</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>).<span class="ident">margin_right</span>(<span class="number">20</span>),
|
||||
<span class="ident">Slider::area</span>(<span class="ident">ctx</span>, <span class="number">0.1</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>, <span class="number">0.0</span>).<span class="ident">named</span>(<span class="string">"time1"</span>),
|
||||
<span class="ident">Slider::area</span>(<span class="ident">ctx</span>, <span class="number">0.1</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>, <span class="number">0.0</span>, <span class="string">"time1"</span>),
|
||||
]),
|
||||
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
|
||||
<span class="string">"and:"</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>).<span class="ident">margin_right</span>(<span class="number">20</span>),
|
||||
<span class="ident">Slider::area</span>(<span class="ident">ctx</span>, <span class="number">0.1</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>, <span class="number">1.0</span>).<span class="ident">named</span>(<span class="string">"time2"</span>),
|
||||
<span class="ident">Slider::area</span>(<span class="ident">ctx</span>, <span class="number">0.1</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>, <span class="number">1.0</span>, <span class="string">"time2"</span>),
|
||||
]),
|
||||
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
|
||||
<span class="string">"Severity:"</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>).<span class="ident">margin_right</span>(<span class="number">20</span>),
|
||||
@ -637,32 +636,31 @@
|
||||
<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="ident">ctx</span>.<span class="ident">canvas_movement</span>();
|
||||
|
||||
<span class="kw">let</span> <span class="ident">old_filters</span> <span class="op">=</span> <span class="ident">Filters::from_controls</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">panel</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="kw">match</span> <span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">event</span>(<span class="ident">ctx</span>) {
|
||||
<span class="ident">Outcome::Clicked</span>(<span class="ident">x</span>) <span class="op">=</span><span class="op">></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="kw">_</span> <span class="op">=</span><span class="op">></span> <span class="macro">unreachable!</span>(),
|
||||
},
|
||||
<span class="ident">Outcome::Changed</span>(<span class="kw">_</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="ident">filters</span> <span class="op">=</span> <span class="ident">Filters::from_controls</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">panel</span>);
|
||||
<span class="kw">let</span> <span class="ident">indices</span> <span class="op">=</span> <span class="ident">filters</span>.<span class="ident">apply</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">data</span>);
|
||||
<span class="kw">let</span> <span class="ident">count</span> <span class="op">=</span> <span class="ident">indices</span>.<span class="ident">len</span>();
|
||||
<span class="kw">let</span> (<span class="ident">dataviz</span>, <span class="ident">tooltips</span>) <span class="op">=</span> <span class="kw">if</span> <span class="ident">filters</span>.<span class="ident">show_individual</span> {
|
||||
<span class="ident">Dataviz::individual</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">data</span>, <span class="ident">indices</span>)
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">Dataviz::aggregated</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">data</span>, <span class="ident">indices</span>)
|
||||
};
|
||||
<span class="self">self</span>.<span class="ident">dataviz</span> <span class="op">=</span> <span class="ident">dataviz</span>;
|
||||
<span class="self">self</span>.<span class="ident">tooltips</span> <span class="op">=</span> <span class="ident">tooltips</span>;
|
||||
<span class="kw">let</span> <span class="ident">count</span> <span class="op">=</span> <span class="macro">format!</span>(<span class="string">"{} collisions"</span>, <span class="ident">prettyprint_usize</span>(<span class="ident">count</span>)).<span class="ident">text_widget</span>(<span class="ident">ctx</span>);
|
||||
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">replace</span>(<span class="ident">ctx</span>, <span class="string">"count"</span>, <span class="ident">count</span>);
|
||||
}
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="self">self</span>.<span class="ident">tooltips</span>.<span class="ident">event</span>(<span class="ident">ctx</span>);
|
||||
}
|
||||
}
|
||||
<span class="comment">// TODO Should fiddling with sliders produce Outcome::Changed?</span>
|
||||
<span class="kw">let</span> <span class="ident">filters</span> <span class="op">=</span> <span class="ident">Filters::from_controls</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">panel</span>);
|
||||
<span class="kw">if</span> <span class="ident">filters</span> <span class="op">!</span><span class="op">=</span> <span class="ident">old_filters</span> {
|
||||
<span class="kw">let</span> <span class="ident">indices</span> <span class="op">=</span> <span class="ident">filters</span>.<span class="ident">apply</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">data</span>);
|
||||
<span class="kw">let</span> <span class="ident">count</span> <span class="op">=</span> <span class="ident">indices</span>.<span class="ident">len</span>();
|
||||
<span class="kw">let</span> (<span class="ident">dataviz</span>, <span class="ident">tooltips</span>) <span class="op">=</span> <span class="kw">if</span> <span class="ident">filters</span>.<span class="ident">show_individual</span> {
|
||||
<span class="ident">Dataviz::individual</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">data</span>, <span class="ident">indices</span>)
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">Dataviz::aggregated</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">data</span>, <span class="ident">indices</span>)
|
||||
};
|
||||
<span class="self">self</span>.<span class="ident">dataviz</span> <span class="op">=</span> <span class="ident">dataviz</span>;
|
||||
<span class="self">self</span>.<span class="ident">tooltips</span> <span class="op">=</span> <span class="ident">tooltips</span>;
|
||||
<span class="kw">let</span> <span class="ident">count</span> <span class="op">=</span> <span class="macro">format!</span>(<span class="string">"{} collisions"</span>, <span class="ident">prettyprint_usize</span>(<span class="ident">count</span>)).<span class="ident">text_widget</span>(<span class="ident">ctx</span>);
|
||||
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">replace</span>(<span class="ident">ctx</span>, <span class="string">"count"</span>, <span class="ident">count</span>);
|
||||
}
|
||||
|
||||
<span class="self">self</span>.<span class="ident">tooltips</span>.<span class="ident">event</span>(<span class="ident">ctx</span>);
|
||||
|
||||
<span class="ident">Transition::Keep</span>
|
||||
}
|
||||
|
@ -178,7 +178,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.53.0 (53cb7b09b 2021-06-17)"</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"Tue, 13 Jul 2021 16:10:23 +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"Tue, 13 Jul 2021 19:45:17 +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>;
|
||||
|
@ -464,9 +464,9 @@
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="number">0.15</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>,
|
||||
<span class="ident">opts</span>.<span class="ident">time1</span>.<span class="ident">to_percent</span>(<span class="ident">end_of_day</span>),
|
||||
<span class="string">"time1"</span>,
|
||||
)
|
||||
.<span class="ident">align_right</span>()
|
||||
.<span class="ident">named</span>(<span class="string">"time1"</span>),
|
||||
.<span class="ident">align_right</span>(),
|
||||
]));
|
||||
<span class="ident">col</span>.<span class="ident">push</span>(<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
|
||||
<span class="string">"and:"</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>).<span class="ident">margin_right</span>(<span class="number">20</span>),
|
||||
@ -474,9 +474,9 @@
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="number">0.15</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>,
|
||||
<span class="ident">opts</span>.<span class="ident">time2</span>.<span class="ident">to_percent</span>(<span class="ident">end_of_day</span>),
|
||||
<span class="string">"time2"</span>,
|
||||
)
|
||||
.<span class="ident">align_right</span>()
|
||||
.<span class="ident">named</span>(<span class="string">"time2"</span>),
|
||||
.<span class="ident">align_right</span>(),
|
||||
]));
|
||||
<span class="ident">col</span>.<span class="ident">push</span>(<span class="ident">checkbox_per_mode</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="ident">opts</span>.<span class="ident">modes</span>));
|
||||
<span class="ident">col</span>.<span class="ident">push</span>(<span class="ident">Toggle::checkbox</span>(<span class="ident">ctx</span>, <span class="string">"show delays"</span>, <span class="prelude-val">None</span>, <span class="ident">opts</span>.<span class="ident">show_delays</span>));
|
||||
|
@ -1387,11 +1387,11 @@
|
||||
<span class="ident">Toggle::switch</span>(<span class="ident">ctx</span>, <span class="string">"include borders"</span>, <span class="prelude-val">None</span>, <span class="bool-val">true</span>),
|
||||
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
|
||||
<span class="string">"Departing from:"</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>).<span class="ident">margin_right</span>(<span class="number">20</span>),
|
||||
<span class="ident">Slider::area</span>(<span class="ident">ctx</span>, <span class="number">0.15</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>, <span class="number">0.0</span>).<span class="ident">named</span>(<span class="string">"depart from"</span>),
|
||||
<span class="ident">Slider::area</span>(<span class="ident">ctx</span>, <span class="number">0.15</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>, <span class="number">0.0</span>, <span class="string">"depart from"</span>),
|
||||
]),
|
||||
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
|
||||
<span class="string">"Departing until:"</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>).<span class="ident">margin_right</span>(<span class="number">20</span>),
|
||||
<span class="ident">Slider::area</span>(<span class="ident">ctx</span>, <span class="number">0.15</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>, <span class="number">1.0</span>).<span class="ident">named</span>(<span class="string">"depart until"</span>),
|
||||
<span class="ident">Slider::area</span>(<span class="ident">ctx</span>, <span class="number">0.15</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>, <span class="number">1.0</span>, <span class="string">"depart until"</span>),
|
||||
]),
|
||||
<span class="ident">checkbox_per_mode</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="ident">TripMode::all</span>().<span class="ident">into_iter</span>().<span class="ident">collect</span>()),
|
||||
<span class="ident">ColorLegend::gradient</span>(<span class="ident">ctx</span>, <span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">good_to_bad_red</span>, <span class="macro">vec!</span>[<span class="string">"0"</span>, <span class="string">"0"</span>]).<span class="ident">named</span>(<span class="string">"scale"</span>),
|
||||
|
@ -611,11 +611,91 @@
|
||||
<span id="608">608</span>
|
||||
<span id="609">609</span>
|
||||
<span id="610">610</span>
|
||||
<span id="611">611</span>
|
||||
<span id="612">612</span>
|
||||
<span id="613">613</span>
|
||||
<span id="614">614</span>
|
||||
<span id="615">615</span>
|
||||
<span id="616">616</span>
|
||||
<span id="617">617</span>
|
||||
<span id="618">618</span>
|
||||
<span id="619">619</span>
|
||||
<span id="620">620</span>
|
||||
<span id="621">621</span>
|
||||
<span id="622">622</span>
|
||||
<span id="623">623</span>
|
||||
<span id="624">624</span>
|
||||
<span id="625">625</span>
|
||||
<span id="626">626</span>
|
||||
<span id="627">627</span>
|
||||
<span id="628">628</span>
|
||||
<span id="629">629</span>
|
||||
<span id="630">630</span>
|
||||
<span id="631">631</span>
|
||||
<span id="632">632</span>
|
||||
<span id="633">633</span>
|
||||
<span id="634">634</span>
|
||||
<span id="635">635</span>
|
||||
<span id="636">636</span>
|
||||
<span id="637">637</span>
|
||||
<span id="638">638</span>
|
||||
<span id="639">639</span>
|
||||
<span id="640">640</span>
|
||||
<span id="641">641</span>
|
||||
<span id="642">642</span>
|
||||
<span id="643">643</span>
|
||||
<span id="644">644</span>
|
||||
<span id="645">645</span>
|
||||
<span id="646">646</span>
|
||||
<span id="647">647</span>
|
||||
<span id="648">648</span>
|
||||
<span id="649">649</span>
|
||||
<span id="650">650</span>
|
||||
<span id="651">651</span>
|
||||
<span id="652">652</span>
|
||||
<span id="653">653</span>
|
||||
<span id="654">654</span>
|
||||
<span id="655">655</span>
|
||||
<span id="656">656</span>
|
||||
<span id="657">657</span>
|
||||
<span id="658">658</span>
|
||||
<span id="659">659</span>
|
||||
<span id="660">660</span>
|
||||
<span id="661">661</span>
|
||||
<span id="662">662</span>
|
||||
<span id="663">663</span>
|
||||
<span id="664">664</span>
|
||||
<span id="665">665</span>
|
||||
<span id="666">666</span>
|
||||
<span id="667">667</span>
|
||||
<span id="668">668</span>
|
||||
<span id="669">669</span>
|
||||
<span id="670">670</span>
|
||||
<span id="671">671</span>
|
||||
<span id="672">672</span>
|
||||
<span id="673">673</span>
|
||||
<span id="674">674</span>
|
||||
<span id="675">675</span>
|
||||
<span id="676">676</span>
|
||||
<span id="677">677</span>
|
||||
<span id="678">678</span>
|
||||
<span id="679">679</span>
|
||||
<span id="680">680</span>
|
||||
<span id="681">681</span>
|
||||
<span id="682">682</span>
|
||||
<span id="683">683</span>
|
||||
<span id="684">684</span>
|
||||
<span id="685">685</span>
|
||||
<span id="686">686</span>
|
||||
<span id="687">687</span>
|
||||
<span id="688">688</span>
|
||||
<span id="689">689</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
|
||||
<span class="kw">use</span> <span class="ident">std::collections</span>::{<span class="ident">BTreeMap</span>, <span class="ident">BTreeSet</span>};
|
||||
|
||||
<span class="kw">use</span> <span class="ident">maplit::btreeset</span>;
|
||||
|
||||
<span class="kw">use</span> <span class="ident">abstutil::prettyprint_usize</span>;
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Duration</span>, <span class="ident">Time</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_gui::tools</span>::{
|
||||
<span class="ident">grey_out_map</span>, <span class="ident">nice_map_name</span>, <span class="ident">ChooseSomething</span>, <span class="ident">CityPicker</span>, <span class="ident">PopupMsg</span>, <span class="ident">URLManager</span>,
|
||||
@ -1012,6 +1092,7 @@
|
||||
<span class="ident">panel</span>: <span class="ident">Panel</span>,
|
||||
<span class="ident">scenario_name</span>: <span class="ident">String</span>,
|
||||
<span class="ident">modifiers</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">ScenarioModifier</span><span class="op">></span>,
|
||||
<span class="ident">count_trips</span>: <span class="ident">CountTrips</span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">ChangeMode</span> {
|
||||
@ -1021,9 +1102,10 @@
|
||||
<span class="ident">scenario_name</span>: <span class="ident">String</span>,
|
||||
<span class="ident">modifiers</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">ScenarioModifier</span><span class="op">></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="ident">Box::new</span>(<span class="ident">ChangeMode</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">state</span> <span class="op">=</span> <span class="ident">ChangeMode</span> {
|
||||
<span class="ident">scenario_name</span>,
|
||||
<span class="ident">modifiers</span>,
|
||||
<span class="ident">count_trips</span>: <span class="ident">CountTrips::new</span>(<span class="ident">app</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">Line</span>(<span class="string">"Change trip mode"</span>).<span class="ident">small_heading</span>().<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
|
||||
@ -1036,12 +1118,13 @@
|
||||
<span class="ident">checkbox_per_mode</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="macro">btreeset!</span> { <span class="ident">TripMode::Drive</span> }),
|
||||
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
|
||||
<span class="string">"Departing from:"</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">Slider::area</span>(<span class="ident">ctx</span>, <span class="number">0.25</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>, <span class="number">0.0</span>).<span class="ident">named</span>(<span class="string">"depart from"</span>),
|
||||
<span class="ident">Slider::area</span>(<span class="ident">ctx</span>, <span class="number">0.25</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>, <span class="number">0.0</span>, <span class="string">"depart from"</span>),
|
||||
]),
|
||||
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
|
||||
<span class="string">"Departing until:"</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">Slider::area</span>(<span class="ident">ctx</span>, <span class="number">0.25</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>, <span class="number">0.3</span>).<span class="ident">named</span>(<span class="string">"depart to"</span>),
|
||||
<span class="ident">Slider::area</span>(<span class="ident">ctx</span>, <span class="number">0.25</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>, <span class="number">0.3</span>, <span class="string">"depart to"</span>),
|
||||
]),
|
||||
<span class="string">"Matching trips:"</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>).<span class="ident">named</span>(<span class="string">"count"</span>),
|
||||
<span class="ident">Widget::horiz_separator</span>(<span class="ident">ctx</span>, <span class="number">1.0</span>),
|
||||
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
|
||||
<span class="string">"Change to trip type:"</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>),
|
||||
@ -1069,7 +1152,50 @@
|
||||
]))
|
||||
.<span class="ident">exact_size_percent</span>(<span class="number">80</span>, <span class="number">80</span>)
|
||||
.<span class="ident">build</span>(<span class="ident">ctx</span>),
|
||||
})
|
||||
};
|
||||
<span class="ident">state</span>.<span class="ident">recalc_count</span>(<span class="ident">ctx</span>, <span class="ident">app</span>);
|
||||
<span class="ident">Box::new</span>(<span class="ident">state</span>)
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">get_filters</span>(<span class="kw-2">&</span><span class="self">self</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">BTreeSet</span><span class="op"><</span><span class="ident">TripMode</span><span class="op">></span>, (<span class="ident">Time</span>, <span class="ident">Time</span>)) {
|
||||
<span class="kw">let</span> <span class="ident">to_mode</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">dropdown_value</span>::<span class="op"><</span><span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">TripMode</span><span class="op">></span>, <span class="kw">_</span><span class="op">></span>(<span class="string">"to_mode"</span>);
|
||||
<span class="kw">let</span> (<span class="ident">p1</span>, <span class="ident">p2</span>) <span class="op">=</span> (
|
||||
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">slider</span>(<span class="string">"depart from"</span>).<span class="ident">get_percent</span>(),
|
||||
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">slider</span>(<span class="string">"depart to"</span>).<span class="ident">get_percent</span>(),
|
||||
);
|
||||
<span class="kw">let</span> <span class="ident">departure_filter</span> <span class="op">=</span> (
|
||||
<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">get_end_of_day</span>().<span class="ident">percent_of</span>(<span class="ident">p1</span>),
|
||||
<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">get_end_of_day</span>().<span class="ident">percent_of</span>(<span class="ident">p2</span>),
|
||||
);
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">from_modes</span> <span class="op">=</span> <span class="ident">TripMode::all</span>()
|
||||
.<span class="ident">into_iter</span>()
|
||||
.<span class="ident">filter</span>(<span class="op">|</span><span class="ident">m</span><span class="op">|</span> <span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">is_checked</span>(<span class="ident">m</span>.<span class="ident">ongoing_verb</span>()))
|
||||
.<span class="ident">collect</span>::<span class="op"><</span><span class="ident">BTreeSet</span><span class="op"><</span><span class="kw">_</span><span class="op">></span><span class="op">></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">m</span>) <span class="op">=</span> <span class="ident">to_mode</span> {
|
||||
<span class="ident">from_modes</span>.<span class="ident">remove</span>(<span class="ident">m</span>);
|
||||
}
|
||||
(<span class="ident">from_modes</span>, <span class="ident">departure_filter</span>)
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">recalc_count</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="ident">App</span>) {
|
||||
<span class="kw">let</span> (<span class="ident">modes</span>, (<span class="ident">t1</span>, <span class="ident">t2</span>)) <span class="op">=</span> <span class="self">self</span>.<span class="ident">get_filters</span>(<span class="ident">app</span>);
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">cnt</span> <span class="op">=</span> <span class="number">0</span>;
|
||||
<span class="kw">for</span> <span class="ident">m</span> <span class="kw">in</span> <span class="ident">modes</span> {
|
||||
<span class="ident">cnt</span> <span class="op">+</span><span class="op">=</span> <span class="self">self</span>.<span class="ident">count_trips</span>.<span class="ident">count</span>(<span class="ident">m</span>, <span class="ident">t1</span>, <span class="ident">t2</span>);
|
||||
}
|
||||
<span class="kw">let</span> <span class="ident">pct_ppl</span>: <span class="ident">usize</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">spinner</span>(<span class="string">"pct_ppl"</span>);
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text::from</span>(<span class="macro">format!</span>(<span class="string">"Matching trips: {}"</span>, <span class="ident">prettyprint_usize</span>(<span class="ident">cnt</span>)));
|
||||
<span class="kw">let</span> <span class="ident">adjusted_cnt</span> <span class="op">=</span> ((<span class="ident">cnt</span> <span class="kw">as</span> <span class="ident">f64</span>) <span class="op">*</span> (<span class="ident">pct_ppl</span> <span class="kw">as</span> <span class="ident">f64</span>) <span class="op">/</span> <span class="number">100.0</span>) <span class="kw">as</span> <span class="ident">usize</span>;
|
||||
<span class="ident">txt</span>.<span class="ident">append</span>(
|
||||
<span class="ident">Line</span>(<span class="macro">format!</span>(
|
||||
<span class="string">" ({}% is {})"</span>,
|
||||
<span class="ident">pct_ppl</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">adjusted_cnt</span>)
|
||||
))
|
||||
.<span class="ident">secondary</span>(),
|
||||
);
|
||||
<span class="kw">let</span> <span class="ident">label</span> <span class="op">=</span> <span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>);
|
||||
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">replace</span>(<span class="ident">ctx</span>, <span class="string">"count"</span>, <span class="ident">label</span>);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1079,24 +1205,9 @@
|
||||
<span class="ident">Outcome::Clicked</span>(<span class="ident">x</span>) <span class="op">=</span><span class="op">></span> <span class="kw">match</span> <span class="ident">x</span>.<span class="ident">as_ref</span>() {
|
||||
<span class="string">"Discard changes"</span> <span class="op">=</span><span class="op">></span> <span class="ident">Transition::Pop</span>,
|
||||
<span class="string">"Apply"</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">let</span> (<span class="ident">from_modes</span>, <span class="ident">departure_filter</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">get_filters</span>(<span class="ident">app</span>);
|
||||
<span class="kw">let</span> <span class="ident">to_mode</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">dropdown_value</span>::<span class="op"><</span><span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">TripMode</span><span class="op">></span>, <span class="kw">_</span><span class="op">></span>(<span class="string">"to_mode"</span>);
|
||||
<span class="kw">let</span> <span class="ident">pct_ppl</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">spinner</span>(<span class="string">"pct_ppl"</span>);
|
||||
<span class="kw">let</span> (<span class="ident">p1</span>, <span class="ident">p2</span>) <span class="op">=</span> (
|
||||
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">slider</span>(<span class="string">"depart from"</span>).<span class="ident">get_percent</span>(),
|
||||
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">slider</span>(<span class="string">"depart to"</span>).<span class="ident">get_percent</span>(),
|
||||
);
|
||||
<span class="kw">let</span> <span class="ident">departure_filter</span> <span class="op">=</span> (
|
||||
<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">get_end_of_day</span>().<span class="ident">percent_of</span>(<span class="ident">p1</span>),
|
||||
<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">get_end_of_day</span>().<span class="ident">percent_of</span>(<span class="ident">p2</span>),
|
||||
);
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">from_modes</span> <span class="op">=</span> <span class="ident">TripMode::all</span>()
|
||||
.<span class="ident">into_iter</span>()
|
||||
.<span class="ident">filter</span>(<span class="op">|</span><span class="ident">m</span><span class="op">|</span> <span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">is_checked</span>(<span class="ident">m</span>.<span class="ident">ongoing_verb</span>()))
|
||||
.<span class="ident">collect</span>::<span class="op"><</span><span class="ident">BTreeSet</span><span class="op"><</span><span class="kw">_</span><span class="op">></span><span class="op">></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">m</span>) <span class="op">=</span> <span class="ident">to_mode</span> {
|
||||
<span class="ident">from_modes</span>.<span class="ident">remove</span>(<span class="ident">m</span>);
|
||||
}
|
||||
|
||||
<span class="kw">if</span> <span class="ident">from_modes</span>.<span class="ident">is_empty</span>() {
|
||||
<span class="kw">return</span> <span class="ident">Transition::Push</span>(<span class="ident">PopupMsg::new_state</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
@ -1104,7 +1215,7 @@
|
||||
<span class="macro">vec!</span>[<span class="string">"You have to select at least one mode to convert from"</span>],
|
||||
));
|
||||
}
|
||||
<span class="kw">if</span> <span class="ident">p1</span> <span class="op">></span><span class="op">=</span> <span class="ident">p2</span> {
|
||||
<span class="kw">if</span> <span class="ident">departure_filter</span>.<span class="number">0</span> <span class="op">></span><span class="op">=</span> <span class="ident">departure_filter</span>.<span class="number">1</span> {
|
||||
<span class="kw">return</span> <span class="ident">Transition::Push</span>(<span class="ident">PopupMsg::new_state</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="string">"Error"</span>,
|
||||
@ -1130,6 +1241,10 @@
|
||||
}
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> <span class="macro">unreachable!</span>(),
|
||||
},
|
||||
<span class="ident">Outcome::Changed</span>(<span class="kw">_</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="self">self</span>.<span class="ident">recalc_count</span>(<span class="ident">ctx</span>, <span class="ident">app</span>);
|
||||
<span class="ident">Transition::Keep</span>
|
||||
}
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> <span class="ident">Transition::Keep</span>,
|
||||
}
|
||||
}
|
||||
@ -1222,6 +1337,49 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">struct</span> <span class="ident">CountTrips</span> {
|
||||
<span class="comment">// Times are sorted</span>
|
||||
<span class="ident">departures_per_mode</span>: <span class="ident">BTreeMap</span><span class="op"><</span><span class="ident">TripMode</span>, <span class="ident">Vec</span><span class="op"><</span><span class="ident">Time</span><span class="op">></span><span class="op">></span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">CountTrips</span> {
|
||||
<span class="kw">fn</span> <span class="ident">new</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">CountTrips</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">departures_per_mode</span> <span class="op">=</span> <span class="ident">BTreeMap::new</span>();
|
||||
<span class="kw">for</span> <span class="ident">m</span> <span class="kw">in</span> <span class="ident">TripMode::all</span>() {
|
||||
<span class="ident">departures_per_mode</span>.<span class="ident">insert</span>(<span class="ident">m</span>, <span class="ident">Vec::new</span>());
|
||||
}
|
||||
<span class="kw">for</span> <span class="ident">person</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">scenario</span>.<span class="ident">as_ref</span>().<span class="ident">unwrap</span>().<span class="ident">people</span> {
|
||||
<span class="kw">for</span> <span class="ident">trip</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">person</span>.<span class="ident">trips</span> {
|
||||
<span class="ident">departures_per_mode</span>
|
||||
.<span class="ident">get_mut</span>(<span class="kw-2">&</span><span class="ident">trip</span>.<span class="ident">mode</span>)
|
||||
.<span class="ident">unwrap</span>()
|
||||
.<span class="ident">push</span>(<span class="ident">trip</span>.<span class="ident">depart</span>);
|
||||
}
|
||||
}
|
||||
<span class="kw">for</span> <span class="ident">list</span> <span class="kw">in</span> <span class="ident">departures_per_mode</span>.<span class="ident">values_mut</span>() {
|
||||
<span class="ident">list</span>.<span class="ident">sort</span>();
|
||||
}
|
||||
<span class="ident">CountTrips</span> {
|
||||
<span class="ident">departures_per_mode</span>,
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">count</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">mode</span>: <span class="ident">TripMode</span>, <span class="ident">t1</span>: <span class="ident">Time</span>, <span class="ident">t2</span>: <span class="ident">Time</span>) <span class="op">-</span><span class="op">></span> <span class="ident">usize</span> {
|
||||
<span class="comment">// TODO Could binary search or even have a cursor to remember the position between queries.</span>
|
||||
<span class="comment">// Be careful with binary_search_by_key; it might miss multiple trips with the same time.</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">cnt</span> <span class="op">=</span> <span class="number">0</span>;
|
||||
<span class="kw">for</span> <span class="ident">t</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">departures_per_mode</span>[<span class="kw-2">&</span><span class="ident">mode</span>] {
|
||||
<span class="kw">if</span> <span class="kw-2">*</span><span class="ident">t</span> <span class="op">></span><span class="op">=</span> <span class="ident">t1</span> <span class="op">&&</span> <span class="kw-2">*</span><span class="ident">t</span> <span class="op"><</span><span class="op">=</span> <span class="ident">t2</span> {
|
||||
<span class="ident">cnt</span> <span class="op">+</span><span class="op">=</span> <span class="number">1</span>;
|
||||
}
|
||||
<span class="kw">if</span> <span class="kw-2">*</span><span class="ident">t</span> <span class="op">></span> <span class="ident">t2</span> {
|
||||
<span class="kw">break</span>;
|
||||
}
|
||||
}
|
||||
<span class="ident">cnt</span>
|
||||
}
|
||||
}
|
||||
</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></body></html>
|
@ -452,6 +452,11 @@
|
||||
<span id="449">449</span>
|
||||
<span id="450">450</span>
|
||||
<span id="451">451</span>
|
||||
<span id="452">452</span>
|
||||
<span id="453">453</span>
|
||||
<span id="454">454</span>
|
||||
<span id="455">455</span>
|
||||
<span id="456">456</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">instant::Instant</span>;
|
||||
|
||||
@ -511,8 +516,12 @@
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">Widget::nothing</span>()
|
||||
},
|
||||
<span class="ident">Slider::area</span>(<span class="ident">ctx</span>, <span class="ident">slider_width</span>, <span class="ident">target</span>.<span class="ident">to_percent</span>(<span class="ident">end_of_day</span>).<span class="ident">min</span>(<span class="number">1.0</span>))
|
||||
.<span class="ident">named</span>(<span class="string">"time slider"</span>),
|
||||
<span class="ident">Slider::area</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="ident">slider_width</span>,
|
||||
<span class="ident">target</span>.<span class="ident">to_percent</span>(<span class="ident">end_of_day</span>).<span class="ident">min</span>(<span class="number">1.0</span>),
|
||||
<span class="string">"time slider"</span>,
|
||||
),
|
||||
<span class="ident">build_jump_to_time_btn</span>(<span class="ident">ctx</span>, <span class="ident">target</span>),
|
||||
])
|
||||
};
|
||||
@ -616,6 +625,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
<span class="comment">// TODO check what changed...</span>
|
||||
<span class="ident">Outcome::Changed</span>(<span class="kw">_</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">tabs</span>.<span class="ident">active_tab_idx</span>() <span class="op">=</span><span class="op">=</span> <span class="number">1</span> {
|
||||
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">replace</span>(
|
||||
|
@ -784,7 +784,7 @@
|
||||
|
||||
<span class="comment">// Wrap the main widget in scrollable containers if necessary.</span>
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">scrollable_x</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">slider</span> <span class="op">=</span> <span class="ident">Slider::horizontal</span>(
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">slider</span> <span class="op">=</span> <span class="ident">Slider::horizontal_scrollbar</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="self">self</span>.<span class="ident">container_dims</span>.<span class="ident">width</span>,
|
||||
<span class="self">self</span>.<span class="ident">container_dims</span>.<span class="ident">width</span> <span class="op">*</span> (<span class="self">self</span>.<span class="ident">container_dims</span>.<span class="ident">width</span> <span class="op">/</span> <span class="self">self</span>.<span class="ident">contents_dims</span>.<span class="ident">width</span>),
|
||||
@ -803,7 +803,7 @@
|
||||
}
|
||||
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">scrollable_y</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">slider</span> <span class="op">=</span> <span class="ident">Slider::vertical</span>(
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">slider</span> <span class="op">=</span> <span class="ident">Slider::vertical_scrollbar</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="self">self</span>.<span class="ident">container_dims</span>.<span class="ident">height</span>,
|
||||
<span class="self">self</span>.<span class="ident">container_dims</span>.<span class="ident">height</span>
|
||||
|
@ -307,11 +307,37 @@
|
||||
<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>
|
||||
<span id="315">315</span>
|
||||
<span id="316">316</span>
|
||||
<span id="317">317</span>
|
||||
<span id="318">318</span>
|
||||
<span id="319">319</span>
|
||||
<span id="320">320</span>
|
||||
<span id="321">321</span>
|
||||
<span id="322">322</span>
|
||||
<span id="323">323</span>
|
||||
<span id="324">324</span>
|
||||
<span id="325">325</span>
|
||||
<span id="326">326</span>
|
||||
<span id="327">327</span>
|
||||
<span id="328">328</span>
|
||||
<span id="329">329</span>
|
||||
<span id="330">330</span>
|
||||
<span id="331">331</span>
|
||||
<span id="332">332</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Circle</span>, <span class="ident">Distance</span>, <span class="ident">Polygon</span>, <span class="ident">Pt2D</span>};
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{
|
||||
<span class="ident">Color</span>, <span class="ident">Drawable</span>, <span class="ident">EdgeInsets</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>, <span class="ident">ScreenDims</span>, <span class="ident">ScreenPt</span>,
|
||||
<span class="ident">Color</span>, <span class="ident">Drawable</span>, <span class="ident">EdgeInsets</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>, <span class="ident">Outcome</span>, <span class="ident">ScreenDims</span>, <span class="ident">ScreenPt</span>,
|
||||
<span class="ident">ScreenRectangle</span>, <span class="ident">Widget</span>, <span class="ident">WidgetImpl</span>, <span class="ident">WidgetOutput</span>,
|
||||
};
|
||||
|
||||
@ -321,6 +347,7 @@
|
||||
<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="ident">dragging</span>: <span class="ident">bool</span>,
|
||||
|
||||
<span class="ident">style</span>: <span class="ident">Style</span>,
|
||||
<span class="ident">label</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
|
||||
<span class="ident">draw</span>: <span class="ident">Drawable</span>,
|
||||
|
||||
@ -364,7 +391,7 @@
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">Slider</span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">horizontal</span>(
|
||||
<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">fn</span> <span class="ident">horizontal_scrollbar</span>(
|
||||
<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="ident">EventCtx</span>,
|
||||
<span class="ident">width</span>: <span class="ident">f64</span>,
|
||||
<span class="ident">dragger_len</span>: <span class="ident">f64</span>,
|
||||
@ -377,10 +404,17 @@
|
||||
<span class="ident">dragger_len</span>,
|
||||
},
|
||||
<span class="ident">current_percent</span>,
|
||||
<span class="comment">// Don't emit Outcome::Changed for scollbars</span>
|
||||
<span class="prelude-val">None</span>,
|
||||
)
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">vertical</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="ident">EventCtx</span>, <span class="ident">height</span>: <span class="ident">f64</span>, <span class="ident">dragger_len</span>: <span class="ident">f64</span>, <span class="ident">current_percent</span>: <span class="ident">f64</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Widget</span> {
|
||||
<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">fn</span> <span class="ident">vertical_scrollbar</span>(
|
||||
<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="ident">EventCtx</span>,
|
||||
<span class="ident">height</span>: <span class="ident">f64</span>,
|
||||
<span class="ident">dragger_len</span>: <span class="ident">f64</span>,
|
||||
<span class="ident">current_percent</span>: <span class="ident">f64</span>,
|
||||
) <span class="op">-</span><span class="op">></span> <span class="ident">Widget</span> {
|
||||
<span class="ident">Slider::new_widget</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="ident">Style::Vertical</span> {
|
||||
@ -388,20 +422,34 @@
|
||||
<span class="ident">dragger_len</span>,
|
||||
},
|
||||
<span class="ident">current_percent</span>,
|
||||
<span class="comment">// Don't emit Outcome::Changed for scollbars</span>
|
||||
<span class="prelude-val">None</span>,
|
||||
)
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">area</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="ident">EventCtx</span>, <span class="ident">width</span>: <span class="ident">f64</span>, <span class="ident">current_percent</span>: <span class="ident">f64</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Widget</span> {
|
||||
<span class="ident">Slider::new_widget</span>(<span class="ident">ctx</span>, <span class="ident">Style::Area</span> { <span class="ident">width</span> }, <span class="ident">current_percent</span>)
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">area</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="ident">EventCtx</span>, <span class="ident">width</span>: <span class="ident">f64</span>, <span class="ident">current_percent</span>: <span class="ident">f64</span>, <span class="ident">label</span>: <span class="kw-2">&</span><span class="ident">str</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Widget</span> {
|
||||
<span class="ident">Slider::new_widget</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="ident">Style::Area</span> { <span class="ident">width</span> },
|
||||
<span class="ident">current_percent</span>,
|
||||
<span class="prelude-val">Some</span>(<span class="ident">label</span>.<span class="ident">to_string</span>()),
|
||||
)
|
||||
.<span class="ident">named</span>(<span class="ident">label</span>)
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">new_widget</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="ident">EventCtx</span>, <span class="ident">style</span>: <span class="ident">Style</span>, <span class="ident">current_percent</span>: <span class="ident">f64</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Widget</span> {
|
||||
<span class="kw">fn</span> <span class="ident">new_widget</span>(
|
||||
<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="ident">EventCtx</span>,
|
||||
<span class="ident">style</span>: <span class="ident">Style</span>,
|
||||
<span class="ident">current_percent</span>: <span class="ident">f64</span>,
|
||||
<span class="ident">label</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>,
|
||||
) <span class="op">-</span><span class="op">></span> <span class="ident">Widget</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">s</span> <span class="op">=</span> <span class="ident">Slider</span> {
|
||||
<span class="ident">current_percent</span>,
|
||||
<span class="ident">mouse_on_slider</span>: <span class="bool-val">false</span>,
|
||||
<span class="ident">dragging</span>: <span class="bool-val">false</span>,
|
||||
<span class="ident">style</span>,
|
||||
<span class="ident">draw</span>: <span class="ident">Drawable::empty</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">label</span>,
|
||||
|
||||
<span class="ident">top_left</span>: <span class="ident">ScreenPt::new</span>(<span class="number">0.0</span>, <span class="number">0.0</span>),
|
||||
<span class="ident">dims</span>: <span class="ident">ScreenDims::new</span>(<span class="number">0.0</span>, <span class="number">0.0</span>),
|
||||
@ -531,6 +579,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
<span class="comment">// True if anything changed</span>
|
||||
<span class="kw">fn</span> <span class="ident">inner_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="op">-</span><span class="op">></span> <span class="ident">bool</span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">dragging</span> {
|
||||
<span class="kw">if</span> <span class="ident">ctx</span>.<span class="ident">input</span>.<span class="ident">get_moved_mouse</span>().<span class="ident">is_some</span>() {
|
||||
@ -600,9 +649,12 @@
|
||||
<span class="self">self</span>.<span class="ident">top_left</span> <span class="op">=</span> <span class="ident">top_left</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="kw">_</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">WidgetOutput</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">output</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">WidgetOutput</span>) {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">inner_event</span>(<span class="ident">ctx</span>) {
|
||||
<span class="self">self</span>.<span class="ident">recalc</span>(<span class="ident">ctx</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">label</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">label</span> {
|
||||
<span class="ident">output</span>.<span class="ident">outcome</span> <span class="op">=</span> <span class="ident">Outcome::Changed</span>(<span class="ident">label</span>.<span class="ident">clone</span>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
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 @@
|
||||
<!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 `AREA_SLIDER_BG_WIDTH` constant in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, AREA_SLIDER_BG_WIDTH"><title>AREA_SLIDER_BG_WIDTH in widgetry::widgets::slider - 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="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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='../../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">slider</a></p><div id="sidebar-vars" data-name="AREA_SLIDER_BG_WIDTH" 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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></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" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">slider</a>::<wbr><a class="constant" href="">AREA_SLIDER_BG_WIDTH</a><button id="copy-path" onclick="copy_path(this)">⎘</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/widgets/slider.rs.html#28" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const AREA_SLIDER_BG_WIDTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a> = 10.0;</pre></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>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">slider</a>::<wbr><a class="constant" href="">AREA_SLIDER_BG_WIDTH</a><button id="copy-path" onclick="copy_path(this)">⎘</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/widgets/slider.rs.html#29" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const AREA_SLIDER_BG_WIDTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a> = 10.0;</pre></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,5 +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 `SCROLLBAR_BG_WIDTH` constant in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, SCROLLBAR_BG_WIDTH"><title>SCROLLBAR_BG_WIDTH in widgetry::widgets::slider - 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="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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='../../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">slider</a></p><div id="sidebar-vars" data-name="SCROLLBAR_BG_WIDTH" 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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></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" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">slider</a>::<wbr><a class="constant" href="">SCROLLBAR_BG_WIDTH</a><button id="copy-path" onclick="copy_path(this)">⎘</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/widgets/slider.rs.html#27" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const SCROLLBAR_BG_WIDTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a> = 8.0;</pre></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>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">slider</a>::<wbr><a class="constant" href="">SCROLLBAR_BG_WIDTH</a><button id="copy-path" onclick="copy_path(this)">⎘</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/widgets/slider.rs.html#28" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const SCROLLBAR_BG_WIDTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a> = 8.0;</pre></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>
|
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
||||
<!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 `slider` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, slider"><title>widgetry::widgets::slider - 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="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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><p class="location">Module slider</p><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="#constants">Constants</a></li></ul></div><p class="location"><a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a></p><div id="sidebar-vars" data-name="slider" 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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></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" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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">widgets</a>::<wbr><a class="mod" href="">slider</a><button id="copy-path" onclick="copy_path(this)">⎘</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/widgets/slider.rs.html#1-306" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></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">widgets</a>::<wbr><a class="mod" href="">slider</a><button id="copy-path" onclick="copy_path(this)">⎘</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/widgets/slider.rs.html#1-332" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.Slider.html" title="widgetry::widgets::slider::Slider struct">Slider</a></td><td class="docblock-short"></td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||
<table><tr class="module-item"><td><a class="enum" href="enum.Style.html" title="widgetry::widgets::slider::Style enum">Style</a></td><td class="docblock-short"></td></tr></table><h2 id="constants" class="section-header"><a href="#constants">Constants</a></h2>
|
||||
<table><tr class="module-item"><td><a class="constant" href="constant.AREA_SLIDER_BG_WIDTH.html" title="widgetry::widgets::slider::AREA_SLIDER_BG_WIDTH constant">AREA_SLIDER_BG_WIDTH</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.SCROLLBAR_BG_WIDTH.html" title="widgetry::widgets::slider::SCROLLBAR_BG_WIDTH constant">SCROLLBAR_BG_WIDTH</a></td><td class="docblock-short"></td></tr></table></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>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user