mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 23:15:24 +03:00
deploy: af5811c33c
This commit is contained in:
parent
c903635bdf
commit
5c815cf57c
@ -5,10 +5,10 @@
|
||||
panel: Panel,
|
||||
highlight_start: Drawable,
|
||||
isochrone: <a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a>,
|
||||
hovering_on_bldg: <a class="struct" href="../../map_gui/simple_app/struct.Cached.html" title="struct map_gui::simple_app::Cached">Cached</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="struct" href="../../fifteen_min/viewer/struct.HoverOnBuilding.html" title="struct fifteen_min::viewer::HoverOnBuilding">HoverOnBuilding</a>>,
|
||||
hovering_on_bldg: Cached<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="struct" href="../../fifteen_min/viewer/struct.HoverOnBuilding.html" title="struct fifteen_min::viewer::HoverOnBuilding">HoverOnBuilding</a>>,
|
||||
}</pre></div><div class='docblock'><p>This is the UI state for exploring the isochrone/walkshed from a single building.</p>
|
||||
</div><h2 id='fields' class='fields small-section-header'>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.highlight_start" class="structfield small-section-header"><a href="#structfield.highlight_start" class="anchor field"></a><code>highlight_start: Drawable</code></span><span id="structfield.isochrone" class="structfield small-section-header"><a href="#structfield.isochrone" class="anchor field"></a><code>isochrone: <a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a></code></span><span id="structfield.hovering_on_bldg" class="structfield small-section-header"><a href="#structfield.hovering_on_bldg" class="anchor field"></a><code>hovering_on_bldg: <a class="struct" href="../../map_gui/simple_app/struct.Cached.html" title="struct map_gui::simple_app::Cached">Cached</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="struct" href="../../fifteen_min/viewer/struct.HoverOnBuilding.html" title="struct fifteen_min::viewer::HoverOnBuilding">HoverOnBuilding</a>></code></span><h2 id='implementations' class='small-section-header'>Implementations<a href='#implementations' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#34-56' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.random_start' class="method"><code>pub fn <a href='#method.random_start' class='fnname'>random_start</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#36-40' title='goto source code'>[src]</a></h4><div class='docblock'><p>Start with a random building</p>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.highlight_start" class="structfield small-section-header"><a href="#structfield.highlight_start" class="anchor field"></a><code>highlight_start: Drawable</code></span><span id="structfield.isochrone" class="structfield small-section-header"><a href="#structfield.isochrone" class="anchor field"></a><code>isochrone: <a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a></code></span><span id="structfield.hovering_on_bldg" class="structfield small-section-header"><a href="#structfield.hovering_on_bldg" class="anchor field"></a><code>hovering_on_bldg: Cached<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="struct" href="../../fifteen_min/viewer/struct.HoverOnBuilding.html" title="struct fifteen_min::viewer::HoverOnBuilding">HoverOnBuilding</a>></code></span><h2 id='implementations' class='small-section-header'>Implementations<a href='#implementations' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#34-56' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.random_start' class="method"><code>pub fn <a href='#method.random_start' class='fnname'>random_start</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#36-40' title='goto source code'>[src]</a></h4><div class='docblock'><p>Start with a random building</p>
|
||||
</div><h4 id='method.new' class="method"><code>pub fn <a href='#method.new' class='fnname'>new</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> start: <a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#42-55' title='goto source code'>[src]</a></h4></div><h2 id='trait-implementations' class='small-section-header'>Trait Implementations<a href='#trait-implementations' class='anchor'></a></h2><div id='trait-implementations-list'><h3 id='impl-State%3CSimpleApp%3C()%3E%3E' class='impl'><code class='in-band'>impl State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href='#impl-State%3CSimpleApp%3C()%3E%3E' class='anchor'></a><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#58-162' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.event' class="method hidden"><code>fn <a href='#method.event' class='fnname'>event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></code><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#59-151' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id='method.draw' class="method hidden"><code>fn <a href='#method.draw' class='fnname'>draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>)</code><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#153-161' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id='method.draw_baselayer' class="method hidden"><code>fn <a href='#method.draw_baselayer' class='fnname'>draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
|
@ -267,8 +267,8 @@ call this to handle all other events. <a href="#method.other_event">Read more</a
|
||||
</div><h4 id='method.draw-50' class="method hidden"><code>fn <a href='#method.draw' class='fnname'>draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class='srclink' href='../../src/game/sandbox/mod.rs.html#221-251' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id='method.on_destroy-49' class="method hidden"><code>fn <a href='#method.on_destroy' class='fnname'>on_destroy</a>(&mut self, _: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class='srclink' href='../../src/game/sandbox/mod.rs.html#253-257' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div><h4 id='method.draw_baselayer-49' class="method hidden"><code>fn <a href='#method.draw_baselayer' class='fnname'>draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div></div><h3 id='impl-State%3CApp%3E-5' class='impl'><code class='in-band'>impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/blocked_by/struct.Viewer.html" title="struct game::debug::blocked_by::Viewer">Viewer</a></code><a href='#impl-State%3CApp%3E-5' class='anchor'></a><a class='srclink' href='../../src/game/debug/blocked_by.rs.html#180-235' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.event-5' class="method hidden"><code>fn <a href='#method.event' class='fnname'>event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class='srclink' href='../../src/game/debug/blocked_by.rs.html#181-221' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id='method.draw-6' class="method hidden"><code>fn <a href='#method.draw' class='fnname'>draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class='srclink' href='../../src/game/debug/blocked_by.rs.html#223-234' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div></div><h3 id='impl-State%3CApp%3E-5' class='impl'><code class='in-band'>impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/blocked_by/struct.Viewer.html" title="struct game::debug::blocked_by::Viewer">Viewer</a></code><a href='#impl-State%3CApp%3E-5' class='anchor'></a><a class='srclink' href='../../src/game/debug/blocked_by.rs.html#179-234' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.event-5' class="method hidden"><code>fn <a href='#method.event' class='fnname'>event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class='srclink' href='../../src/game/debug/blocked_by.rs.html#180-220' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id='method.draw-6' class="method hidden"><code>fn <a href='#method.draw' class='fnname'>draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class='srclink' href='../../src/game/debug/blocked_by.rs.html#222-233' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id='method.draw_baselayer-5' class="method hidden"><code>fn <a href='#method.draw_baselayer' class='fnname'>draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id='method.on_destroy-5' class="method hidden"><code>fn <a href='#method.on_destroy' class='fnname'>on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></div><h3 id='impl-State%3CApp%3E-50' class='impl'><code class='in-band'>impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/sandbox/struct.BackToMainMenu.html" title="struct game::sandbox::BackToMainMenu">BackToMainMenu</a></code><a href='#impl-State%3CApp%3E-50' class='anchor'></a><a class='srclink' href='../../src/game/sandbox/mod.rs.html#293-300' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.event-50' class="method hidden"><code>fn <a href='#method.event' class='fnname'>event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class='srclink' href='../../src/game/sandbox/mod.rs.html#294-297' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `blocked_by` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, blocked_by"><title>game::debug::blocked_by - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module blocked_by</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>debug</a></p><script>window.sidebarCurrent = {name: 'blocked_by', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/debug/blocked_by.rs.html#1-235' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>debug</a>::<wbr><a class="mod" href=''>blocked_by</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/debug/blocked_by.rs.html#1-234' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>debug</a>::<wbr><a class="mod" href=''>blocked_by</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.Viewer.html" title='game::debug::blocked_by::Viewer struct'>Viewer</a></td><td class='docblock-short'><p>Visualize the graph of what agents are blocked by others.</p>
|
||||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='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-c1f324f9d3d7e3b2/out/built.rs.html#53' title='goto source code'>[src]</a></span><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></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Sat, 26 Dec 2020 21:44:23 +0000";</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='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-c1f324f9d3d7e3b2/out/built.rs.html#53' title='goto source code'>[src]</a></span><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></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Sat, 26 Dec 2020 22:55:28 +0000";</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -10,8 +10,7 @@ on native and web. Both cases are wrapped up as a State that runs a callback whe
|
||||
</td></tr><tr class='module-item'><td><a class="mod" href="options/index.html" title='map_gui::options mod'>options</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="render/index.html" title='map_gui::render mod'>render</a></td><td class='docblock-short'><p>Render static and dynamic map elements.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="mod" href="simple_app/index.html" title='map_gui::simple_app mod'>simple_app</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="tools/index.html" title='map_gui::tools mod'>tools</a></td><td class='docblock-short'><p>Assorted tools and UI states that're useful for applications built to display maps.</p>
|
||||
</td></tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.Cached.html" title='map_gui::Cached struct'>Cached</a></td><td class='docblock-short'><p>Store a cached key/value pair, only recalculating when the key changes.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.SimpleApp.html" title='map_gui::SimpleApp struct'>SimpleApp</a></td><td class='docblock-short'><p>Simple app state that just renders a static map, without any dynamic agents on the map.</p>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.SimpleApp.html" title='map_gui::SimpleApp struct'>SimpleApp</a></td><td class='docblock-short'><p>Simple app state that just renders a static map, without any dynamic agents on the map.</p>
|
||||
</td></tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
|
||||
<table><tr class='module-item'><td><a class="enum" href="enum.ID.html" title='map_gui::ID enum'>ID</a></td><td class='docblock-short'></td></tr></table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2>
|
||||
<table><tr class='module-item'><td><a class="trait" href="trait.AppLike.html" title='map_gui::AppLike trait'>AppLike</a></td><td class='docblock-short'><p>An application wishing to use the tools in this crate has to implement this on the struct that
|
||||
|
@ -1 +1 @@
|
||||
initSidebarItems({"enum":[["ID",""]],"mod":[["colors","A color scheme groups colors used for different map, dynamic, and UI elements in one place, to encourage deduplication. The player can also switch between different color schemes."],["load","Loading large resources (like maps, scenarios, and prebaked data) requires different strategies on native and web. Both cases are wrapped up as a State that runs a callback when done."],["options",""],["render","Render static and dynamic map elements."],["simple_app",""],["tools","Assorted tools and UI states that're useful for applications built to display maps."]],"struct":[["Cached","Store a cached key/value pair, only recalculating when the key changes."],["SimpleApp","Simple app state that just renders a static map, without any dynamic agents on the map."]],"trait":[["AppLike","An application wishing to use the tools in this crate has to implement this on the struct that implements `widgetry::SharedAppState`, so that the tools here can access the map. See `SimpleApp` for an example implementation."]]});
|
||||
initSidebarItems({"enum":[["ID",""]],"mod":[["colors","A color scheme groups colors used for different map, dynamic, and UI elements in one place, to encourage deduplication. The player can also switch between different color schemes."],["load","Loading large resources (like maps, scenarios, and prebaked data) requires different strategies on native and web. Both cases are wrapped up as a State that runs a callback when done."],["options",""],["render","Render static and dynamic map elements."],["simple_app",""],["tools","Assorted tools and UI states that're useful for applications built to display maps."]],"struct":[["SimpleApp","Simple app state that just renders a static map, without any dynamic agents on the map."]],"trait":[["AppLike","An application wishing to use the tools in this crate has to implement this on the struct that implements `widgetry::SharedAppState`, so that the tools here can access the map. See `SimpleApp` for an example implementation."]]});
|
@ -1,7 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `simple_app` mod in crate `map_gui`."><meta name="keywords" content="rust, rustlang, rust-lang, simple_app"><title>map_gui::simple_app - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../map_gui/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module simple_app</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class='location'><a href='../index.html'>map_gui</a></p><script>window.sidebarCurrent = {name: 'simple_app', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/map_gui/simple_app.rs.html#1-345' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>map_gui</a>::<wbr><a class="mod" href=''>simple_app</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.Cached.html" title='map_gui::simple_app::Cached struct'>Cached</a></td><td class='docblock-short'><p>Store a cached key/value pair, only recalculating when the key changes.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.SimpleApp.html" title='map_gui::simple_app::SimpleApp struct'>SimpleApp</a></td><td class='docblock-short'><p>Simple app state that just renders a static map, without any dynamic agents on the map.</p>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/map_gui/simple_app.rs.html#1-309' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>map_gui</a>::<wbr><a class="mod" href=''>simple_app</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.SimpleApp.html" title='map_gui::simple_app::SimpleApp struct'>SimpleApp</a></td><td class='docblock-short'><p>Simple app state that just renders a static map, without any dynamic agents on the map.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.SimpleWarper.html" title='map_gui::simple_app::SimpleWarper struct'>SimpleWarper</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "map_gui";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
initSidebarItems({"struct":[["Cached","Store a cached key/value pair, only recalculating when the key changes."],["SimpleApp","Simple app state that just renders a static map, without any dynamic agents on the map."],["SimpleWarper",""]]});
|
||||
initSidebarItems({"struct":[["SimpleApp","Simple app state that just renders a static map, without any dynamic agents on the map."],["SimpleWarper",""]]});
|
File diff suppressed because one or more lines are too long
@ -499,12 +499,12 @@
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">tools</span>::{
|
||||
<span class="ident">amenity_type</span>, <span class="ident">nice_map_name</span>, <span class="ident">open_browser</span>, <span class="ident">CityPicker</span>, <span class="ident">ColorLegend</span>, <span class="ident">PopupMsg</span>,
|
||||
};
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::{<span class="ident">Cached</span>, <span class="ident">ID</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">ID</span>;
|
||||
<span class="kw">use</span> <span class="ident">map_model</span>::<span class="ident">connectivity</span>::<span class="ident">WalkingOptions</span>;
|
||||
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">Building</span>, <span class="ident">BuildingID</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::<span class="ident">table</span>::{<span class="ident">Col</span>, <span class="ident">Filter</span>, <span class="ident">Table</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
||||
<span class="ident">lctrl</span>, <span class="ident">Btn</span>, <span class="ident">Checkbox</span>, <span class="ident">Choice</span>, <span class="ident">Color</span>, <span class="ident">Drawable</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>,
|
||||
<span class="ident">lctrl</span>, <span class="ident">Btn</span>, <span class="ident">Cached</span>, <span class="ident">Checkbox</span>, <span class="ident">Choice</span>, <span class="ident">Color</span>, <span class="ident">Drawable</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>,
|
||||
<span class="ident">HorizontalAlignment</span>, <span class="ident">Key</span>, <span class="ident">Line</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">RewriteColor</span>, <span class="ident">State</span>, <span class="ident">Text</span>, <span class="ident">TextExt</span>, <span class="ident">Transition</span>,
|
||||
<span class="ident">VerticalAlignment</span>, <span class="ident">Widget</span>,
|
||||
};
|
||||
|
@ -235,17 +235,15 @@
|
||||
<span id="232">232</span>
|
||||
<span id="233">233</span>
|
||||
<span id="234">234</span>
|
||||
<span id="235">235</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">BTreeMap</span>, <span class="ident">HashSet</span>};
|
||||
|
||||
<span class="kw">use</span> <span class="ident">abstutil</span>::<span class="ident">Counter</span>;
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">ArrowCap</span>, <span class="ident">Circle</span>, <span class="ident">Distance</span>, <span class="ident">Duration</span>, <span class="ident">PolyLine</span>, <span class="ident">Polygon</span>, <span class="ident">Pt2D</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">Cached</span>;
|
||||
<span class="kw">use</span> <span class="ident">sim</span>::{<span class="ident">AgentID</span>, <span class="ident">DelayCause</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
||||
<span class="ident">Btn</span>, <span class="ident">Color</span>, <span class="ident">Drawable</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>, <span class="ident">HorizontalAlignment</span>, <span class="ident">Line</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>,
|
||||
<span class="ident">State</span>, <span class="ident">Text</span>, <span class="ident">VerticalAlignment</span>, <span class="ident">Widget</span>,
|
||||
<span class="ident">Btn</span>, <span class="ident">Cached</span>, <span class="ident">Color</span>, <span class="ident">Drawable</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>, <span class="ident">HorizontalAlignment</span>, <span class="ident">Line</span>, <span class="ident">Outcome</span>,
|
||||
<span class="ident">Panel</span>, <span class="ident">State</span>, <span class="ident">Text</span>, <span class="ident">VerticalAlignment</span>, <span class="ident">Widget</span>,
|
||||
};
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>;
|
||||
|
@ -797,13 +797,13 @@
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">options</span>::<span class="ident">OptionsPanel</span>;
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">render</span>::{<span class="ident">calculate_corners</span>, <span class="ident">DrawOptions</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">tools</span>::{<span class="ident">ChooseSomething</span>, <span class="ident">PopupMsg</span>, <span class="ident">PromptInput</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::{<span class="ident">Cached</span>, <span class="ident">ID</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">ID</span>;
|
||||
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">osm</span>, <span class="ident">ControlTrafficSignal</span>, <span class="ident">IntersectionID</span>, <span class="ident">NORMAL_LANE_THICKNESS</span>};
|
||||
<span class="kw">use</span> <span class="ident">sim</span>::<span class="ident">Sim</span>;
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
||||
<span class="ident">lctrl</span>, <span class="ident">Btn</span>, <span class="ident">Checkbox</span>, <span class="ident">Choice</span>, <span class="ident">Color</span>, <span class="ident">DrawBaselayer</span>, <span class="ident">Drawable</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>,
|
||||
<span class="ident">HorizontalAlignment</span>, <span class="ident">Key</span>, <span class="ident">Line</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">State</span>, <span class="ident">Text</span>, <span class="ident">UpdateType</span>, <span class="ident">VerticalAlignment</span>,
|
||||
<span class="ident">Widget</span>,
|
||||
<span class="ident">lctrl</span>, <span class="ident">Btn</span>, <span class="ident">Cached</span>, <span class="ident">Checkbox</span>, <span class="ident">Choice</span>, <span class="ident">Color</span>, <span class="ident">DrawBaselayer</span>, <span class="ident">Drawable</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>,
|
||||
<span class="ident">GfxCtx</span>, <span class="ident">HorizontalAlignment</span>, <span class="ident">Key</span>, <span class="ident">Line</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">State</span>, <span class="ident">Text</span>, <span class="ident">UpdateType</span>,
|
||||
<span class="ident">VerticalAlignment</span>, <span class="ident">Widget</span>,
|
||||
};
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::{<span class="ident">App</span>, <span class="ident">ShowLayers</span>, <span class="ident">ShowObject</span>, <span class="ident">Transition</span>};
|
||||
|
@ -122,7 +122,7 @@
|
||||
<span class="doccomment">/// The output of `rustdoc -V`</span>
|
||||
<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">"rustdoc 1.48.0 (7eac88abb 2020-11-16)"</span>;
|
||||
<span class="doccomment">/// The built-time in RFC2822, UTC</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">"Sat, 26 Dec 2020 21:44:23 +0000"</span>;
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Sat, 26 Dec 2020 22:55:28 +0000"</span>;
|
||||
<span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</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">"x86_64"</span>;
|
||||
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>
|
||||
|
@ -131,9 +131,9 @@
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Duration</span>, <span class="ident">Pt2D</span>, <span class="ident">Time</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">AreaID</span>, <span class="ident">BuildingID</span>, <span class="ident">BusStopID</span>, <span class="ident">IntersectionID</span>, <span class="ident">LaneID</span>, <span class="ident">Map</span>, <span class="ident">ParkingLotID</span>, <span class="ident">RoadID</span>};
|
||||
<span class="kw">use</span> <span class="ident">sim</span>::{<span class="ident">AgentID</span>, <span class="ident">CarID</span>, <span class="ident">PedestrianID</span>, <span class="ident">Sim</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{<span class="ident">EventCtx</span>, <span class="ident">GfxCtx</span>, <span class="ident">State</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{<span class="ident">Cached</span>, <span class="ident">EventCtx</span>, <span class="ident">GfxCtx</span>, <span class="ident">State</span>};
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">simple_app</span>::{<span class="ident">Cached</span>, <span class="ident">SimpleApp</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">simple_app</span>::<span class="ident">SimpleApp</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">render</span>::<span class="ident">DrawOptions</span>;
|
||||
<span class="kw">use</span> <span class="ident">colors</span>::{<span class="ident">ColorScheme</span>, <span class="ident">ColorSchemeChoice</span>};
|
||||
<span class="kw">use</span> <span class="ident">options</span>::<span class="ident">Options</span>;
|
||||
|
@ -310,42 +310,6 @@
|
||||
<span id="307">307</span>
|
||||
<span id="308">308</span>
|
||||
<span id="309">309</span>
|
||||
<span id="310">310</span>
|
||||
<span id="311">311</span>
|
||||
<span id="312">312</span>
|
||||
<span id="313">313</span>
|
||||
<span id="314">314</span>
|
||||
<span id="315">315</span>
|
||||
<span id="316">316</span>
|
||||
<span id="317">317</span>
|
||||
<span id="318">318</span>
|
||||
<span id="319">319</span>
|
||||
<span id="320">320</span>
|
||||
<span id="321">321</span>
|
||||
<span id="322">322</span>
|
||||
<span id="323">323</span>
|
||||
<span id="324">324</span>
|
||||
<span id="325">325</span>
|
||||
<span id="326">326</span>
|
||||
<span id="327">327</span>
|
||||
<span id="328">328</span>
|
||||
<span id="329">329</span>
|
||||
<span id="330">330</span>
|
||||
<span id="331">331</span>
|
||||
<span id="332">332</span>
|
||||
<span id="333">333</span>
|
||||
<span id="334">334</span>
|
||||
<span id="335">335</span>
|
||||
<span id="336">336</span>
|
||||
<span id="337">337</span>
|
||||
<span id="338">338</span>
|
||||
<span id="339">339</span>
|
||||
<span id="340">340</span>
|
||||
<span id="341">341</span>
|
||||
<span id="342">342</span>
|
||||
<span id="343">343</span>
|
||||
<span id="344">344</span>
|
||||
<span id="345">345</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">abstutil</span>::{<span class="ident">CmdArgs</span>, <span class="ident">Timer</span>};
|
||||
<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">Pt2D</span>, <span class="ident">Time</span>};
|
||||
@ -656,41 +620,5 @@
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">draw</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="kw">_</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">GfxCtx</span>, <span class="kw">_</span>: <span class="kw-2">&</span><span class="ident">SimpleApp</span><span class="op"><</span><span class="ident">T</span><span class="op">></span>) {}
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Store a cached key/value pair, only recalculating when the key changes.</span>
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Cached</span><span class="op"><</span><span class="ident">K</span>: <span class="ident">PartialEq</span> <span class="op">+</span> <span class="ident">Clone</span>, <span class="ident">V</span><span class="op">></span> {
|
||||
<span class="ident">contents</span>: <span class="prelude-ty">Option</span><span class="op"><</span>(<span class="ident">K</span>, <span class="ident">V</span>)<span class="op">></span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span><span class="op"><</span><span class="ident">K</span>: <span class="ident">PartialEq</span> <span class="op">+</span> <span class="ident">Clone</span>, <span class="ident">V</span><span class="op">></span> <span class="ident">Cached</span><span class="op"><</span><span class="ident">K</span>, <span class="ident">V</span><span class="op">></span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">new</span>() <span class="op">-</span><span class="op">></span> <span class="ident">Cached</span><span class="op"><</span><span class="ident">K</span>, <span class="ident">V</span><span class="op">></span> {
|
||||
<span class="ident">Cached</span> { <span class="ident">contents</span>: <span class="prelude-val">None</span> }
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Get the current key.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">key</span>(<span class="kw-2">&</span><span class="self">self</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">K</span><span class="op">></span> {
|
||||
<span class="self">self</span>.<span class="ident">contents</span>.<span class="ident">as_ref</span>().<span class="ident">map</span>(<span class="op">|</span>(<span class="ident">k</span>, <span class="kw">_</span>)<span class="op">|</span> <span class="ident">k</span>.<span class="ident">clone</span>())
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Get the current value.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">value</span>(<span class="kw-2">&</span><span class="self">self</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="kw-2">&</span><span class="ident">V</span><span class="op">></span> {
|
||||
<span class="self">self</span>.<span class="ident">contents</span>.<span class="ident">as_ref</span>().<span class="ident">map</span>(<span class="op">|</span>(<span class="kw">_</span>, <span class="ident">v</span>)<span class="op">|</span> <span class="ident">v</span>)
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Update the value if the key has changed.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">update</span><span class="op"><</span><span class="ident">F</span>: <span class="ident">FnMut</span>(<span class="ident">K</span>) <span class="op">-</span><span class="op">></span> <span class="ident">V</span><span class="op">></span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">key</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">K</span><span class="op">></span>, <span class="kw-2">mut</span> <span class="ident">produce_value</span>: <span class="ident">F</span>) {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">new_key</span>) <span class="op">=</span> <span class="ident">key</span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">key</span>() <span class="op">!</span><span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">new_key</span>.<span class="ident">clone</span>()) {
|
||||
<span class="self">self</span>.<span class="ident">contents</span> <span class="op">=</span> <span class="prelude-val">Some</span>((<span class="ident">new_key</span>.<span class="ident">clone</span>(), <span class="ident">produce_value</span>(<span class="ident">new_key</span>)));
|
||||
}
|
||||
} <span class="kw">else</span> {
|
||||
<span class="self">self</span>.<span class="ident">contents</span> <span class="op">=</span> <span class="prelude-val">None</span>;
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">clear</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>) {
|
||||
<span class="self">self</span>.<span class="ident">contents</span> <span class="op">=</span> <span class="prelude-val">None</span>;
|
||||
}
|
||||
}
|
||||
</pre></div>
|
||||
</section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "map_gui";</script><script src="../../main.js"></script><script src="../../source-script.js"></script><script src="../../source-files.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -173,6 +173,7 @@
|
||||
<span id="170">170</span>
|
||||
<span id="171">171</span>
|
||||
<span id="172">172</span>
|
||||
<span id="173">173</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">//! # Widgets</span>
|
||||
<span class="doccomment">//!</span>
|
||||
@ -218,6 +219,7 @@
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">style</span>::<span class="ident">Style</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">text</span>::{<span class="ident">Line</span>, <span class="ident">Text</span>, <span class="ident">TextExt</span>, <span class="ident">TextSpan</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">tools</span>::<span class="ident">warper</span>::<span class="ident">Warper</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">tools</span>::<span class="ident">Cached</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">widgets</span>::<span class="ident">autocomplete</span>::<span class="ident">Autocomplete</span>;
|
||||
<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">widgets</span>::<span class="ident">button</span>::<span class="ident">Button</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">widgets</span>::<span class="ident">button</span>::{<span class="ident">Btn</span>, <span class="ident">MultiButton</span>};
|
||||
|
@ -1,10 +1,82 @@
|
||||
<!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="Source to the Rust file `widgetry/src/tools/mod.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>mod.rs.html -- source</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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc source"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><pre class="line-numbers"><span id="1">1</span>
|
||||
<span id="2">2</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><pre class="line-numbers"><span id="1"> 1</span>
|
||||
<span id="2"> 2</span>
|
||||
<span id="3"> 3</span>
|
||||
<span id="4"> 4</span>
|
||||
<span id="5"> 5</span>
|
||||
<span id="6"> 6</span>
|
||||
<span id="7"> 7</span>
|
||||
<span id="8"> 8</span>
|
||||
<span id="9"> 9</span>
|
||||
<span id="10">10</span>
|
||||
<span id="11">11</span>
|
||||
<span id="12">12</span>
|
||||
<span id="13">13</span>
|
||||
<span id="14">14</span>
|
||||
<span id="15">15</span>
|
||||
<span id="16">16</span>
|
||||
<span id="17">17</span>
|
||||
<span id="18">18</span>
|
||||
<span id="19">19</span>
|
||||
<span id="20">20</span>
|
||||
<span id="21">21</span>
|
||||
<span id="22">22</span>
|
||||
<span id="23">23</span>
|
||||
<span id="24">24</span>
|
||||
<span id="25">25</span>
|
||||
<span id="26">26</span>
|
||||
<span id="27">27</span>
|
||||
<span id="28">28</span>
|
||||
<span id="29">29</span>
|
||||
<span id="30">30</span>
|
||||
<span id="31">31</span>
|
||||
<span id="32">32</span>
|
||||
<span id="33">33</span>
|
||||
<span id="34">34</span>
|
||||
<span id="35">35</span>
|
||||
<span id="36">36</span>
|
||||
<span id="37">37</span>
|
||||
<span id="38">38</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">pub</span> <span class="kw">mod</span> <span class="ident">screenshot</span>;
|
||||
<span class="kw">pub</span> <span class="kw">mod</span> <span class="ident">warper</span>;
|
||||
|
||||
<span class="doccomment">/// Store a cached key/value pair, only recalculating when the key changes.</span>
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Cached</span><span class="op"><</span><span class="ident">K</span>: <span class="ident">PartialEq</span> <span class="op">+</span> <span class="ident">Clone</span>, <span class="ident">V</span><span class="op">></span> {
|
||||
<span class="ident">contents</span>: <span class="prelude-ty">Option</span><span class="op"><</span>(<span class="ident">K</span>, <span class="ident">V</span>)<span class="op">></span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span><span class="op"><</span><span class="ident">K</span>: <span class="ident">PartialEq</span> <span class="op">+</span> <span class="ident">Clone</span>, <span class="ident">V</span><span class="op">></span> <span class="ident">Cached</span><span class="op"><</span><span class="ident">K</span>, <span class="ident">V</span><span class="op">></span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">new</span>() <span class="op">-</span><span class="op">></span> <span class="ident">Cached</span><span class="op"><</span><span class="ident">K</span>, <span class="ident">V</span><span class="op">></span> {
|
||||
<span class="ident">Cached</span> { <span class="ident">contents</span>: <span class="prelude-val">None</span> }
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Get the current key.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">key</span>(<span class="kw-2">&</span><span class="self">self</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">K</span><span class="op">></span> {
|
||||
<span class="self">self</span>.<span class="ident">contents</span>.<span class="ident">as_ref</span>().<span class="ident">map</span>(<span class="op">|</span>(<span class="ident">k</span>, <span class="kw">_</span>)<span class="op">|</span> <span class="ident">k</span>.<span class="ident">clone</span>())
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Get the current value.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">value</span>(<span class="kw-2">&</span><span class="self">self</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="kw-2">&</span><span class="ident">V</span><span class="op">></span> {
|
||||
<span class="self">self</span>.<span class="ident">contents</span>.<span class="ident">as_ref</span>().<span class="ident">map</span>(<span class="op">|</span>(<span class="kw">_</span>, <span class="ident">v</span>)<span class="op">|</span> <span class="ident">v</span>)
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Update the value if the key has changed.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">update</span><span class="op"><</span><span class="ident">F</span>: <span class="ident">FnMut</span>(<span class="ident">K</span>) <span class="op">-</span><span class="op">></span> <span class="ident">V</span><span class="op">></span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">key</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">K</span><span class="op">></span>, <span class="kw-2">mut</span> <span class="ident">produce_value</span>: <span class="ident">F</span>) {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">new_key</span>) <span class="op">=</span> <span class="ident">key</span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">key</span>() <span class="op">!</span><span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">new_key</span>.<span class="ident">clone</span>()) {
|
||||
<span class="self">self</span>.<span class="ident">contents</span> <span class="op">=</span> <span class="prelude-val">Some</span>((<span class="ident">new_key</span>.<span class="ident">clone</span>(), <span class="ident">produce_value</span>(<span class="ident">new_key</span>)));
|
||||
}
|
||||
} <span class="kw">else</span> {
|
||||
<span class="self">self</span>.<span class="ident">contents</span> <span class="op">=</span> <span class="prelude-val">None</span>;
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">clear</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>) {
|
||||
<span class="self">self</span>.<span class="ident">contents</span> <span class="op">=</span> <span class="prelude-val">None</span>;
|
||||
}
|
||||
}
|
||||
</pre></div>
|
||||
</section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "widgetry";</script><script src="../../../main.js"></script><script src="../../../source-script.js"></script><script src="../../../source-files.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `backend` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, backend"><title>widgetry::backend - 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 src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module backend</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li></ul></div><p class='location'><a href='../index.html'>widgetry</a></p><script>window.sidebarCurrent = {name: 'backend', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='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/lib.rs.html#88-91' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>widgetry</a>::<wbr><a class="mod" href=''>backend</a></span></h1><h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</a></h2>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='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/lib.rs.html#89-92' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>widgetry</a>::<wbr><a class="mod" href=''>backend</a></span></h1><h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</a></h2>
|
||||
<table><tr><td><code>pub use crate::<a class="mod" href="../../widgetry/backend_glow/index.html" title="mod widgetry::backend_glow">backend_glow</a>::*;</code></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "widgetry";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `widgetry` crate."><meta name="keywords" content="rust, rustlang, rust-lang, widgetry"><title>widgetry - 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 src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../widgetry/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate widgetry</p><div class='block version'><p>Version 0.1.0</p></div><div class="sidebar-elems"><a id='all-types' href='all.html'><p>See all widgetry's items</p></a><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'widgetry', ty: 'mod', relpath: '../'};</script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='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/lib.rs.html#1-172' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>widgetry</a></span></h1><div class='docblock'><h1 id="widgets" class="section-header"><a href="#widgets">Widgets</a></h1>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='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/lib.rs.html#1-173' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>widgetry</a></span></h1><div class='docblock'><h1 id="widgets" class="section-header"><a href="#widgets">Widgets</a></h1>
|
||||
<p>If none of these do what you need, implementing a new <a href="../widgetry/widgets/trait.WidgetImpl.html" title="WidgetImpl"><code>WidgetImpl</code></a> isn't tough.</p>
|
||||
<p>TODO inline pictures of some of these</p>
|
||||
<ul>
|
||||
@ -32,7 +32,8 @@ the map and pre-rendered geometry for it. The individual states might start with
|
||||
screen or menu to choose a map, then a map viewer, then maybe a state to drill down into pieces
|
||||
of the map.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="mod" href="assets/index.html" title='widgetry::assets mod'>assets</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="backend/index.html" title='widgetry::backend mod'>backend</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="backend_glow/index.html" title='widgetry::backend_glow mod'>backend_glow</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="backend_glow_native/index.html" title='widgetry::backend_glow_native mod'>backend_glow_native</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="canvas/index.html" title='widgetry::canvas mod'>canvas</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="color/index.html" title='widgetry::color mod'>color</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="drawing/index.html" title='widgetry::drawing mod'>drawing</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="event/index.html" title='widgetry::event mod'>event</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="event_ctx/index.html" title='widgetry::event_ctx mod'>event_ctx</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="geom/index.html" title='widgetry::geom mod'>geom</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="input/index.html" title='widgetry::input mod'>input</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="runner/index.html" title='widgetry::runner mod'>runner</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="screen_geom/index.html" title='widgetry::screen_geom mod'>screen_geom</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="style/index.html" title='widgetry::style mod'>style</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="svg/index.html" title='widgetry::svg mod'>svg</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="table/index.html" title='widgetry::table mod'>table</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="text/index.html" title='widgetry::text mod'>text</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="tools/index.html" title='widgetry::tools mod'>tools</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="widgets/index.html" title='widgetry::widgets mod'>widgets</a></td><td class='docblock-short'></td></tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.Autocomplete.html" title='widgetry::Autocomplete struct'>Autocomplete</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Btn.html" title='widgetry::Btn struct'>Btn</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Canvas.html" title='widgetry::Canvas struct'>Canvas</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Checkbox.html" title='widgetry::Checkbox struct'>Checkbox</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Choice.html" title='widgetry::Choice struct'>Choice</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Color.html" title='widgetry::Color struct'>Color</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.CompareTimes.html" title='widgetry::CompareTimes struct'>CompareTimes</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.DrawWithTooltips.html" title='widgetry::DrawWithTooltips struct'>DrawWithTooltips</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Drawable.html" title='widgetry::Drawable struct'>Drawable</a></td><td class='docblock-short'><p>Geometry that's been uploaded to the GPU once and can be quickly redrawn many times. Create by
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.Autocomplete.html" title='widgetry::Autocomplete struct'>Autocomplete</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Btn.html" title='widgetry::Btn struct'>Btn</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Cached.html" title='widgetry::Cached struct'>Cached</a></td><td class='docblock-short'><p>Store a cached key/value pair, only recalculating when the key changes.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.Canvas.html" title='widgetry::Canvas struct'>Canvas</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Checkbox.html" title='widgetry::Checkbox struct'>Checkbox</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Choice.html" title='widgetry::Choice struct'>Choice</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Color.html" title='widgetry::Color struct'>Color</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.CompareTimes.html" title='widgetry::CompareTimes struct'>CompareTimes</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.DrawWithTooltips.html" title='widgetry::DrawWithTooltips struct'>DrawWithTooltips</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Drawable.html" title='widgetry::Drawable struct'>Drawable</a></td><td class='docblock-short'><p>Geometry that's been uploaded to the GPU once and can be quickly redrawn many times. Create by
|
||||
creating a <code>GeomBatch</code> and calling <code>ctx.upload(batch)</code>.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.EdgeInsets.html" title='widgetry::EdgeInsets struct'>EdgeInsets</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.EventCtx.html" title='widgetry::EventCtx struct'>EventCtx</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.FanChart.html" title='widgetry::FanChart struct'>FanChart</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Filler.html" title='widgetry::Filler struct'>Filler</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.GeomBatch.html" title='widgetry::GeomBatch struct'>GeomBatch</a></td><td class='docblock-short'><p>A mutable builder for a group of colored polygons.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.GfxCtx.html" title='widgetry::GfxCtx struct'>GfxCtx</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.LinePlot.html" title='widgetry::LinePlot struct'>LinePlot</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.LinearGradient.html" title='widgetry::LinearGradient struct'>LinearGradient</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Menu.html" title='widgetry::Menu struct'>Menu</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.MultiButton.html" title='widgetry::MultiButton struct'>MultiButton</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Panel.html" title='widgetry::Panel struct'>Panel</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.PersistentSplit.html" title='widgetry::PersistentSplit struct'>PersistentSplit</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.PlotOptions.html" title='widgetry::PlotOptions struct'>PlotOptions</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Prerender.html" title='widgetry::Prerender struct'>Prerender</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.ScatterPlot.html" title='widgetry::ScatterPlot struct'>ScatterPlot</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.ScreenDims.html" title='widgetry::ScreenDims struct'>ScreenDims</a></td><td class='docblock-short'><p>ScreenDims is in units of logical pixels, as opposed to physical pixels.</p>
|
||||
|
@ -1 +1 @@
|
||||
initSidebarItems({"enum":[["DrawBaselayer","Before `State::draw` is called, draw something else."],["Event",""],["Fill",""],["HorizontalAlignment",""],["Key",""],["MultiKey",""],["Outcome",""],["RewriteColor","A way to transform all colors in a GeomBatch."],["Transition","When a state responds to an event, it can specify some way to manipulate the stack of states."],["UpdateType",""],["VerticalAlignment",""]],"fn":[["Line",""],["hotkeys",""],["lctrl",""],["run",""]],"mod":[["app_state","A widgetry application splits its state into two pieces: global shared state that lasts for the entire lifetime of the application, and a stack of smaller states, only one of which is active at a time. For example, imagine an application to view a map. The shared state would include the map and pre-rendered geometry for it. The individual states might start with a splash screen or menu to choose a map, then a map viewer, then maybe a state to drill down into pieces of the map."],["assets",""],["backend",""],["backend_glow",""],["backend_glow_native",""],["canvas",""],["color",""],["drawing",""],["event",""],["event_ctx",""],["geom",""],["input",""],["runner",""],["screen_geom",""],["style",""],["svg",""],["table",""],["text",""],["tools",""],["widgets",""]],"struct":[["Autocomplete",""],["Btn",""],["Canvas",""],["Checkbox",""],["Choice",""],["Color",""],["CompareTimes",""],["DrawWithTooltips",""],["Drawable","Geometry that's been uploaded to the GPU once and can be quickly redrawn many times. Create by creating a `GeomBatch` and calling `ctx.upload(batch)`."],["EdgeInsets",""],["EventCtx",""],["FanChart",""],["Filler",""],["GeomBatch","A mutable builder for a group of colored polygons."],["GfxCtx",""],["LinePlot",""],["LinearGradient",""],["Menu",""],["MultiButton",""],["Panel",""],["PersistentSplit",""],["PlotOptions",""],["Prerender",""],["ScatterPlot",""],["ScreenDims","ScreenDims is in units of logical pixels, as opposed to physical pixels."],["ScreenPt","ScreenPt is in units of logical pixels, as opposed to physical pixels."],["ScreenRectangle","ScreenRectangle is in units of logical pixels, as opposed to physical pixels."],["Series",""],["Settings",""],["Slider",""],["Spinner",""],["Style",""],["Text",""],["TextSpan",""],["Texture",""],["UserInput",""],["Warper",""],["Widget",""],["WidgetOutput",""]],"trait":[["SharedAppState","Any data that should last the entire lifetime of the application should be stored in the struct implementing this trait."],["SimpleState","Many states fit a pattern of managing a single panel, handling mouseover events, and other interactions on the map. Implementing this instead of `State` reduces some boilerplate."],["State","A temporary state of an application. There's a stack of these, with the most recent being the active one."],["TextExt",""],["WidgetImpl","Create a new widget by implementing this trait. You can instantiate your widget by calling `Widget::new(Box::new(instance of your new widget))`, which gives you the usual style options."]]});
|
||||
initSidebarItems({"enum":[["DrawBaselayer","Before `State::draw` is called, draw something else."],["Event",""],["Fill",""],["HorizontalAlignment",""],["Key",""],["MultiKey",""],["Outcome",""],["RewriteColor","A way to transform all colors in a GeomBatch."],["Transition","When a state responds to an event, it can specify some way to manipulate the stack of states."],["UpdateType",""],["VerticalAlignment",""]],"fn":[["Line",""],["hotkeys",""],["lctrl",""],["run",""]],"mod":[["app_state","A widgetry application splits its state into two pieces: global shared state that lasts for the entire lifetime of the application, and a stack of smaller states, only one of which is active at a time. For example, imagine an application to view a map. The shared state would include the map and pre-rendered geometry for it. The individual states might start with a splash screen or menu to choose a map, then a map viewer, then maybe a state to drill down into pieces of the map."],["assets",""],["backend",""],["backend_glow",""],["backend_glow_native",""],["canvas",""],["color",""],["drawing",""],["event",""],["event_ctx",""],["geom",""],["input",""],["runner",""],["screen_geom",""],["style",""],["svg",""],["table",""],["text",""],["tools",""],["widgets",""]],"struct":[["Autocomplete",""],["Btn",""],["Cached","Store a cached key/value pair, only recalculating when the key changes."],["Canvas",""],["Checkbox",""],["Choice",""],["Color",""],["CompareTimes",""],["DrawWithTooltips",""],["Drawable","Geometry that's been uploaded to the GPU once and can be quickly redrawn many times. Create by creating a `GeomBatch` and calling `ctx.upload(batch)`."],["EdgeInsets",""],["EventCtx",""],["FanChart",""],["Filler",""],["GeomBatch","A mutable builder for a group of colored polygons."],["GfxCtx",""],["LinePlot",""],["LinearGradient",""],["Menu",""],["MultiButton",""],["Panel",""],["PersistentSplit",""],["PlotOptions",""],["Prerender",""],["ScatterPlot",""],["ScreenDims","ScreenDims is in units of logical pixels, as opposed to physical pixels."],["ScreenPt","ScreenPt is in units of logical pixels, as opposed to physical pixels."],["ScreenRectangle","ScreenRectangle is in units of logical pixels, as opposed to physical pixels."],["Series",""],["Settings",""],["Slider",""],["Spinner",""],["Style",""],["Text",""],["TextSpan",""],["Texture",""],["UserInput",""],["Warper",""],["Widget",""],["WidgetOutput",""]],"trait":[["SharedAppState","Any data that should last the entire lifetime of the application should be stored in the struct implementing this trait."],["SimpleState","Many states fit a pattern of managing a single panel, handling mouseover events, and other interactions on the map. Implementing this instead of `State` reduces some boilerplate."],["State","A temporary state of an application. There's a stack of these, with the most recent being the active one."],["TextExt",""],["WidgetImpl","Create a new widget by implementing this trait. You can instantiate your widget by calling `Widget::new(Box::new(instance of your new widget))`, which gives you the usual style options."]]});
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,5 +1,7 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `tools` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, tools"><title>widgetry::tools - 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 src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module tools</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li></ul></div><p class='location'><a href='../index.html'>widgetry</a></p><script>window.sidebarCurrent = {name: 'tools', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='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/tools/mod.rs.html#1-2' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>widgetry</a>::<wbr><a class="mod" href=''>tools</a></span></h1><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||||
<table><tr class='module-item'><td><a class="mod" href="screenshot/index.html" title='widgetry::tools::screenshot mod'>screenshot</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="warper/index.html" title='widgetry::tools::warper mod'>warper</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "widgetry";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<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 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module tools</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li></ul></div><p class='location'><a href='../index.html'>widgetry</a></p><script>window.sidebarCurrent = {name: 'tools', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='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/tools/mod.rs.html#1-38' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>widgetry</a>::<wbr><a class="mod" href=''>tools</a></span></h1><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||||
<table><tr class='module-item'><td><a class="mod" href="screenshot/index.html" title='widgetry::tools::screenshot mod'>screenshot</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="warper/index.html" title='widgetry::tools::warper mod'>warper</a></td><td class='docblock-short'></td></tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.Cached.html" title='widgetry::tools::Cached struct'>Cached</a></td><td class='docblock-short'><p>Store a cached key/value pair, only recalculating when the key changes.</p>
|
||||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "widgetry";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
initSidebarItems({"mod":[["screenshot",""],["warper",""]]});
|
||||
initSidebarItems({"mod":[["screenshot",""],["warper",""]],"struct":[["Cached","Store a cached key/value pair, only recalculating when the key changes."]]});
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user