mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 15:02:59 +03:00
deploy: 5e592447b7
This commit is contained in:
parent
edc8cca167
commit
3205a70328
@ -63,11 +63,11 @@ the event and immediately apply the transition. <a href="#method.panel_changed">
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-11" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-11" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-11" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.other_event-11" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div></details><div id="method.draw-77" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw-77" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.reference.html">&</a>A)</h4></div><div id="method.draw_baselayer-76" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-76" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-12" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#232-295" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-12" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/trip/files/struct.RenameTrip.html" title="struct game::ungap::trip::files::RenameTrip">RenameTrip</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-12" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#233-257" title="goto source code">[src]</a></div><a href="#method.on_click-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a>, <br> panel: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
</div></details><div id="method.draw-77" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw-77" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, &mut GfxCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.reference.html">&</a>A)</h4></div><div id="method.draw_baselayer-76" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-76" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-SimpleState%3CApp%3E-12" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#231-294" title="goto source code">[src]</a></div><a href="#impl-SimpleState%3CApp%3E-12" class="anchor"></a><h3 class="code-header in-band">impl SimpleState<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/trip/files/struct.RenameTrip.html" title="struct game::ungap::trip::files::RenameTrip">RenameTrip</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click-12" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#232-256" title="goto source code">[src]</a></div><a href="#method.on_click-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a>, <br> panel: &Panel<br>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-13" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#259-290" title="goto source code">[src]</a></div><a href="#method.panel_changed-13" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> panel: &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.55.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.panel_changed-13" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#258-289" title="goto source code">[src]</a></div><a href="#method.panel_changed-13" class="anchor"></a><h4 class="code-header">fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>, <br> panel: &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.55.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>>></h4></div></summary><div class='docblock'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div></details><div id="method.draw-78" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#292-294" title="goto source code">[src]</a></div><a href="#method.draw-78" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-12" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-12" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><div id="method.draw-78" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/files.rs.html#291-293" title="goto source code">[src]</a></div><a href="#method.draw-78" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_click_custom-12" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_click_custom-12" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_click_custom" class="fnname">on_click_custom</a>(<br> &mut self, <br> _ctx: &mut EventCtx<'_>, <br> _app: <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.reference.html">&mut </a>A, <br> _action: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../abstutil/clone/trait.CloneableAny.html" title="trait abstutil::clone::CloneableAny">CloneableAny</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>, <br> _panel: &Panel<br>) -> Transition<A></h4></div></summary><div class='docblock'><p>Called when something on the panel has been clicked.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_mouseover-12" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_mouseover-12" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Called when the mouse has moved.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.other_event-12" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.other_event-12" class="anchor"></a><h4 class="code-header">fn <a href="#method.other_event" class="fnname">other_event</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.reference.html">&mut </a>A) -> Transition<A></h4></div></summary><div class='docblock'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
@ -387,8 +387,8 @@ call this to handle all other events. <a href="#method.other_event">Read more</a
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-64" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/quick_sketch.rs.html#120-124" title="goto source code">[src]</a></div><a href="#method.draw-64" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-63" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-63" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-63" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-63" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-64" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/mod.rs.html#157-236" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-64" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/trip/struct.TripPlanner.html" title="struct game::ungap::trip::TripPlanner">TripPlanner</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-64" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/mod.rs.html#158-228" title="goto source code">[src]</a></div><a href="#method.event-64" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-65" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/mod.rs.html#230-235" title="goto source code">[src]</a></div><a href="#method.draw-65" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-64" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/mod.rs.html#161-240" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-64" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../ungap/trip/struct.TripPlanner.html" title="struct game::ungap::trip::TripPlanner">TripPlanner</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-64" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/mod.rs.html#162-232" title="goto source code">[src]</a></div><a href="#method.event-64" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-65" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/trip/mod.rs.html#234-239" title="goto source code">[src]</a></div><a href="#method.draw-65" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-64" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-64" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-64" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-64" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.reference.html">&mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-7" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/path_counter.rs.html#83-125" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-7" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../debug/path_counter/struct.PathCounter.html" title="struct game::debug::path_counter::PathCounter">PathCounter</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/path_counter.rs.html#84-113" title="goto source code">[src]</a></div><a href="#method.event-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>></h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The build time in RFC2822, UTC."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>BUILT_TIME_UTC in game::pregame::built_info - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="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"><h2 class="location">Other items in<br><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a></h2><div id="sidebar-vars" data-name="BUILT_TIME_UTC" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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-e9cc52539fe98199/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/1.55.0/std/primitive.str.html">str</a> = r"Mon, 11 Oct 2021 22:19:34 +0000";</pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The build time in RFC2822, UTC."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>BUILT_TIME_UTC in game::pregame::built_info - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="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"><h2 class="location">Other items in<br><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a></h2><div id="sidebar-vars" data-name="BUILT_TIME_UTC" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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-e9cc52539fe98199/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/1.55.0/std/primitive.str.html">str</a> = r"Mon, 11 Oct 2021 23:11:42 +0000";</pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
</div></details></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="game" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
<script src="../../../main.js"></script>
|
||||
</body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `files` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, files"><title>game::ungap::trip::files - 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><h2 class="location">Module files</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><div id="sidebar-vars" data-name="files" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a class="mod" href="#">files</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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/ungap/trip/files.rs.html#1-295" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `files` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, files"><title>game::ungap::trip::files - 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><h2 class="location">Module files</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><div id="sidebar-vars" data-name="files" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a class="mod" href="#">files</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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/ungap/trip/files.rs.html#1-294" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.NamedTrip.html" title="game::ungap::trip::files::NamedTrip struct">NamedTrip</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.RenameTrip.html" title="game::ungap::trip::files::RenameTrip struct">RenameTrip</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.SavedTrips.html" title="game::ungap::trip::files::SavedTrips struct">SavedTrips</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.TripManagement.html" title="game::ungap::trip::files::TripManagement struct">TripManagement</a></div><div class="item-right docblock-short"><p>Save sequences of waypoints as named trips. Basic file management – save, load, browse. This
|
||||
is useful to define “test cases,” then edit the bike network and “run the tests” to compare
|
||||
results.</p>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `trip` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, trip"><title>game::ungap::trip - 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><h2 class="location">Module trip</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></div><div id="sidebar-vars" data-name="trip" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">ungap</a>::<wbr><a class="mod" href="#">trip</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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/ungap/trip/mod.rs.html#1-269" title="goto source code">[src]</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `trip` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, trip"><title>game::ungap::trip - 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><h2 class="location">Module trip</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></div><div id="sidebar-vars" data-name="trip" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">ungap</a>::<wbr><a class="mod" href="#">trip</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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/ungap/trip/mod.rs.html#1-273" title="goto source code">[src]</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="mod" href="files/index.html" title="game::ungap::trip::files mod">files</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="results/index.html" title="game::ungap::trip::results mod">results</a></div><div class="item-right docblock-short"></div></div><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.RoutingPreferences.html" title="game::ungap::trip::RoutingPreferences struct">RoutingPreferences</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.TripPlanner.html" title="game::ungap::trip::TripPlanner struct">TripPlanner</a></div><div class="item-right docblock-short"></div></div><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="enum" href="enum.ID.html" title="game::ungap::trip::ID enum">ID</a></div><div class="item-right docblock-short"></div></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="game" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `cmp_dist` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, cmp_dist"><title>cmp_dist in game::ungap::trip::results - 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"><h2 class="location">Other items in<br><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a href="index.html">results</a></h2><div id="sidebar-vars" data-name="cmp_dist" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a href="index.html">results</a>::<wbr><a class="fn" href="#">cmp_dist</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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/ungap/trip/results.rs.html#516-531" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn cmp_dist(<br> txt: &mut Text, <br> app: &<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>, <br> dist: <a class="struct" href="../../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br> shorter: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a>, <br> longer: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a><br>)</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="game" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `cmp_dist` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, cmp_dist"><title>cmp_dist in game::ungap::trip::results - 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"><h2 class="location">Other items in<br><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a href="index.html">results</a></h2><div id="sidebar-vars" data-name="cmp_dist" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a href="index.html">results</a>::<wbr><a class="fn" href="#">cmp_dist</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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/ungap/trip/results.rs.html#503-518" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn cmp_dist(<br> txt: &mut Text, <br> app: &<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>, <br> dist: <a class="struct" href="../../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br> shorter: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a>, <br> longer: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a><br>)</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="game" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
<script src="../../../../main.js"></script>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `cmp_duration` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, cmp_duration"><title>cmp_duration in game::ungap::trip::results - 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"><h2 class="location">Other items in<br><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a href="index.html">results</a></h2><div id="sidebar-vars" data-name="cmp_duration" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a href="index.html">results</a>::<wbr><a class="fn" href="#">cmp_duration</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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/ungap/trip/results.rs.html#533-553" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn cmp_duration(<br> txt: &mut Text, <br> app: &<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>, <br> duration: <a class="struct" href="../../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>, <br> shorter: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a>, <br> longer: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a><br>)</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="game" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `cmp_duration` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, cmp_duration"><title>cmp_duration in game::ungap::trip::results - 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"><h2 class="location">Other items in<br><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a href="index.html">results</a></h2><div id="sidebar-vars" data-name="cmp_duration" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a href="index.html">results</a>::<wbr><a class="fn" href="#">cmp_duration</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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/ungap/trip/results.rs.html#520-540" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn cmp_duration(<br> txt: &mut Text, <br> app: &<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>, <br> duration: <a class="struct" href="../../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>, <br> shorter: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a>, <br> longer: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a><br>)</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="game" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
<script src="../../../../main.js"></script>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `compare_routes` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, compare_routes"><title>compare_routes in game::ungap::trip::results - 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"><h2 class="location">Other items in<br><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a href="index.html">results</a></h2><div id="sidebar-vars" data-name="compare_routes" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a href="index.html">results</a>::<wbr><a class="fn" href="#">compare_routes</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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/ungap/trip/results.rs.html#457-514" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn compare_routes(<br> app: &<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>, <br> main: &<a class="struct" href="struct.RouteStats.html" title="struct game::ungap::trip::results::RouteStats">RouteStats</a>, <br> alt: &<a class="struct" href="struct.RouteStats.html" title="struct game::ungap::trip::results::RouteStats">RouteStats</a>, <br> preferences: <a class="struct" href="../struct.RoutingPreferences.html" title="struct game::ungap::trip::RoutingPreferences">RoutingPreferences</a><br>) -> Text</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="game" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `compare_routes` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, compare_routes"><title>compare_routes in game::ungap::trip::results - 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"><h2 class="location">Other items in<br><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a href="index.html">results</a></h2><div id="sidebar-vars" data-name="compare_routes" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a href="index.html">results</a>::<wbr><a class="fn" href="#">compare_routes</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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/ungap/trip/results.rs.html#457-501" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn compare_routes(<br> app: &<a class="struct" href="../../../app/struct.App.html" title="struct game::app::App">App</a>, <br> main: &<a class="struct" href="struct.RouteStats.html" title="struct game::ungap::trip::results::RouteStats">RouteStats</a>, <br> alt: &<a class="struct" href="struct.RouteStats.html" title="struct game::ungap::trip::results::RouteStats">RouteStats</a>, <br> preferences: <a class="struct" href="../struct.RoutingPreferences.html" title="struct game::ungap::trip::RoutingPreferences">RoutingPreferences</a><br>) -> Text</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="game" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
<script src="../../../../main.js"></script>
|
||||
</body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `results` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, results"><title>game::ungap::trip::results - 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><h2 class="location">Module results</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="results" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a class="mod" href="#">results</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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/ungap/trip/results.rs.html#1-553" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `results` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, results"><title>game::ungap::trip::results - 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><h2 class="location">Module results</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="results" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">trip</a>::<wbr><a class="mod" href="#">results</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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/ungap/trip/results.rs.html#1-540" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.BuiltRoute.html" title="game::ungap::trip::results::BuiltRoute struct">BuiltRoute</a></div><div class="item-right docblock-short"><p>A temporary structure that the caller should unpack and use as needed.</p>
|
||||
</div><div class="item-left module-item"><a class="struct" href="struct.RouteDetails.html" title="game::ungap::trip::results::RouteDetails struct">RouteDetails</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.RouteStats.html" title="game::ungap::trip::results::RouteStats struct">RouteStats</a></div><div class="item-right docblock-short"></div></div><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="fn" href="fn.cmp_dist.html" title="game::ungap::trip::results::cmp_dist fn">cmp_dist</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="fn" href="fn.cmp_duration.html" title="game::ungap::trip::results::cmp_duration fn">cmp_duration</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="fn" href="fn.compare_routes.html" title="game::ungap::trip::results::compare_routes fn">compare_routes</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="fn" href="fn.make_detail_widget.html" title="game::ungap::trip::results::make_detail_widget fn">make_detail_widget</a></div><div class="item-right docblock-short"></div></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="game" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
|
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
@ -175,7 +175,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.55.0 (c8dfcfe04 2021-09-06)"</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"Mon, 11 Oct 2021 22:19:34 +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"Mon, 11 Oct 2021 23:11:42 +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>;
|
||||
|
@ -292,7 +292,6 @@
|
||||
<span id="292">292</span>
|
||||
<span id="293">293</span>
|
||||
<span id="294">294</span>
|
||||
<span id="295">295</span>
|
||||
</pre><pre class="rust">
|
||||
<span class="kw">use</span> <span class="ident">std::collections</span>::{<span class="ident">BTreeMap</span>, <span class="ident">HashSet</span>};
|
||||
|
||||
@ -429,7 +428,6 @@
|
||||
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="string">"next trip"</span>),
|
||||
]),
|
||||
])
|
||||
.<span class="ident">section</span>(<span class="ident">ctx</span>)
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">on_click</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="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="ident">action</span>: <span class="kw-2">&</span><span class="ident">str</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">Transition</span><span class="op">></span> {
|
||||
|
@ -267,6 +267,10 @@
|
||||
<span id="267">267</span>
|
||||
<span id="268">268</span>
|
||||
<span id="269">269</span>
|
||||
<span id="270">270</span>
|
||||
<span id="271">271</span>
|
||||
<span id="272">272</span>
|
||||
<span id="273">273</span>
|
||||
</pre><pre class="rust">
|
||||
<span class="kw">use</span> <span class="ident">map_model::RoutingParams</span>;
|
||||
<span class="kw">use</span> <span class="ident">widgetry::mapspace</span>::{<span class="ident">ObjectID</span>, <span class="ident">World</span>, <span class="ident">WorldOutcome</span>};
|
||||
@ -389,7 +393,12 @@
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">update_input_panel</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="ident">main_route</span>: <span class="ident">Widget</span>) {
|
||||
<span class="kw">let</span> <span class="ident">col</span> <span class="op">=</span> <span class="ident">Widget::col</span>(<span class="macro">vec!</span>[
|
||||
<span class="self">self</span>.<span class="ident">files</span>.<span class="ident">get_panel_widget</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">Widget::col</span>(<span class="macro">vec!</span>[
|
||||
<span class="self">self</span>.<span class="ident">files</span>.<span class="ident">get_panel_widget</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">Widget::horiz_separator</span>(<span class="ident">ctx</span>, <span class="number">1.0</span>),
|
||||
<span class="self">self</span>.<span class="ident">waypoints</span>.<span class="ident">get_panel_widget</span>(<span class="ident">ctx</span>),
|
||||
])
|
||||
.<span class="ident">section</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
|
||||
<span class="ident">Toggle::checkbox</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
@ -405,7 +414,6 @@
|
||||
),
|
||||
])
|
||||
.<span class="ident">section</span>(<span class="ident">ctx</span>),
|
||||
<span class="self">self</span>.<span class="ident">waypoints</span>.<span class="ident">get_panel_widget</span>(<span class="ident">ctx</span>).<span class="ident">section</span>(<span class="ident">ctx</span>),
|
||||
<span class="ident">main_route</span>.<span class="ident">section</span>(<span class="ident">ctx</span>),
|
||||
]);
|
||||
|
||||
|
@ -538,19 +538,6 @@
|
||||
<span id="538">538</span>
|
||||
<span id="539">539</span>
|
||||
<span id="540">540</span>
|
||||
<span id="541">541</span>
|
||||
<span id="542">542</span>
|
||||
<span id="543">543</span>
|
||||
<span id="544">544</span>
|
||||
<span id="545">545</span>
|
||||
<span id="546">546</span>
|
||||
<span id="547">547</span>
|
||||
<span id="548">548</span>
|
||||
<span id="549">549</span>
|
||||
<span id="550">550</span>
|
||||
<span id="551">551</span>
|
||||
<span id="552">552</span>
|
||||
<span id="553">553</span>
|
||||
</pre><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">Duration</span>, <span class="ident">FindClosest</span>, <span class="ident">PolyLine</span>, <span class="ident">Polygon</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_gui::tools::PopupMsg</span>;
|
||||
@ -879,7 +866,7 @@
|
||||
};
|
||||
<span class="ident">panel</span>
|
||||
.<span class="ident">find_mut</span>::<span class="op"><</span><span class="ident">LinePlot</span><span class="op"><</span><span class="ident">Distance</span>, <span class="ident">Distance</span><span class="op">></span><span class="op">></span>(<span class="string">"elevation"</span>)
|
||||
.<span class="ident">set_hovering</span>(<span class="ident">ctx</span>, <span class="ident">dist</span> <span class="op">+</span> <span class="ident">dist_here</span>, <span class="ident">elevation</span>);
|
||||
.<span class="ident">set_hovering</span>(<span class="ident">ctx</span>, <span class="string">"Elevation"</span>, <span class="ident">dist</span> <span class="op">+</span> <span class="ident">dist_here</span>, <span class="ident">elevation</span>);
|
||||
<span class="self">self</span>.<span class="ident">hover_on_route_tooltip</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">Text::from</span>(<span class="ident">Line</span>(<span class="macro">format!</span>(
|
||||
<span class="string">"Elevation: {}"</span>,
|
||||
<span class="ident">elevation</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)
|
||||
@ -1046,21 +1033,8 @@
|
||||
<span class="ident">txt</span>.<span class="ident">append</span>(
|
||||
<span class="ident">Line</span>(<span class="macro">format!</span>(<span class="string">"{} less ↑"</span>, (<span class="op">-</span><span class="ident">up</span>).<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))).<span class="ident">fg</span>(<span class="ident">Color::GREEN</span>),
|
||||
);
|
||||
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="string">", "</span>));
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">up</span> <span class="op">></span> <span class="ident">Distance::ZERO</span> {
|
||||
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="macro">format!</span>(<span class="string">"{} more ↑"</span>, <span class="ident">up</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))).<span class="ident">fg</span>(<span class="ident">Color::RED</span>));
|
||||
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="string">", "</span>));
|
||||
}
|
||||
|
||||
<span class="comment">// Unclear if more down should be "good" or "bad", so we'll omit color</span>
|
||||
<span class="kw">let</span> <span class="ident">down</span> <span class="op">=</span> <span class="ident">alt</span>.<span class="ident">total_down</span> <span class="op">-</span> <span class="ident">main</span>.<span class="ident">total_down</span>;
|
||||
<span class="kw">if</span> <span class="ident">down</span> <span class="op"><</span> <span class="ident">Distance::ZERO</span> {
|
||||
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="macro">format!</span>(
|
||||
<span class="string">"{} less ↓"</span>,
|
||||
(<span class="op">-</span><span class="ident">down</span>).<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)
|
||||
)));
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">down</span> <span class="op">></span> <span class="ident">Distance::ZERO</span> {
|
||||
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="macro">format!</span>(<span class="string">"{} more ↓"</span>, <span class="ident">down</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -294,6 +294,11 @@
|
||||
<span id="294">294</span>
|
||||
<span id="295">295</span>
|
||||
<span id="296">296</span>
|
||||
<span id="297">297</span>
|
||||
<span id="298">298</span>
|
||||
<span id="299">299</span>
|
||||
<span id="300">300</span>
|
||||
<span id="301">301</span>
|
||||
</pre><pre class="rust">
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Angle</span>, <span class="ident">Bounds</span>, <span class="ident">Circle</span>, <span class="ident">Distance</span>, <span class="ident">FindClosest</span>, <span class="ident">PolyLine</span>, <span class="ident">Pt2D</span>, <span class="ident">UnitFmt</span>};
|
||||
|
||||
@ -499,15 +504,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
<span class="comment">// TODO Explain purpose</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">set_hovering</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">x</span>: <span class="ident">X</span>, <span class="ident">y</span>: <span class="ident">Y</span>) {
|
||||
<span class="comment">// TODO What series?</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::new</span>().<span class="ident">bg</span>(<span class="ident">Color::RED</span>);
|
||||
<span class="ident">txt</span>.<span class="ident">add_line</span>(<span class="macro">format!</span>(
|
||||
<span class="string">"at {}, {}"</span>,
|
||||
<span class="doccomment">/// Programmatically show a tooltip at the given x/y.</span>
|
||||
<span class="doccomment">///</span>
|
||||
<span class="doccomment">/// Useful (e.g.) when points on the line plot corresponds to a point on the map - as the user</span>
|
||||
<span class="doccomment">/// hovers on the map you can highlight the corresponding details on the plot.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">set_hovering</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">label</span>: <span class="kw-2">&</span><span class="ident">str</span>, <span class="ident">x</span>: <span class="ident">X</span>, <span class="ident">y</span>: <span class="ident">Y</span>) {
|
||||
<span class="comment">// mimic the tooltip style</span>
|
||||
<span class="kw">let</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text::from</span>(<span class="kw">crate</span><span class="ident">::Line</span>(<span class="macro">format!</span>(
|
||||
<span class="string">"{}: at {}, {}"</span>,
|
||||
<span class="ident">label</span>,
|
||||
<span class="ident">x</span>.<span class="ident">prettyprint</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">unit_fmt</span>),
|
||||
<span class="ident">y</span>.<span class="ident">prettyprint</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">unit_fmt</span>)
|
||||
));
|
||||
)))
|
||||
.<span class="ident">bg</span>(<span class="ident">Color::BLACK</span>)
|
||||
.<span class="ident">change_fg</span>(<span class="ident">ctx</span>.<span class="ident">style</span>().<span class="ident">text_tooltip_color</span>);
|
||||
|
||||
<span class="comment">// Find this point in screen-space</span>
|
||||
<span class="kw">let</span> <span class="ident">pt</span> <span class="op">=</span> <span class="ident">Pt2D::new</span>(
|
||||
|
@ -7,14 +7,17 @@
|
||||
top_left: <a class="struct" href="screen_geom/struct.ScreenPt.html" title="struct widgetry::screen_geom::ScreenPt">ScreenPt</a>,
|
||||
dims: <a class="struct" href="screen_geom/struct.ScreenDims.html" title="struct widgetry::screen_geom::ScreenDims">ScreenDims</a>,
|
||||
unit_fmt: <a class="struct" href="../geom/struct.UnitFmt.html" title="struct geom::UnitFmt">UnitFmt</a>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.draw" class="structfield small-section-header"><a href="#structfield.draw" class="anchor field"></a><code>draw: <a class="struct" href="backend_glow/struct.Drawable.html" title="struct widgetry::backend_glow::Drawable">Drawable</a></code></span><span id="structfield.max_x" class="structfield small-section-header"><a href="#structfield.max_x" class="anchor field"></a><code>max_x: X</code></span><span id="structfield.max_y" class="structfield small-section-header"><a href="#structfield.max_y" class="anchor field"></a><code>max_y: Y</code></span><span id="structfield.closest" class="structfield small-section-header"><a href="#structfield.closest" class="anchor field"></a><code>closest: <a class="struct" href="../geom/find_closest/struct.FindClosest.html" title="struct geom::find_closest::FindClosest">FindClosest</a><<a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></code></span><span id="structfield.hovering" class="structfield small-section-header"><a href="#structfield.hovering" class="anchor field"></a><code>hovering: <a class="enum" href="https://doc.rust-lang.org/1.55.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="widgets/line_plot/struct.Hovering.html" title="struct widgetry::widgets::line_plot::Hovering">Hovering</a><X, Y>></code></span><span id="structfield.top_left" class="structfield small-section-header"><a href="#structfield.top_left" class="anchor field"></a><code>top_left: <a class="struct" href="screen_geom/struct.ScreenPt.html" title="struct widgetry::screen_geom::ScreenPt">ScreenPt</a></code></span><span id="structfield.dims" class="structfield small-section-header"><a href="#structfield.dims" class="anchor field"></a><code>dims: <a class="struct" href="screen_geom/struct.ScreenDims.html" title="struct widgetry::screen_geom::ScreenDims">ScreenDims</a></code></span><span id="structfield.unit_fmt" class="structfield small-section-header"><a href="#structfield.unit_fmt" class="anchor field"></a><code>unit_fmt: <a class="struct" href="../geom/struct.UnitFmt.html" title="struct geom::UnitFmt">UnitFmt</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><div id="impl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#24-227" title="goto source code">[src]</a></div><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl<X: <a class="trait" href="widgets/plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><X>, Y: <a class="trait" href="widgets/plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><Y>> <a class="struct" href="widgets/line_plot/struct.LinePlot.html" title="struct widgetry::widgets::line_plot::LinePlot">LinePlot</a><X, Y></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.new_widget" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#27-195" title="goto source code">[src]</a></div><a href="#method.new_widget" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new_widget" class="fnname">new_widget</a>(<br> ctx: &<a class="struct" href="event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a><'_>, <br> label: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a>, <br> series: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="widgets/plots/struct.Series.html" title="struct widgetry::widgets::plots::Series">Series</a><X, Y>>, <br> opts: <a class="struct" href="widgets/plots/struct.PlotOptions.html" title="struct widgetry::widgets::plots::PlotOptions">PlotOptions</a><X, Y>, <br> unit_fmt: <a class="struct" href="../geom/struct.UnitFmt.html" title="struct geom::UnitFmt">UnitFmt</a><br>) -> <a class="struct" href="widgets/struct.Widget.html" title="struct widgetry::widgets::Widget">Widget</a></h4></div></summary><div class="docblock"><p><code>label</code> is used to name the actual LinePlot widget. The result of this call can’t be
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.draw" class="structfield small-section-header"><a href="#structfield.draw" class="anchor field"></a><code>draw: <a class="struct" href="backend_glow/struct.Drawable.html" title="struct widgetry::backend_glow::Drawable">Drawable</a></code></span><span id="structfield.max_x" class="structfield small-section-header"><a href="#structfield.max_x" class="anchor field"></a><code>max_x: X</code></span><span id="structfield.max_y" class="structfield small-section-header"><a href="#structfield.max_y" class="anchor field"></a><code>max_y: Y</code></span><span id="structfield.closest" class="structfield small-section-header"><a href="#structfield.closest" class="anchor field"></a><code>closest: <a class="struct" href="../geom/find_closest/struct.FindClosest.html" title="struct geom::find_closest::FindClosest">FindClosest</a><<a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></code></span><span id="structfield.hovering" class="structfield small-section-header"><a href="#structfield.hovering" class="anchor field"></a><code>hovering: <a class="enum" href="https://doc.rust-lang.org/1.55.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="widgets/line_plot/struct.Hovering.html" title="struct widgetry::widgets::line_plot::Hovering">Hovering</a><X, Y>></code></span><span id="structfield.top_left" class="structfield small-section-header"><a href="#structfield.top_left" class="anchor field"></a><code>top_left: <a class="struct" href="screen_geom/struct.ScreenPt.html" title="struct widgetry::screen_geom::ScreenPt">ScreenPt</a></code></span><span id="structfield.dims" class="structfield small-section-header"><a href="#structfield.dims" class="anchor field"></a><code>dims: <a class="struct" href="screen_geom/struct.ScreenDims.html" title="struct widgetry::screen_geom::ScreenDims">ScreenDims</a></code></span><span id="structfield.unit_fmt" class="structfield small-section-header"><a href="#structfield.unit_fmt" class="anchor field"></a><code>unit_fmt: <a class="struct" href="../geom/struct.UnitFmt.html" title="struct geom::UnitFmt">UnitFmt</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><div id="impl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#24-232" title="goto source code">[src]</a></div><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl<X: <a class="trait" href="widgets/plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><X>, Y: <a class="trait" href="widgets/plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><Y>> <a class="struct" href="widgets/line_plot/struct.LinePlot.html" title="struct widgetry::widgets::line_plot::LinePlot">LinePlot</a><X, Y></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.new_widget" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#27-195" title="goto source code">[src]</a></div><a href="#method.new_widget" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new_widget" class="fnname">new_widget</a>(<br> ctx: &<a class="struct" href="event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a><'_>, <br> label: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a>, <br> series: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="widgets/plots/struct.Series.html" title="struct widgetry::widgets::plots::Series">Series</a><X, Y>>, <br> opts: <a class="struct" href="widgets/plots/struct.PlotOptions.html" title="struct widgetry::widgets::plots::PlotOptions">PlotOptions</a><X, Y>, <br> unit_fmt: <a class="struct" href="../geom/struct.UnitFmt.html" title="struct geom::UnitFmt">UnitFmt</a><br>) -> <a class="struct" href="widgets/struct.Widget.html" title="struct widgetry::widgets::Widget">Widget</a></h4></div></summary><div class="docblock"><p><code>label</code> is used to name the actual LinePlot widget. The result of this call can’t be
|
||||
usefully <code>named</code>, since the plot is wrapped in some containers for formatting.</p>
|
||||
</div></details><div id="method.get_hovering" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#197-203" title="goto source code">[src]</a></div><a href="#method.get_hovering" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_hovering" class="fnname">get_hovering</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">(</a>X, Y<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">)</a>></h4></div><div id="method.set_hovering" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#206-226" title="goto source code">[src]</a></div><a href="#method.set_hovering" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.set_hovering" class="fnname">set_hovering</a>(&mut self, ctx: &mut <a class="struct" href="event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a><'_>, x: X, y: Y)</h4></div></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><div id="impl-WidgetImpl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#229-290" title="goto source code">[src]</a></div><a href="#impl-WidgetImpl" class="anchor"></a><h3 class="code-header in-band">impl<X: <a class="trait" href="widgets/plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><X>, Y: <a class="trait" href="widgets/plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><Y>> <a class="trait" href="widgets/trait.WidgetImpl.html" title="trait widgetry::widgets::WidgetImpl">WidgetImpl</a> for <a class="struct" href="widgets/line_plot/struct.LinePlot.html" title="struct widgetry::widgets::line_plot::LinePlot">LinePlot</a><X, Y></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.get_dims" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#230-232" title="goto source code">[src]</a></div><a href="#method.get_dims" class="anchor"></a><h4 class="code-header">fn <a href="widgets/trait.WidgetImpl.html#tymethod.get_dims" class="fnname">get_dims</a>(&self) -> <a class="struct" href="screen_geom/struct.ScreenDims.html" title="struct widgetry::screen_geom::ScreenDims">ScreenDims</a></h4></div></summary><div class='docblock'><p>What width and height does the widget occupy? If this changes, be sure to set
|
||||
</div></details><div id="method.get_hovering" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#197-203" title="goto source code">[src]</a></div><a href="#method.get_hovering" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_hovering" class="fnname">get_hovering</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">(</a>X, Y<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">)</a>></h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.set_hovering" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#209-231" title="goto source code">[src]</a></div><a href="#method.set_hovering" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.set_hovering" class="fnname">set_hovering</a>(&mut self, ctx: &mut <a class="struct" href="event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a><'_>, label: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a>, x: X, y: Y)</h4></div></summary><div class="docblock"><p>Programmatically show a tooltip at the given x/y.</p>
|
||||
<p>Useful (e.g.) when points on the line plot corresponds to a point on the map - as the user
|
||||
hovers on the map you can highlight the corresponding details on the plot.</p>
|
||||
</div></details></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><div id="impl-WidgetImpl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#234-295" title="goto source code">[src]</a></div><a href="#impl-WidgetImpl" class="anchor"></a><h3 class="code-header in-band">impl<X: <a class="trait" href="widgets/plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><X>, Y: <a class="trait" href="widgets/plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><Y>> <a class="trait" href="widgets/trait.WidgetImpl.html" title="trait widgetry::widgets::WidgetImpl">WidgetImpl</a> for <a class="struct" href="widgets/line_plot/struct.LinePlot.html" title="struct widgetry::widgets::line_plot::LinePlot">LinePlot</a><X, Y></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.get_dims" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#235-237" title="goto source code">[src]</a></div><a href="#method.get_dims" class="anchor"></a><h4 class="code-header">fn <a href="widgets/trait.WidgetImpl.html#tymethod.get_dims" class="fnname">get_dims</a>(&self) -> <a class="struct" href="screen_geom/struct.ScreenDims.html" title="struct widgetry::screen_geom::ScreenDims">ScreenDims</a></h4></div></summary><div class='docblock'><p>What width and height does the widget occupy? If this changes, be sure to set
|
||||
<code>redo_layout</code> to true in <code>event</code>. <a href="widgets/trait.WidgetImpl.html#tymethod.get_dims">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.set_pos" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#234-236" title="goto source code">[src]</a></div><a href="#method.set_pos" class="anchor"></a><h4 class="code-header">fn <a href="widgets/trait.WidgetImpl.html#tymethod.set_pos" class="fnname">set_pos</a>(&mut self, top_left: <a class="struct" href="screen_geom/struct.ScreenPt.html" title="struct widgetry::screen_geom::ScreenPt">ScreenPt</a>)</h4></div></summary><div class='docblock'><p>Your widget’s top left corner should be here. Handle mouse events and draw appropriately.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#238-278" title="goto source code">[src]</a></div><a href="#method.event" class="anchor"></a><h4 class="code-header">fn <a href="widgets/trait.WidgetImpl.html#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut <a class="struct" href="event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a><'_>, _: &mut <a class="struct" href="widgets/struct.WidgetOutput.html" title="struct widgetry::widgets::WidgetOutput">WidgetOutput</a>)</h4></div></summary><div class='docblock'><p>Your chance to react to an event. Any side effects outside of this widget are communicated
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.set_pos" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#239-241" title="goto source code">[src]</a></div><a href="#method.set_pos" class="anchor"></a><h4 class="code-header">fn <a href="widgets/trait.WidgetImpl.html#tymethod.set_pos" class="fnname">set_pos</a>(&mut self, top_left: <a class="struct" href="screen_geom/struct.ScreenPt.html" title="struct widgetry::screen_geom::ScreenPt">ScreenPt</a>)</h4></div></summary><div class='docblock'><p>Your widget’s top left corner should be here. Handle mouse events and draw appropriately.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#243-283" title="goto source code">[src]</a></div><a href="#method.event" class="anchor"></a><h4 class="code-header">fn <a href="widgets/trait.WidgetImpl.html#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut <a class="struct" href="event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a><'_>, _: &mut <a class="struct" href="widgets/struct.WidgetOutput.html" title="struct widgetry::widgets::WidgetOutput">WidgetOutput</a>)</h4></div></summary><div class='docblock'><p>Your chance to react to an event. Any side effects outside of this widget are communicated
|
||||
through the output. <a href="widgets/trait.WidgetImpl.html#tymethod.event">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#280-289" title="goto source code">[src]</a></div><a href="#method.draw" class="anchor"></a><h4 class="code-header">fn <a href="widgets/trait.WidgetImpl.html#tymethod.draw" class="fnname">draw</a>(&self, g: &mut <a class="struct" href="drawing/struct.GfxCtx.html" title="struct widgetry::drawing::GfxCtx">GfxCtx</a><'_>)</h4></div></summary><div class='docblock'><p>Draw the widget. Be sure to draw relative to the top-left specified by <code>set_pos</code>.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/line_plot.rs.html#285-294" title="goto source code">[src]</a></div><a href="#method.draw" class="anchor"></a><h4 class="code-header">fn <a href="widgets/trait.WidgetImpl.html#tymethod.draw" class="fnname">draw</a>(&self, g: &mut <a class="struct" href="drawing/struct.GfxCtx.html" title="struct widgetry::drawing::GfxCtx">GfxCtx</a><'_>)</h4></div></summary><div class='docblock'><p>Draw the widget. Be sure to draw relative to the top-left specified by <code>set_pos</code>.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.can_restore" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/mod.rs.html#61-63" title="goto source code">[src]</a></div><a href="#method.can_restore" class="anchor"></a><h4 class="code-header">fn <a href="widgets/trait.WidgetImpl.html#method.can_restore" class="fnname">can_restore</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>If a new Panel is being created to replace an older one, all widgets have the chance to
|
||||
preserve state from the previous version. <a href="widgets/trait.WidgetImpl.html#method.can_restore">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.restore" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/widgetry/widgets/mod.rs.html#66-68" title="goto source code">[src]</a></div><a href="#method.restore" class="anchor"></a><h4 class="code-header">fn <a href="widgets/trait.WidgetImpl.html#method.restore" class="fnname">restore</a>(&mut self, _: &mut <a class="struct" href="event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a><'_>, _prev: &dyn <a class="trait" href="widgets/trait.WidgetImpl.html" title="trait widgetry::widgets::WidgetImpl">WidgetImpl</a>)</h4></div></summary><div class='docblock'><p>Restore state from the previous version of this widget, with the same ID. Implementors must
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `line_plot` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, line_plot"><title>widgetry::widgets::line_plot - 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><h2 class="location">Module line_plot</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><div id="sidebar-vars" data-name="line_plot" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a class="mod" href="#">line_plot</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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/line_plot.rs.html#1-296" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `line_plot` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, line_plot"><title>widgetry::widgets::line_plot - 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><h2 class="location">Module line_plot</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><div id="sidebar-vars" data-name="line_plot" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a class="mod" href="#">line_plot</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></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/line_plot.rs.html#1-301" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.Hovering.html" title="widgetry::widgets::line_plot::Hovering struct">Hovering</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.LinePlot.html" title="widgetry::widgets::line_plot::LinePlot struct">LinePlot</a></div><div class="item-right docblock-short"></div></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="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
@ -7,14 +7,17 @@
|
||||
top_left: <a class="struct" href="../../screen_geom/struct.ScreenPt.html" title="struct widgetry::screen_geom::ScreenPt">ScreenPt</a>,
|
||||
dims: <a class="struct" href="../../screen_geom/struct.ScreenDims.html" title="struct widgetry::screen_geom::ScreenDims">ScreenDims</a>,
|
||||
unit_fmt: <a class="struct" href="../../../geom/struct.UnitFmt.html" title="struct geom::UnitFmt">UnitFmt</a>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.draw" class="structfield small-section-header"><a href="#structfield.draw" class="anchor field"></a><code>draw: <a class="struct" href="../../backend_glow/struct.Drawable.html" title="struct widgetry::backend_glow::Drawable">Drawable</a></code></span><span id="structfield.max_x" class="structfield small-section-header"><a href="#structfield.max_x" class="anchor field"></a><code>max_x: X</code></span><span id="structfield.max_y" class="structfield small-section-header"><a href="#structfield.max_y" class="anchor field"></a><code>max_y: Y</code></span><span id="structfield.closest" class="structfield small-section-header"><a href="#structfield.closest" class="anchor field"></a><code>closest: <a class="struct" href="../../../geom/find_closest/struct.FindClosest.html" title="struct geom::find_closest::FindClosest">FindClosest</a><<a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></code></span><span id="structfield.hovering" class="structfield small-section-header"><a href="#structfield.hovering" class="anchor field"></a><code>hovering: <a class="enum" href="https://doc.rust-lang.org/1.55.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.Hovering.html" title="struct widgetry::widgets::line_plot::Hovering">Hovering</a><X, Y>></code></span><span id="structfield.top_left" class="structfield small-section-header"><a href="#structfield.top_left" class="anchor field"></a><code>top_left: <a class="struct" href="../../screen_geom/struct.ScreenPt.html" title="struct widgetry::screen_geom::ScreenPt">ScreenPt</a></code></span><span id="structfield.dims" class="structfield small-section-header"><a href="#structfield.dims" class="anchor field"></a><code>dims: <a class="struct" href="../../screen_geom/struct.ScreenDims.html" title="struct widgetry::screen_geom::ScreenDims">ScreenDims</a></code></span><span id="structfield.unit_fmt" class="structfield small-section-header"><a href="#structfield.unit_fmt" class="anchor field"></a><code>unit_fmt: <a class="struct" href="../../../geom/struct.UnitFmt.html" title="struct geom::UnitFmt">UnitFmt</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><div id="impl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#24-227" title="goto source code">[src]</a></div><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl<X: <a class="trait" href="../plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><X>, Y: <a class="trait" href="../plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><Y>> <a class="struct" href="struct.LinePlot.html" title="struct widgetry::widgets::line_plot::LinePlot">LinePlot</a><X, Y></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.new_widget" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#27-195" title="goto source code">[src]</a></div><a href="#method.new_widget" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new_widget" class="fnname">new_widget</a>(<br> ctx: &<a class="struct" href="../../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a><'_>, <br> label: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a>, <br> series: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../plots/struct.Series.html" title="struct widgetry::widgets::plots::Series">Series</a><X, Y>>, <br> opts: <a class="struct" href="../plots/struct.PlotOptions.html" title="struct widgetry::widgets::plots::PlotOptions">PlotOptions</a><X, Y>, <br> unit_fmt: <a class="struct" href="../../../geom/struct.UnitFmt.html" title="struct geom::UnitFmt">UnitFmt</a><br>) -> <a class="struct" href="../struct.Widget.html" title="struct widgetry::widgets::Widget">Widget</a></h4></div></summary><div class="docblock"><p><code>label</code> is used to name the actual LinePlot widget. The result of this call can’t be
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.draw" class="structfield small-section-header"><a href="#structfield.draw" class="anchor field"></a><code>draw: <a class="struct" href="../../backend_glow/struct.Drawable.html" title="struct widgetry::backend_glow::Drawable">Drawable</a></code></span><span id="structfield.max_x" class="structfield small-section-header"><a href="#structfield.max_x" class="anchor field"></a><code>max_x: X</code></span><span id="structfield.max_y" class="structfield small-section-header"><a href="#structfield.max_y" class="anchor field"></a><code>max_y: Y</code></span><span id="structfield.closest" class="structfield small-section-header"><a href="#structfield.closest" class="anchor field"></a><code>closest: <a class="struct" href="../../../geom/find_closest/struct.FindClosest.html" title="struct geom::find_closest::FindClosest">FindClosest</a><<a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></code></span><span id="structfield.hovering" class="structfield small-section-header"><a href="#structfield.hovering" class="anchor field"></a><code>hovering: <a class="enum" href="https://doc.rust-lang.org/1.55.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.Hovering.html" title="struct widgetry::widgets::line_plot::Hovering">Hovering</a><X, Y>></code></span><span id="structfield.top_left" class="structfield small-section-header"><a href="#structfield.top_left" class="anchor field"></a><code>top_left: <a class="struct" href="../../screen_geom/struct.ScreenPt.html" title="struct widgetry::screen_geom::ScreenPt">ScreenPt</a></code></span><span id="structfield.dims" class="structfield small-section-header"><a href="#structfield.dims" class="anchor field"></a><code>dims: <a class="struct" href="../../screen_geom/struct.ScreenDims.html" title="struct widgetry::screen_geom::ScreenDims">ScreenDims</a></code></span><span id="structfield.unit_fmt" class="structfield small-section-header"><a href="#structfield.unit_fmt" class="anchor field"></a><code>unit_fmt: <a class="struct" href="../../../geom/struct.UnitFmt.html" title="struct geom::UnitFmt">UnitFmt</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><div id="impl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#24-232" title="goto source code">[src]</a></div><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl<X: <a class="trait" href="../plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><X>, Y: <a class="trait" href="../plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><Y>> <a class="struct" href="struct.LinePlot.html" title="struct widgetry::widgets::line_plot::LinePlot">LinePlot</a><X, Y></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.new_widget" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#27-195" title="goto source code">[src]</a></div><a href="#method.new_widget" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new_widget" class="fnname">new_widget</a>(<br> ctx: &<a class="struct" href="../../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a><'_>, <br> label: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a>, <br> series: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../plots/struct.Series.html" title="struct widgetry::widgets::plots::Series">Series</a><X, Y>>, <br> opts: <a class="struct" href="../plots/struct.PlotOptions.html" title="struct widgetry::widgets::plots::PlotOptions">PlotOptions</a><X, Y>, <br> unit_fmt: <a class="struct" href="../../../geom/struct.UnitFmt.html" title="struct geom::UnitFmt">UnitFmt</a><br>) -> <a class="struct" href="../struct.Widget.html" title="struct widgetry::widgets::Widget">Widget</a></h4></div></summary><div class="docblock"><p><code>label</code> is used to name the actual LinePlot widget. The result of this call can’t be
|
||||
usefully <code>named</code>, since the plot is wrapped in some containers for formatting.</p>
|
||||
</div></details><div id="method.get_hovering" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#197-203" title="goto source code">[src]</a></div><a href="#method.get_hovering" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_hovering" class="fnname">get_hovering</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">(</a>X, Y<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">)</a>></h4></div><div id="method.set_hovering" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#206-226" title="goto source code">[src]</a></div><a href="#method.set_hovering" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.set_hovering" class="fnname">set_hovering</a>(&mut self, ctx: &mut <a class="struct" href="../../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a><'_>, x: X, y: Y)</h4></div></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><div id="impl-WidgetImpl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#229-290" title="goto source code">[src]</a></div><a href="#impl-WidgetImpl" class="anchor"></a><h3 class="code-header in-band">impl<X: <a class="trait" href="../plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><X>, Y: <a class="trait" href="../plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><Y>> <a class="trait" href="../trait.WidgetImpl.html" title="trait widgetry::widgets::WidgetImpl">WidgetImpl</a> for <a class="struct" href="struct.LinePlot.html" title="struct widgetry::widgets::line_plot::LinePlot">LinePlot</a><X, Y></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.get_dims" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#230-232" title="goto source code">[src]</a></div><a href="#method.get_dims" class="anchor"></a><h4 class="code-header">fn <a href="../trait.WidgetImpl.html#tymethod.get_dims" class="fnname">get_dims</a>(&self) -> <a class="struct" href="../../screen_geom/struct.ScreenDims.html" title="struct widgetry::screen_geom::ScreenDims">ScreenDims</a></h4></div></summary><div class='docblock'><p>What width and height does the widget occupy? If this changes, be sure to set
|
||||
</div></details><div id="method.get_hovering" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#197-203" title="goto source code">[src]</a></div><a href="#method.get_hovering" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_hovering" class="fnname">get_hovering</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">(</a>X, Y<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">)</a>></h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.set_hovering" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#209-231" title="goto source code">[src]</a></div><a href="#method.set_hovering" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.set_hovering" class="fnname">set_hovering</a>(&mut self, ctx: &mut <a class="struct" href="../../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a><'_>, label: &<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a>, x: X, y: Y)</h4></div></summary><div class="docblock"><p>Programmatically show a tooltip at the given x/y.</p>
|
||||
<p>Useful (e.g.) when points on the line plot corresponds to a point on the map - as the user
|
||||
hovers on the map you can highlight the corresponding details on the plot.</p>
|
||||
</div></details></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><div id="impl-WidgetImpl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#234-295" title="goto source code">[src]</a></div><a href="#impl-WidgetImpl" class="anchor"></a><h3 class="code-header in-band">impl<X: <a class="trait" href="../plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><X>, Y: <a class="trait" href="../plots/trait.Axis.html" title="trait widgetry::widgets::plots::Axis">Axis</a><Y>> <a class="trait" href="../trait.WidgetImpl.html" title="trait widgetry::widgets::WidgetImpl">WidgetImpl</a> for <a class="struct" href="struct.LinePlot.html" title="struct widgetry::widgets::line_plot::LinePlot">LinePlot</a><X, Y></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.get_dims" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#235-237" title="goto source code">[src]</a></div><a href="#method.get_dims" class="anchor"></a><h4 class="code-header">fn <a href="../trait.WidgetImpl.html#tymethod.get_dims" class="fnname">get_dims</a>(&self) -> <a class="struct" href="../../screen_geom/struct.ScreenDims.html" title="struct widgetry::screen_geom::ScreenDims">ScreenDims</a></h4></div></summary><div class='docblock'><p>What width and height does the widget occupy? If this changes, be sure to set
|
||||
<code>redo_layout</code> to true in <code>event</code>. <a href="../trait.WidgetImpl.html#tymethod.get_dims">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.set_pos" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#234-236" title="goto source code">[src]</a></div><a href="#method.set_pos" class="anchor"></a><h4 class="code-header">fn <a href="../trait.WidgetImpl.html#tymethod.set_pos" class="fnname">set_pos</a>(&mut self, top_left: <a class="struct" href="../../screen_geom/struct.ScreenPt.html" title="struct widgetry::screen_geom::ScreenPt">ScreenPt</a>)</h4></div></summary><div class='docblock'><p>Your widget’s top left corner should be here. Handle mouse events and draw appropriately.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#238-278" title="goto source code">[src]</a></div><a href="#method.event" class="anchor"></a><h4 class="code-header">fn <a href="../trait.WidgetImpl.html#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut <a class="struct" href="../../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a><'_>, _: &mut <a class="struct" href="../struct.WidgetOutput.html" title="struct widgetry::widgets::WidgetOutput">WidgetOutput</a>)</h4></div></summary><div class='docblock'><p>Your chance to react to an event. Any side effects outside of this widget are communicated
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.set_pos" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#239-241" title="goto source code">[src]</a></div><a href="#method.set_pos" class="anchor"></a><h4 class="code-header">fn <a href="../trait.WidgetImpl.html#tymethod.set_pos" class="fnname">set_pos</a>(&mut self, top_left: <a class="struct" href="../../screen_geom/struct.ScreenPt.html" title="struct widgetry::screen_geom::ScreenPt">ScreenPt</a>)</h4></div></summary><div class='docblock'><p>Your widget’s top left corner should be here. Handle mouse events and draw appropriately.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#243-283" title="goto source code">[src]</a></div><a href="#method.event" class="anchor"></a><h4 class="code-header">fn <a href="../trait.WidgetImpl.html#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut <a class="struct" href="../../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a><'_>, _: &mut <a class="struct" href="../struct.WidgetOutput.html" title="struct widgetry::widgets::WidgetOutput">WidgetOutput</a>)</h4></div></summary><div class='docblock'><p>Your chance to react to an event. Any side effects outside of this widget are communicated
|
||||
through the output. <a href="../trait.WidgetImpl.html#tymethod.event">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#280-289" title="goto source code">[src]</a></div><a href="#method.draw" class="anchor"></a><h4 class="code-header">fn <a href="../trait.WidgetImpl.html#tymethod.draw" class="fnname">draw</a>(&self, g: &mut <a class="struct" href="../../drawing/struct.GfxCtx.html" title="struct widgetry::drawing::GfxCtx">GfxCtx</a><'_>)</h4></div></summary><div class='docblock'><p>Draw the widget. Be sure to draw relative to the top-left specified by <code>set_pos</code>.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/line_plot.rs.html#285-294" title="goto source code">[src]</a></div><a href="#method.draw" class="anchor"></a><h4 class="code-header">fn <a href="../trait.WidgetImpl.html#tymethod.draw" class="fnname">draw</a>(&self, g: &mut <a class="struct" href="../../drawing/struct.GfxCtx.html" title="struct widgetry::drawing::GfxCtx">GfxCtx</a><'_>)</h4></div></summary><div class='docblock'><p>Draw the widget. Be sure to draw relative to the top-left specified by <code>set_pos</code>.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.can_restore" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/mod.rs.html#61-63" title="goto source code">[src]</a></div><a href="#method.can_restore" class="anchor"></a><h4 class="code-header">fn <a href="../trait.WidgetImpl.html#method.can_restore" class="fnname">can_restore</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>If a new Panel is being created to replace an older one, all widgets have the chance to
|
||||
preserve state from the previous version. <a href="../trait.WidgetImpl.html#method.can_restore">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.restore" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/widgetry/widgets/mod.rs.html#66-68" title="goto source code">[src]</a></div><a href="#method.restore" class="anchor"></a><h4 class="code-header">fn <a href="../trait.WidgetImpl.html#method.restore" class="fnname">restore</a>(&mut self, _: &mut <a class="struct" href="../../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a><'_>, _prev: &dyn <a class="trait" href="../trait.WidgetImpl.html" title="trait widgetry::widgets::WidgetImpl">WidgetImpl</a>)</h4></div></summary><div class='docblock'><p>Restore state from the previous version of this widget, with the same ID. Implementors must
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user