mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 01:15:12 +03:00
deploy: 16392a461f
This commit is contained in:
parent
36a116654d
commit
8d3706ae08
@ -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 `animation` mod in crate `experiment`."><meta name="keywords" content="rust, rustlang, rust-lang, animation"><title>experiment::animation - 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='../../experiment/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module animation</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></div><p class='location'><a href='../index.html'>experiment</a></p><script>window.sidebarCurrent = {name: 'animation', 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/experiment/animation.rs.html#1-188' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>experiment</a>::<wbr><a class="mod" href=''>animation</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/experiment/animation.rs.html#1-187' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>experiment</a>::<wbr><a class="mod" href=''>animation</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.Animation.html" title='experiment::animation::Animation struct'>Animation</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Animator.html" title='experiment::animation::Animator struct'>Animator</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.SnowEffect.html" title='experiment::animation::SnowEffect struct'>SnowEffect</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Snowflake.html" title='experiment::animation::Snowflake struct'>Snowflake</a></td><td class='docblock-short'></td></tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
|
||||
<table><tr class='module-item'><td><a class="enum" href="enum.Effect.html" title='experiment::animation::Effect enum'>Effect</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 = "experiment";</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
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `locked_level` fn in crate `experiment`."><meta name="keywords" content="rust, rustlang, rust-lang, locked_level"><title>experiment::title::locked_level - 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 fn"><!--[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='../../experiment/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'>experiment</a>::<wbr><a href='index.html'>title</a></p><script>window.sidebarCurrent = {name: 'locked_level', ty: 'fn', 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/experiment/title.rs.html#105-118' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>experiment</a>::<wbr><a href='index.html'>title</a>::<wbr><a class="fn" href=''>locked_level</a></span></h1><pre class='rust fn'>fn locked_level(<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="struct" href="../../experiment/session/struct.Session.html" title="struct experiment::session::Session">Session</a>>, <br> level: &<a class="struct" href="../../experiment/levels/struct.Level.html" title="struct experiment::levels::Level">Level</a>, <br> idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>) -> Widget</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "experiment";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<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/experiment/title.rs.html#105-116' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>experiment</a>::<wbr><a href='index.html'>title</a>::<wbr><a class="fn" href=''>locked_level</a></span></h1><pre class='rust fn'>fn locked_level(<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="struct" href="../../experiment/session/struct.Session.html" title="struct experiment::session::Session">Session</a>>, <br> level: &<a class="struct" href="../../experiment/levels/struct.Level.html" title="struct experiment::levels::Level">Level</a>, <br> idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>) -> Widget</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "experiment";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `unlocked_level` fn in crate `experiment`."><meta name="keywords" content="rust, rustlang, rust-lang, unlocked_level"><title>experiment::title::unlocked_level - 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 fn"><!--[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='../../experiment/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'>experiment</a>::<wbr><a href='index.html'>title</a></p><script>window.sidebarCurrent = {name: 'unlocked_level', ty: 'fn', 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/experiment/title.rs.html#120-126' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>experiment</a>::<wbr><a href='index.html'>title</a>::<wbr><a class="fn" href=''>unlocked_level</a></span></h1><pre class='rust fn'>fn unlocked_level(<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="struct" href="../../experiment/session/struct.Session.html" title="struct experiment::session::Session">Session</a>>, <br> level: &<a class="struct" href="../../experiment/levels/struct.Level.html" title="struct experiment::levels::Level">Level</a>, <br> idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>) -> Widget</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "experiment";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<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/experiment/title.rs.html#118-124' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>experiment</a>::<wbr><a href='index.html'>title</a>::<wbr><a class="fn" href=''>unlocked_level</a></span></h1><pre class='rust fn'>fn unlocked_level(<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="struct" href="../../experiment/session/struct.Session.html" title="struct experiment::session::Session">Session</a>>, <br> level: &<a class="struct" href="../../experiment/levels/struct.Level.html" title="struct experiment::levels::Level">Level</a>, <br> idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>) -> Widget</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "experiment";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `title` mod in crate `experiment`."><meta name="keywords" content="rust, rustlang, rust-lang, title"><title>experiment::title - 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='../../experiment/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module title</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>experiment</a></p><script>window.sidebarCurrent = {name: 'title', 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/experiment/title.rs.html#1-126' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>experiment</a>::<wbr><a class="mod" href=''>title</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/experiment/title.rs.html#1-124' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>experiment</a>::<wbr><a class="mod" href=''>title</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.TitleScreen.html" title='experiment::title::TitleScreen struct'>TitleScreen</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.locked_level.html" title='experiment::title::locked_level fn'>locked_level</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.unlocked_level.html" title='experiment::title::unlocked_level fn'>unlocked_level</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 = "experiment";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -67,9 +67,9 @@ minimap. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.
|
||||
</div><h4 id='method.draw-17' 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/devtools/scenario.rs.html#109-117' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id='method.draw_baselayer-16' 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-16' 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-17' 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/devtools/story/struct.StoryMapEditor.html" title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></code><a href='#impl-State%3CApp%3E-17' class='anchor'></a><a class='srclink' href='../../src/game/devtools/story.rs.html#59-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.event-17' 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/devtools/story.rs.html#60-266' 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></div><h3 id='impl-State%3CApp%3E-17' 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/devtools/story/struct.StoryMapEditor.html" title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></code><a href='#impl-State%3CApp%3E-17' class='anchor'></a><a class='srclink' href='../../src/game/devtools/story.rs.html#59-308' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.event-17' 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/devtools/story.rs.html#60-266' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id='method.draw_baselayer-17' class="method hidden"><code>fn <a href='#method.draw_baselayer' class='fnname'>draw_baselayer</a>(&self) -> DrawBaselayer</code><a class='srclink' href='../../src/game/devtools/story.rs.html#268-270' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id='method.draw-18' 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/devtools/story.rs.html#272-308' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id='method.draw-18' 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/devtools/story.rs.html#272-307' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id='method.on_destroy-17' 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-18' 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/devtools/struct.DevToolsMode.html" title="struct game::devtools::DevToolsMode">DevToolsMode</a></code><a href='#impl-State%3CApp%3E-18' class='anchor'></a><a class='srclink' href='../../src/game/devtools/mod.rs.html#64-159' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.event-18' 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/devtools/mod.rs.html#65-149' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id='method.draw_baselayer-18' class="method hidden"><code>fn <a href='#method.draw_baselayer' class='fnname'>draw_baselayer</a>(&self) -> DrawBaselayer</code><a class='srclink' href='../../src/game/devtools/mod.rs.html#151-153' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_panel` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_panel"><title>game::devtools::story::make_panel - 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 fn"><!--[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'>devtools</a>::<wbr><a href='index.html'>story</a></p><script>window.sidebarCurrent = {name: 'make_panel', ty: 'fn', 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/devtools/story.rs.html#311-364' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>story</a>::<wbr><a class="fn" href=''>make_panel</a></span></h1><pre class='rust fn'>fn make_panel(<br> ctx: &mut EventCtx<'_>, <br> story: &<a class="struct" href="../../../game/devtools/story/struct.StoryMap.html" title="struct game::devtools::story::StoryMap">StoryMap</a>, <br> mode: &<a class="enum" href="../../../game/devtools/story/enum.Mode.html" title="enum game::devtools::story::Mode">Mode</a>, <br> dirty: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> Panel</pre></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>
|
||||
<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/devtools/story.rs.html#310-363' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>story</a>::<wbr><a class="fn" href=''>make_panel</a></span></h1><pre class='rust fn'>fn make_panel(<br> ctx: &mut EventCtx<'_>, <br> story: &<a class="struct" href="../../../game/devtools/story/struct.StoryMap.html" title="struct game::devtools::story::StoryMap">StoryMap</a>, <br> mode: &<a class="enum" href="../../../game/devtools/story/enum.Mode.html" title="enum game::devtools::story::Mode">Mode</a>, <br> dirty: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> Panel</pre></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>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `simplify` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, simplify"><title>game::devtools::story::simplify - 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 fn"><!--[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'>devtools</a>::<wbr><a href='index.html'>story</a></p><script>window.sidebarCurrent = {name: 'simplify', ty: 'fn', 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/devtools/story.rs.html#565-582' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>story</a>::<wbr><a class="fn" href=''>simplify</a></span></h1><pre class='rust fn'>fn simplify(raw: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>>) -> <a class="struct" href="../../../geom/ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a></pre></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>
|
||||
<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/devtools/story.rs.html#564-581' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>story</a>::<wbr><a class="fn" href=''>simplify</a></span></h1><pre class='rust fn'>fn simplify(raw: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>>) -> <a class="struct" href="../../../geom/ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a></pre></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>
|
@ -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 `story` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, story"><title>game::devtools::story - 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 story</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a></p><script>window.sidebarCurrent = {name: 'story', 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/devtools/story.rs.html#1-582' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a class="mod" href=''>story</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/devtools/story.rs.html#1-581' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a class="mod" href=''>story</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.Lasso.html" title='game::devtools::story::Lasso struct'>Lasso</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Marker.html" title='game::devtools::story::Marker struct'>Marker</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.RecordedStoryMap.html" title='game::devtools::story::RecordedStoryMap struct'>RecordedStoryMap</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.StoryMap.html" title='game::devtools::story::StoryMap struct'>StoryMap</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.StoryMapEditor.html" title='game::devtools::story::StoryMapEditor struct'>StoryMapEditor</a></td><td class='docblock-short'></td></tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
|
||||
<table><tr class='module-item'><td><a class="enum" href="enum.Mode.html" title='game::devtools::story::Mode enum'>Mode</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.make_panel.html" title='game::devtools::story::make_panel fn'>make_panel</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.simplify.html" title='game::devtools::story::simplify fn'>simplify</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 = "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,14 +1,14 @@
|
||||
<!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 `RecordedStoryMap` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, RecordedStoryMap"><title>game::devtools::story::RecordedStoryMap - 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 struct"><!--[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'>Struct RecordedStoryMap</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.markers">markers</a><a href="#structfield.name">name</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Serialize">Serialize</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>story</a></p><script>window.sidebarCurrent = {name: 'RecordedStoryMap', ty: 'struct', 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/devtools/story.rs.html#367-370' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>story</a>::<wbr><a class="struct" href=''>RecordedStoryMap</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct RecordedStoryMap {
|
||||
<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/devtools/story.rs.html#366-369' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>devtools</a>::<wbr><a href='index.html'>story</a>::<wbr><a class="struct" href=''>RecordedStoryMap</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct RecordedStoryMap {
|
||||
name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
markers: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>,
|
||||
}</pre></div><h2 id='fields' class='fields small-section-header'>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.name" class="structfield small-section-header"><a href="#structfield.name" class="anchor field"></a><code>name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.markers" class="structfield small-section-header"><a href="#structfield.markers" class="anchor field"></a><code>markers: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code></span><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-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../game/devtools/story/struct.RecordedStoryMap.html" title="struct game::devtools::story::RecordedStoryMap">RecordedStoryMap</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../../src/game/devtools/story.rs.html#366' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../../../game/devtools/story/struct.RecordedStoryMap.html" title="struct game::devtools::story::RecordedStoryMap">RecordedStoryMap</a></code><a class='srclink' href='../../../src/game/devtools/story.rs.html#366' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.name" class="structfield small-section-header"><a href="#structfield.name" class="anchor field"></a><code>name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.markers" class="structfield small-section-header"><a href="#structfield.markers" class="anchor field"></a><code>markers: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code></span><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-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../game/devtools/story/struct.RecordedStoryMap.html" title="struct game::devtools::story::RecordedStoryMap">RecordedStoryMap</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../../src/game/devtools/story.rs.html#365' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../../../game/devtools/story/struct.RecordedStoryMap.html" title="struct game::devtools::story::RecordedStoryMap">RecordedStoryMap</a></code><a class='srclink' href='../../../src/game/devtools/story.rs.html#365' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id='method.clone_from' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128-130' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id='impl-Deserialize%3C%27de%3E' class='impl'><code class='in-band'>impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../../../game/devtools/story/struct.RecordedStoryMap.html" title="struct game::devtools::story::RecordedStoryMap">RecordedStoryMap</a></code><a href='#impl-Deserialize%3C%27de%3E' class='anchor'></a><a class='srclink' href='../../../src/game/devtools/story.rs.html#366' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.deserialize' class="method hidden"><code>fn <a href='https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize' class='fnname'>deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="type" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><a class='srclink' href='../../../src/game/devtools/story.rs.html#366' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||||
</div></div><h3 id='impl-Serialize' class='impl'><code class='in-band'>impl <a class="trait" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="../../../game/devtools/story/struct.RecordedStoryMap.html" title="struct game::devtools::story::RecordedStoryMap">RecordedStoryMap</a></code><a href='#impl-Serialize' class='anchor'></a><a class='srclink' href='../../../src/game/devtools/story.rs.html#366' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.serialize' class="method hidden"><code>fn <a href='https://docs.rs/serde/1.0.118/serde/ser/trait.Serialize.html#tymethod.serialize' class='fnname'>serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="type" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="type" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>> <span class="where fmt-newline">where<br> __S: <a class="trait" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>, </span></code><a class='srclink' href='../../../src/game/devtools/story.rs.html#366' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
|
||||
</div></div><h3 id='impl-Deserialize%3C%27de%3E' class='impl'><code class='in-band'>impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../../../game/devtools/story/struct.RecordedStoryMap.html" title="struct game::devtools::story::RecordedStoryMap">RecordedStoryMap</a></code><a href='#impl-Deserialize%3C%27de%3E' class='anchor'></a><a class='srclink' href='../../../src/game/devtools/story.rs.html#365' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.deserialize' class="method hidden"><code>fn <a href='https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize' class='fnname'>deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="type" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><a class='srclink' href='../../../src/game/devtools/story.rs.html#365' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||||
</div></div><h3 id='impl-Serialize' class='impl'><code class='in-band'>impl <a class="trait" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="../../../game/devtools/story/struct.RecordedStoryMap.html" title="struct game::devtools::story::RecordedStoryMap">RecordedStoryMap</a></code><a href='#impl-Serialize' class='anchor'></a><a class='srclink' href='../../../src/game/devtools/story.rs.html#365' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.serialize' class="method hidden"><code>fn <a href='https://docs.rs/serde/1.0.118/serde/ser/trait.Serialize.html#tymethod.serialize' class='fnname'>serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="type" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="type" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>> <span class="where fmt-newline">where<br> __S: <a class="trait" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>, </span></code><a class='srclink' href='../../../src/game/devtools/story.rs.html#365' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
|
||||
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../../game/devtools/story/struct.RecordedStoryMap.html" title="struct game::devtools::story::RecordedStoryMap">RecordedStoryMap</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../game/devtools/story/struct.RecordedStoryMap.html" title="struct game::devtools::story::RecordedStoryMap">RecordedStoryMap</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../game/devtools/story/struct.RecordedStoryMap.html" title="struct game::devtools::story::RecordedStoryMap">RecordedStoryMap</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../../game/devtools/story/struct.RecordedStoryMap.html" title="struct game::devtools::story::RecordedStoryMap">RecordedStoryMap</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../../game/devtools/story/struct.RecordedStoryMap.html" title="struct game::devtools::story::RecordedStoryMap">RecordedStoryMap</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217-221' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
|
File diff suppressed because one or more lines are too long
@ -8,9 +8,9 @@
|
||||
dirty: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
hovering: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>,
|
||||
}</pre></div><h2 id='fields' class='fields small-section-header'>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.story" class="structfield small-section-header"><a href="#structfield.story" class="anchor field"></a><code>story: <a class="struct" href="../../../game/devtools/story/struct.StoryMap.html" title="struct game::devtools::story::StoryMap">StoryMap</a></code></span><span id="structfield.mode" class="structfield small-section-header"><a href="#structfield.mode" class="anchor field"></a><code>mode: <a class="enum" href="../../../game/devtools/story/enum.Mode.html" title="enum game::devtools::story::Mode">Mode</a></code></span><span id="structfield.dirty" class="structfield small-section-header"><a href="#structfield.dirty" class="anchor field"></a><code>dirty: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span id="structfield.hovering" class="structfield small-section-header"><a href="#structfield.hovering" class="anchor field"></a><code>hovering: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</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="../../../game/devtools/story/struct.StoryMapEditor.html" title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../../src/game/devtools/story.rs.html#40-57' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code>pub fn <a href='#method.new' class='fnname'>new</a>(ctx: &mut EventCtx<'_>) -> <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="../../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class='srclink' href='../../../src/game/devtools/story.rs.html#41-52' title='goto source code'>[src]</a></h4><h4 id='method.redo_panel' class="method"><code>fn <a href='#method.redo_panel' class='fnname'>redo_panel</a>(&mut self, ctx: &mut EventCtx<'_>)</code><a class='srclink' href='../../../src/game/devtools/story.rs.html#54-56' 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%3CApp%3E' 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/devtools/story/struct.StoryMapEditor.html" title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></code><a href='#impl-State%3CApp%3E' class='anchor'></a><a class='srclink' href='../../../src/game/devtools/story.rs.html#59-309' 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>(&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/devtools/story.rs.html#60-266' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</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.story" class="structfield small-section-header"><a href="#structfield.story" class="anchor field"></a><code>story: <a class="struct" href="../../../game/devtools/story/struct.StoryMap.html" title="struct game::devtools::story::StoryMap">StoryMap</a></code></span><span id="structfield.mode" class="structfield small-section-header"><a href="#structfield.mode" class="anchor field"></a><code>mode: <a class="enum" href="../../../game/devtools/story/enum.Mode.html" title="enum game::devtools::story::Mode">Mode</a></code></span><span id="structfield.dirty" class="structfield small-section-header"><a href="#structfield.dirty" class="anchor field"></a><code>dirty: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span id="structfield.hovering" class="structfield small-section-header"><a href="#structfield.hovering" class="anchor field"></a><code>hovering: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</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="../../../game/devtools/story/struct.StoryMapEditor.html" title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../../src/game/devtools/story.rs.html#40-57' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code>pub fn <a href='#method.new' class='fnname'>new</a>(ctx: &mut EventCtx<'_>) -> <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="../../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class='srclink' href='../../../src/game/devtools/story.rs.html#41-52' title='goto source code'>[src]</a></h4><h4 id='method.redo_panel' class="method"><code>fn <a href='#method.redo_panel' class='fnname'>redo_panel</a>(&mut self, ctx: &mut EventCtx<'_>)</code><a class='srclink' href='../../../src/game/devtools/story.rs.html#54-56' 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%3CApp%3E' 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/devtools/story/struct.StoryMapEditor.html" title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></code><a href='#impl-State%3CApp%3E' class='anchor'></a><a class='srclink' href='../../../src/game/devtools/story.rs.html#59-308' 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>(&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/devtools/story.rs.html#60-266' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id='method.draw_baselayer' class="method hidden"><code>fn <a href='#method.draw_baselayer' class='fnname'>draw_baselayer</a>(&self) -> DrawBaselayer</code><a class='srclink' href='../../../src/game/devtools/story.rs.html#268-270' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id='method.draw' class="method hidden"><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/devtools/story.rs.html#272-308' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id='method.draw' 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/devtools/story.rs.html#272-307' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id='method.on_destroy' 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></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../../game/devtools/story/struct.StoryMapEditor.html" title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../game/devtools/story/struct.StoryMapEditor.html" title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../game/devtools/story/struct.StoryMapEditor.html" title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../../game/devtools/story/struct.StoryMapEditor.html" title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../../game/devtools/story/struct.StoryMapEditor.html" title="struct game::devtools::story::StoryMapEditor">StoryMapEditor</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `endpoint` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, endpoint"><title>game::info::trip::endpoint - 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 fn"><!--[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'>info</a>::<wbr><a href='index.html'>trip</a></p><script>window.sidebarCurrent = {name: 'endpoint', ty: 'fn', 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/info/trip.rs.html#886-912' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>info</a>::<wbr><a href='index.html'>trip</a>::<wbr><a class="fn" href=''>endpoint</a></span></h1><pre class='rust fn'>fn endpoint(endpt: &<a class="enum" href="../../../sim/make/spawner/enum.TripEndpoint.html" title="enum sim::make::spawner::TripEndpoint">TripEndpoint</a>, app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>, <a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre></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>
|
||||
<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/info/trip.rs.html#884-910' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>info</a>::<wbr><a href='index.html'>trip</a>::<wbr><a class="fn" href=''>endpoint</a></span></h1><pre class='rust fn'>fn endpoint(endpt: &<a class="enum" href="../../../sim/make/spawner/enum.TripEndpoint.html" title="enum sim::make::spawner::TripEndpoint">TripEndpoint</a>, app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>, <a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre></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>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_elevation` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_elevation"><title>game::info::trip::make_elevation - 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 fn"><!--[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'>info</a>::<wbr><a href='index.html'>trip</a></p><script>window.sidebarCurrent = {name: 'make_elevation', ty: 'fn', 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/info/trip.rs.html#850-883' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>info</a>::<wbr><a href='index.html'>trip</a>::<wbr><a class="fn" href=''>make_elevation</a></span></h1><pre class='rust fn'>fn make_elevation(<br> ctx: &EventCtx<'_>, <br> color: Color, <br> walking: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> path: &<a class="struct" href="../../../map_model/pathfind/struct.Path.html" title="struct map_model::pathfind::Path">Path</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -> Widget</pre></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>
|
||||
<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/info/trip.rs.html#848-881' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>info</a>::<wbr><a href='index.html'>trip</a>::<wbr><a class="fn" href=''>make_elevation</a></span></h1><pre class='rust fn'>fn make_elevation(<br> ctx: &EventCtx<'_>, <br> color: Color, <br> walking: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> path: &<a class="struct" href="../../../map_model/pathfind/struct.Path.html" title="struct map_model::pathfind::Path">Path</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a><br>) -> Widget</pre></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>
|
@ -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 `make_timeline` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_timeline"><title>game::info::trip::make_timeline - 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 fn"><!--[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'>info</a>::<wbr><a href='index.html'>trip</a></p><script>window.sidebarCurrent = {name: 'make_timeline', ty: 'fn', 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/info/trip.rs.html#454-563' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>info</a>::<wbr><a href='index.html'>trip</a>::<wbr><a class="fn" href=''>make_timeline</a></span></h1><pre class='rust fn'>fn make_timeline(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> trip_id: <a class="struct" href="../../../sim/struct.TripID.html" title="struct sim::TripID">TripID</a>, <br> phases: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/analytics/struct.TripPhase.html" title="struct sim::analytics::TripPhase">TripPhase</a>>, <br> progress_along_path: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>><br>) -> Widget</pre><div class='docblock'><p>Draws the timeline for a single trip, with tooltips</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/info/trip.rs.html#454-561' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>info</a>::<wbr><a href='index.html'>trip</a>::<wbr><a class="fn" href=''>make_timeline</a></span></h1><pre class='rust fn'>fn make_timeline(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> trip_id: <a class="struct" href="../../../sim/struct.TripID.html" title="struct sim::TripID">TripID</a>, <br> phases: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/analytics/struct.TripPhase.html" title="struct sim::analytics::TripPhase">TripPhase</a>>, <br> progress_along_path: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>><br>) -> Widget</pre><div class='docblock'><p>Draws the timeline for a single trip, with tooltips</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>
|
@ -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 `make_trip_details` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_trip_details"><title>game::info::trip::make_trip_details - 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 fn"><!--[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'>info</a>::<wbr><a href='index.html'>trip</a></p><script>window.sidebarCurrent = {name: 'make_trip_details', ty: 'fn', 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/info/trip.rs.html#647-848' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>info</a>::<wbr><a href='index.html'>trip</a>::<wbr><a class="fn" href=''>make_trip_details</a></span></h1><pre class='rust fn'>fn make_trip_details(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> trip_id: <a class="struct" href="../../../sim/struct.TripID.html" title="struct sim::TripID">TripID</a>, <br> open_trip: &mut <a class="struct" href="../../../game/info/trip/struct.OpenTrip.html" title="struct game::info::trip::OpenTrip">OpenTrip</a>, <br> details: &mut <a class="struct" href="../../../game/info/struct.Details.html" title="struct game::info::Details">Details</a>, <br> phases: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/analytics/struct.TripPhase.html" title="struct sim::analytics::TripPhase">TripPhase</a>>, <br> map_for_pathfinding: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> progress_along_path: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>><br>) -> Widget</pre><div class='docblock'><p>Creates the timeline, location warp, and time warp buttons for one trip, and draws the route on
|
||||
<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/info/trip.rs.html#645-846' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>info</a>::<wbr><a href='index.html'>trip</a>::<wbr><a class="fn" href=''>make_trip_details</a></span></h1><pre class='rust fn'>fn make_trip_details(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> trip_id: <a class="struct" href="../../../sim/struct.TripID.html" title="struct sim::TripID">TripID</a>, <br> open_trip: &mut <a class="struct" href="../../../game/info/trip/struct.OpenTrip.html" title="struct game::info::trip::OpenTrip">OpenTrip</a>, <br> details: &mut <a class="struct" href="../../../game/info/struct.Details.html" title="struct game::info::Details">Details</a>, <br> phases: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/analytics/struct.TripPhase.html" title="struct sim::analytics::TripPhase">TripPhase</a>>, <br> map_for_pathfinding: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> progress_along_path: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>><br>) -> Widget</pre><div class='docblock'><p>Creates the timeline, location warp, and time warp buttons for one trip, and draws the route on
|
||||
the map.</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>
|
@ -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 `trip` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, trip"><title>game::info::trip - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script 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 trip</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>info</a></p><script>window.sidebarCurrent = {name: 'trip', 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/info/trip.rs.html#1-912' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>info</a>::<wbr><a class="mod" href=''>trip</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/info/trip.rs.html#1-910' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>info</a>::<wbr><a class="mod" href=''>trip</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.OpenTrip.html" title='game::info::trip::OpenTrip struct'>OpenTrip</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.cancelled.html" title='game::info::trip::cancelled fn'>cancelled</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.endpoint.html" title='game::info::trip::endpoint fn'>endpoint</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.finished.html" title='game::info::trip::finished fn'>finished</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.future.html" title='game::info::trip::future fn'>future</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.highlight_slow_intersections.html" title='game::info::trip::highlight_slow_intersections fn'>highlight_slow_intersections</a></td><td class='docblock-short'><p>Highlights intersections which were "slow" on the map</p>
|
||||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.highlight_slow_lanes.html" title='game::info::trip::highlight_slow_lanes fn'>highlight_slow_lanes</a></td><td class='docblock-short'><p>Highlights lanes which were "slow" on the map</p>
|
||||
|
@ -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> = "Tue, 15 Dec 2020 19:54:15 +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> = "Tue, 15 Dec 2020 20:00:52 +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>
|
@ -1,3 +1,3 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["widgetry"] = [{"text":"impl<'_> AsRef<Assets> for GfxCtx<'_>","synthetic":false,"types":[]},{"text":"impl<'_> AsRef<Assets> for EventCtx<'_>","synthetic":false,"types":[]},{"text":"impl AsRef<Assets> for Prerender","synthetic":false,"types":[]},{"text":"impl AsRef<Assets> for Assets","synthetic":false,"types":[]},{"text":"impl<'_> AsRef<Prerender> for GfxCtx<'_>","synthetic":false,"types":[]},{"text":"impl<'_> AsRef<Prerender> for EventCtx<'_>","synthetic":false,"types":[]}];
|
||||
implementors["widgetry"] = [{"text":"impl<'_> AsRef<Assets> for GfxCtx<'_>","synthetic":false,"types":[]},{"text":"impl<'_> AsRef<Assets> for EventCtx<'_>","synthetic":false,"types":[]},{"text":"impl AsRef<Assets> for Prerender","synthetic":false,"types":[]},{"text":"impl AsRef<Assets> for Assets","synthetic":false,"types":[]},{"text":"impl<'_> AsRef<Prerender> for GfxCtx<'_>","synthetic":false,"types":[]},{"text":"impl<'_> AsRef<Prerender> for EventCtx<'_>","synthetic":false,"types":[]},{"text":"impl AsRef<Prerender> for Prerender","synthetic":false,"types":[]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
File diff suppressed because one or more lines are too long
@ -188,7 +188,6 @@
|
||||
<span id="185">185</span>
|
||||
<span id="186">186</span>
|
||||
<span id="187">187</span>
|
||||
<span id="188">188</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">rand</span>::{<span class="ident">Rng</span>, <span class="ident">SeedableRng</span>};
|
||||
<span class="kw">use</span> <span class="ident">rand_xorshift</span>::<span class="ident">XorShiftRng</span>;
|
||||
@ -352,8 +351,7 @@
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">event</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">now</span>: <span class="ident">Time</span>) {
|
||||
<span class="kw">let</span> <span class="ident">shape</span> <span class="op">=</span>
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/map/snowflake.svg"</span>).<span class="ident">scale</span>(<span class="number">0.1</span>);
|
||||
<span class="kw">let</span> <span class="ident">shape</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/map/snowflake.svg"</span>).<span class="ident">scale</span>(<span class="number">0.1</span>);
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">batch</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">new</span>();
|
||||
<span class="kw">let</span> <span class="ident">prev_flakes</span> <span class="op">=</span> <span class="ident">std</span>::<span class="ident">mem</span>::<span class="ident">replace</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>.<span class="ident">flakes</span>, <span class="ident">Vec</span>::<span class="ident">new</span>());
|
||||
|
@ -125,8 +125,6 @@
|
||||
<span id="122">122</span>
|
||||
<span id="123">123</span>
|
||||
<span id="124">124</span>
|
||||
<span id="125">125</span>
|
||||
<span id="126">126</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::<span class="ident">Percent</span>;
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">tools</span>::<span class="ident">open_browser</span>;
|
||||
@ -241,9 +239,7 @@
|
||||
<span class="kw">let</span> <span class="ident">hitbox</span> <span class="op">=</span> <span class="ident">batch</span>.<span class="ident">get_bounds</span>().<span class="ident">get_rectangle</span>();
|
||||
<span class="kw">let</span> <span class="ident">center</span> <span class="op">=</span> <span class="ident">hitbox</span>.<span class="ident">center</span>();
|
||||
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">fade_map_dark</span>, <span class="ident">hitbox</span>);
|
||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/tools/locked.svg"</span>).<span class="ident">centered_on</span>(<span class="ident">center</span>),
|
||||
);
|
||||
<span class="ident">batch</span>.<span class="ident">append</span>(<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/tools/locked.svg"</span>).<span class="ident">centered_on</span>(<span class="ident">center</span>));
|
||||
<span class="ident">Widget</span>::<span class="ident">draw_batch</span>(<span class="ident">ctx</span>, <span class="ident">batch</span>)
|
||||
}
|
||||
|
||||
|
@ -461,7 +461,7 @@
|
||||
<span class="doccomment">/// Draw a star on the start building.</span>
|
||||
<span class="kw">fn</span> <span class="ident">draw_star</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">center</span>: <span class="ident">Pt2D</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Drawable</span> {
|
||||
<span class="ident">ctx</span>.<span class="ident">upload</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/tools/star.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/tools/star.svg"</span>)
|
||||
.<span class="ident">centered_on</span>(<span class="ident">center</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">ChangeAll</span>(<span class="ident">Color</span>::<span class="ident">BLACK</span>)),
|
||||
)
|
||||
|
@ -534,7 +534,7 @@
|
||||
<span class="ident">Layout</span>::<span class="ident">PlayerSpeaking</span> <span class="op">=</span><span class="op">></span> <span class="ident">Widget</span>::<span class="ident">custom_row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Widget</span>::<span class="ident">draw_batch</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/characters/boss.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/characters/boss.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">0.75</span>)
|
||||
.<span class="ident">autocrop</span>(),
|
||||
),
|
||||
@ -547,7 +547,7 @@
|
||||
<span class="ident">Layout</span>::<span class="ident">BossSpeaking</span> <span class="op">=</span><span class="op">></span> <span class="ident">Widget</span>::<span class="ident">custom_row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Widget</span>::<span class="ident">draw_batch</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/characters/boss.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/characters/boss.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">0.75</span>)
|
||||
.<span class="ident">autocrop</span>(),
|
||||
),
|
||||
@ -557,7 +557,7 @@
|
||||
<span class="ident">Layout</span>::<span class="ident">Extra</span>(<span class="ident">name</span>, <span class="ident">scale</span>) <span class="op">=</span><span class="op">></span> <span class="ident">Widget</span>::<span class="ident">custom_row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Widget</span>::<span class="ident">draw_batch</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/characters/boss.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/characters/boss.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">0.75</span>)
|
||||
.<span class="ident">autocrop</span>(),
|
||||
),
|
||||
|
@ -582,7 +582,6 @@
|
||||
<span id="579">579</span>
|
||||
<span id="580">580</span>
|
||||
<span id="581">581</span>
|
||||
<span id="582">582</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">serde</span>::{<span class="ident">Deserialize</span>, <span class="ident">Serialize</span>};
|
||||
|
||||
@ -863,10 +862,9 @@
|
||||
<span class="kw">match</span> <span class="self">self</span>.<span class="ident">mode</span> {
|
||||
<span class="ident">Mode</span>::<span class="ident">PlacingMarker</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">if</span> <span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">get_cursor_in_map_space</span>().<span class="ident">is_some</span>() {
|
||||
<span class="kw">let</span> <span class="ident">batch</span> <span class="op">=</span>
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||
.<span class="ident">centered_on</span>(<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">get_cursor</span>().<span class="ident">to_pt</span>())
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#5B5B5B"</span>), <span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
||||
<span class="kw">let</span> <span class="ident">batch</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>, <span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||
.<span class="ident">centered_on</span>(<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">get_cursor</span>().<span class="ident">to_pt</span>())
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#5B5B5B"</span>), <span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
||||
<span class="ident">g</span>.<span class="ident">fork_screenspace</span>();
|
||||
<span class="ident">batch</span>.<span class="ident">draw</span>(<span class="ident">g</span>);
|
||||
<span class="ident">g</span>.<span class="ident">unfork</span>();
|
||||
@ -1014,7 +1012,7 @@
|
||||
|
||||
<span class="kw">let</span> <span class="ident">hitbox</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">pts</span>.<span class="ident">len</span>() <span class="op">=</span><span class="op">=</span> <span class="number">1</span> {
|
||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">2.0</span>)
|
||||
.<span class="ident">centered_on</span>(<span class="ident">pts</span>[<span class="number">0</span>])
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(
|
||||
@ -1058,7 +1056,7 @@
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">batch</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">new</span>();
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">pts</span>.<span class="ident">len</span>() <span class="op">=</span><span class="op">=</span> <span class="number">1</span> {
|
||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>, <span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">2.0</span>)
|
||||
.<span class="ident">centered_on</span>(<span class="self">self</span>.<span class="ident">pts</span>[<span class="number">0</span>])
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#5B5B5B"</span>), <span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">hovering</span>)),
|
||||
|
@ -598,7 +598,7 @@
|
||||
} {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">batch</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">new</span>();
|
||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>.<span class="ident">prerender</span>, <span class="ident">cursor</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>, <span class="ident">cursor</span>)
|
||||
.<span class="ident">centered_on</span>(<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">get_cursor</span>().<span class="ident">to_pt</span>())
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">ChangeAll</span>(<span class="ident">Color</span>::<span class="ident">GREEN</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">"Tue, 15 Dec 2020 19:54:15 +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">"Tue, 15 Dec 2020 20:00:52 +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>
|
||||
|
@ -1165,7 +1165,7 @@
|
||||
)
|
||||
} <span class="kw">else</span> {
|
||||
<span class="comment">// TODO Blink</span>
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/tools/location.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/tools/location.svg"</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">ChangeAll</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#7FFA4D"</span>)))
|
||||
.<span class="ident">to_btn</span>(<span class="ident">ctx</span>)
|
||||
.<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">"unfollow (pause the simulation)"</span>, <span class="ident">Key</span>::<span class="ident">F</span>)
|
||||
@ -1285,7 +1285,7 @@
|
||||
)
|
||||
} <span class="kw">else</span> {
|
||||
<span class="comment">// TODO Blink</span>
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/tools/location.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/tools/location.svg"</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">ChangeAll</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#7FFA4D"</span>)))
|
||||
.<span class="ident">to_btn</span>(<span class="ident">ctx</span>)
|
||||
.<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">"unfollow (pause the simulation)"</span>, <span class="ident">Key</span>::<span class="ident">F</span>)
|
||||
|
@ -911,8 +911,6 @@
|
||||
<span id="908">908</span>
|
||||
<span id="909">909</span>
|
||||
<span id="910">910</span>
|
||||
<span id="911">911</span>
|
||||
<span id="912">912</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>;
|
||||
|
||||
@ -1445,11 +1443,9 @@
|
||||
<span class="comment">// Show where we are in the trip currently</span>
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">p</span>) <span class="op">=</span> <span class="ident">progress_along_path</span> {
|
||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/timeline/current_pos.svg"</span>)
|
||||
.<span class="ident">centered_on</span>(<span class="ident">Pt2D</span>::<span class="ident">new</span>(
|
||||
<span class="ident">x1</span> <span class="op">+</span> <span class="ident">p</span> <span class="op">*</span> <span class="ident">phase_width</span>,
|
||||
<span class="ident">icon_height</span> <span class="op">+</span> (<span class="ident">rectangle_height</span> <span class="op">/</span> <span class="number">2.0</span>),
|
||||
)),
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/timeline/current_pos.svg"</span>).<span class="ident">centered_on</span>(
|
||||
<span class="ident">Pt2D</span>::<span class="ident">new</span>(<span class="ident">x1</span> <span class="op">+</span> <span class="ident">p</span> <span class="op">*</span> <span class="ident">phase_width</span>, <span class="ident">icon_height</span> <span class="op">+</span> (<span class="ident">rectangle_height</span> <span class="op">/</span> <span class="number">2.0</span>)),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -1582,7 +1578,7 @@
|
||||
.<span class="ident">insert</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"jump to start of {}"</span>, <span class="ident">trip_id</span>), <span class="ident">id</span>);
|
||||
|
||||
<span class="ident">details</span>.<span class="ident">unzoomed</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/timeline/start_pos.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/timeline/start_pos.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">3.0</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">WHITE</span>, <span class="ident">Color</span>::<span class="ident">BLACK</span>))
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(
|
||||
@ -1592,7 +1588,7 @@
|
||||
.<span class="ident">centered_on</span>(<span class="ident">center</span>),
|
||||
);
|
||||
<span class="ident">details</span>.<span class="ident">zoomed</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/timeline/start_pos.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/timeline/start_pos.svg"</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">WHITE</span>, <span class="ident">Color</span>::<span class="ident">BLACK</span>))
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(
|
||||
<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#5B5B5B"</span>),
|
||||
@ -1616,7 +1612,7 @@
|
||||
.<span class="ident">insert</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"jump to goal of {}"</span>, <span class="ident">trip_id</span>), <span class="ident">id</span>);
|
||||
|
||||
<span class="ident">details</span>.<span class="ident">unzoomed</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">3.0</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">WHITE</span>, <span class="ident">Color</span>::<span class="ident">BLACK</span>))
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(
|
||||
@ -1626,7 +1622,7 @@
|
||||
.<span class="ident">centered_on</span>(<span class="ident">center</span>),
|
||||
);
|
||||
<span class="ident">details</span>.<span class="ident">zoomed</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">WHITE</span>, <span class="ident">Color</span>::<span class="ident">BLACK</span>))
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(
|
||||
<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#5B5B5B"</span>),
|
||||
|
@ -352,7 +352,7 @@
|
||||
|
||||
<span class="kw">let</span> <span class="ident">trip</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">trip_info</span>(<span class="ident">id</span>);
|
||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/timeline/start_pos.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>, <span class="string">"system/assets/timeline/start_pos.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">10.0</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">WHITE</span>, <span class="ident">Color</span>::<span class="ident">BLACK</span>))
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(
|
||||
@ -366,7 +366,7 @@
|
||||
}),
|
||||
);
|
||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>, <span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">10.0</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">WHITE</span>, <span class="ident">Color</span>::<span class="ident">BLACK</span>))
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(
|
||||
|
@ -570,7 +570,7 @@
|
||||
<span class="ident">Widget</span>::<span class="ident">custom_row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Widget</span>::<span class="ident">draw_batch</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/characters/boss.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/characters/boss.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">0.75</span>)
|
||||
.<span class="ident">autocrop</span>(),
|
||||
)
|
||||
|
@ -485,7 +485,7 @@
|
||||
<span class="ident">txt</span>.<span class="ident">extend</span>(<span class="ident">Text</span>::<span class="ident">tooltip</span>(<span class="ident">ctx</span>, <span class="ident">Key</span>::<span class="ident">LeftArrow</span>, <span class="string">"slow down"</span>));
|
||||
<span class="ident">txt</span>.<span class="ident">extend</span>(<span class="ident">Text</span>::<span class="ident">tooltip</span>(<span class="ident">ctx</span>, <span class="ident">Key</span>::<span class="ident">RightArrow</span>, <span class="string">"speed up"</span>));
|
||||
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/speed/triangle.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/speed/triangle.svg"</span>)
|
||||
.<span class="ident">color</span>(<span class="kw">if</span> <span class="self">self</span>.<span class="ident">setting</span> <span class="op">></span><span class="op">=</span> <span class="ident">s</span> {
|
||||
<span class="ident">RewriteColor</span>::<span class="ident">NoOp</span>
|
||||
} <span class="kw">else</span> {
|
||||
|
@ -334,7 +334,7 @@
|
||||
<span class="comment">// Might need to scale down more for some buildings, but so far, this works</span>
|
||||
<span class="comment">// everywhere.</span>
|
||||
<span class="ident">bldg_batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/map/parking.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/map/parking.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">0.1</span>)
|
||||
.<span class="ident">centered_on</span>(<span class="ident">bldg</span>.<span class="ident">label_center</span>),
|
||||
);
|
||||
|
@ -575,7 +575,7 @@
|
||||
<span class="ident">IntersectionType</span>::<span class="ident">Construction</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="comment">// TODO Centering seems weird</span>
|
||||
<span class="ident">default_geom</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/map/under_construction.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>, <span class="string">"system/assets/map/under_construction.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">0.08</span>)
|
||||
.<span class="ident">centered_on</span>(<span class="ident">i</span>.<span class="ident">polygon</span>.<span class="ident">center</span>()),
|
||||
);
|
||||
|
@ -543,21 +543,21 @@
|
||||
<span class="kw">let</span> (<span class="ident">pt</span>, <span class="ident">angle</span>) <span class="op">=</span> <span class="ident">lane</span>.<span class="ident">lane_center_pts</span>.<span class="ident">must_dist_along</span>(<span class="ident">dist</span>);
|
||||
<span class="kw">if</span> <span class="ident">lane</span>.<span class="ident">is_bus</span>() {
|
||||
<span class="ident">draw</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/map/bus_only.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>, <span class="string">"system/assets/map/bus_only.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">0.06</span>)
|
||||
.<span class="ident">centered_on</span>(<span class="ident">pt</span>)
|
||||
.<span class="ident">rotate</span>(<span class="ident">angle</span>.<span class="ident">shortest_rotation_towards</span>(<span class="ident">Angle</span>::<span class="ident">degrees</span>(<span class="op">-</span><span class="number">90.0</span>))),
|
||||
);
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">lane</span>.<span class="ident">is_biking</span>() {
|
||||
<span class="ident">draw</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/meters/bike.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>, <span class="string">"system/assets/meters/bike.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">0.06</span>)
|
||||
.<span class="ident">centered_on</span>(<span class="ident">pt</span>)
|
||||
.<span class="ident">rotate</span>(<span class="ident">angle</span>.<span class="ident">shortest_rotation_towards</span>(<span class="ident">Angle</span>::<span class="ident">degrees</span>(<span class="op">-</span><span class="number">90.0</span>))),
|
||||
);
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">lane</span>.<span class="ident">lane_type</span> <span class="op">=</span><span class="op">=</span> <span class="ident">LaneType</span>::<span class="ident">SharedLeftTurn</span> {
|
||||
<span class="ident">draw</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/map/shared_left_turn.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>, <span class="string">"system/assets/map/shared_left_turn.svg"</span>)
|
||||
.<span class="ident">autocrop</span>()
|
||||
.<span class="ident">scale</span>(<span class="number">0.003</span>)
|
||||
.<span class="ident">centered_on</span>(<span class="ident">pt</span>)
|
||||
|
@ -157,7 +157,7 @@
|
||||
);
|
||||
}
|
||||
<span class="ident">unzoomed_batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/map/parking.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/map/parking.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">0.05</span>)
|
||||
.<span class="ident">centered_on</span>(<span class="ident">lot</span>.<span class="ident">polygon</span>.<span class="ident">polylabel</span>()),
|
||||
);
|
||||
|
@ -300,6 +300,12 @@
|
||||
<span id="297">297</span>
|
||||
<span id="298">298</span>
|
||||
<span id="299">299</span>
|
||||
<span id="300">300</span>
|
||||
<span id="301">301</span>
|
||||
<span id="302">302</span>
|
||||
<span id="303">303</span>
|
||||
<span id="304">304</span>
|
||||
<span id="305">305</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">cell</span>::{<span class="ident">Cell</span>, <span class="ident">RefCell</span>};
|
||||
|
||||
@ -600,5 +606,11 @@
|
||||
<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">prerender</span>
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">std</span>::<span class="ident">convert</span>::<span class="ident">AsRef</span><span class="op"><</span><span class="ident">Prerender</span><span class="op">></span> <span class="kw">for</span> <span class="ident">Prerender</span> {
|
||||
<span class="kw">fn</span> <span class="ident">as_ref</span>(<span class="kw-2">&</span><span class="self">self</span>) <span class="op">-</span><span class="op">></span> <span class="kw-2">&</span><span class="ident">Prerender</span> {
|
||||
<span class="self">self</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>
|
@ -265,7 +265,6 @@
|
||||
<span id="262">262</span>
|
||||
<span id="263">263</span>
|
||||
<span id="264">264</span>
|
||||
<span id="265">265</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">VecDeque</span>;
|
||||
|
||||
@ -409,8 +408,7 @@
|
||||
<span class="ident">Widget</span>::<span class="ident">custom_col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Widget</span>::<span class="ident">draw_batch</span>(
|
||||
<span class="self">self</span>,
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="self">self</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/map/dont_walk.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">5.0</span>),
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="self">self</span>, <span class="string">"system/assets/map/dont_walk.svg"</span>).<span class="ident">scale</span>(<span class="number">5.0</span>),
|
||||
)
|
||||
.<span class="ident">container</span>()
|
||||
.<span class="ident">bg</span>(<span class="ident">Color</span>::<span class="ident">BLACK</span>)
|
||||
|
@ -402,8 +402,8 @@
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Returns a batch containing an SVG from a file.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">load_svg</span>(<span class="ident">prerender</span>: <span class="kw-2">&</span><span class="ident">Prerender</span>, <span class="ident">filename</span>: <span class="kw-2">&</span><span class="ident">str</span>) <span class="op">-</span><span class="op">></span> <span class="ident">GeomBatch</span> {
|
||||
<span class="ident">svg</span>::<span class="ident">load_svg</span>(<span class="ident">prerender</span>, <span class="ident">filename</span>).<span class="number">0</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">load_svg</span><span class="op"><</span><span class="ident">P</span>: <span class="ident">AsRef</span><span class="op"><</span><span class="ident">Prerender</span><span class="op">></span><span class="op">></span>(<span class="ident">prerender</span>: <span class="kw-2">&</span><span class="ident">P</span>, <span class="ident">filename</span>: <span class="kw-2">&</span><span class="ident">str</span>) <span class="op">-</span><span class="op">></span> <span class="ident">GeomBatch</span> {
|
||||
<span class="ident">svg</span>::<span class="ident">load_svg</span>(<span class="ident">prerender</span>.<span class="ident">as_ref</span>(), <span class="ident">filename</span>).<span class="number">0</span>
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Transforms all colors in a batch.</span>
|
||||
|
@ -556,7 +556,6 @@
|
||||
<span id="553">553</span>
|
||||
<span id="554">554</span>
|
||||
<span id="555">555</span>
|
||||
<span id="556">556</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">hash_map</span>::<span class="ident">DefaultHasher</span>;
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fmt</span>::<span class="ident">Write</span>;
|
||||
@ -833,7 +832,7 @@
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Render the text, without any autocropping. You can pass in an `EventCtx` or `GfxCtx`.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">render</span><span class="op"><</span><span class="lifetime">'a</span>, <span class="ident">A</span>: <span class="ident">AsRef</span><span class="op"><</span><span class="ident">Assets</span><span class="op">></span><span class="op">></span>(<span class="self">self</span>, <span class="ident">assets</span>: <span class="kw-2">&</span><span class="ident">A</span>) <span class="op">-</span><span class="op">></span> <span class="ident">GeomBatch</span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">render</span><span class="op"><</span><span class="ident">A</span>: <span class="ident">AsRef</span><span class="op"><</span><span class="ident">Assets</span><span class="op">></span><span class="op">></span>(<span class="self">self</span>, <span class="ident">assets</span>: <span class="kw-2">&</span><span class="ident">A</span>) <span class="op">-</span><span class="op">></span> <span class="ident">GeomBatch</span> {
|
||||
<span class="kw">let</span> <span class="ident">assets</span>: <span class="kw-2">&</span><span class="ident">Assets</span> <span class="op">=</span> <span class="ident">assets</span>.<span class="ident">as_ref</span>();
|
||||
<span class="self">self</span>.<span class="ident">inner_render</span>(<span class="ident">assets</span>, <span class="ident">svg</span>::<span class="ident">HIGH_QUALITY</span>)
|
||||
}
|
||||
@ -891,8 +890,7 @@
|
||||
|
||||
<span class="doccomment">/// Render the text, autocropping blank space out of the result. You can pass in an `EventCtx`</span>
|
||||
<span class="doccomment">/// or `GfxCtx`.</span>
|
||||
<span class="comment">// TODO How is this different than render()?</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">render_autocropped</span><span class="op"><</span><span class="lifetime">'a</span>, <span class="ident">A</span>: <span class="ident">AsRef</span><span class="op"><</span><span class="ident">Assets</span><span class="op">></span><span class="op">></span>(<span class="self">self</span>, <span class="ident">assets</span>: <span class="kw-2">&</span><span class="ident">A</span>) <span class="op">-</span><span class="op">></span> <span class="ident">GeomBatch</span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">render_autocropped</span><span class="op"><</span><span class="ident">A</span>: <span class="ident">AsRef</span><span class="op"><</span><span class="ident">Assets</span><span class="op">></span><span class="op">></span>(<span class="self">self</span>, <span class="ident">assets</span>: <span class="kw-2">&</span><span class="ident">A</span>) <span class="op">-</span><span class="op">></span> <span class="ident">GeomBatch</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">batch</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">render</span>(<span class="ident">assets</span>);
|
||||
<span class="ident">batch</span>.<span class="ident">autocrop_dims</span> <span class="op">=</span> <span class="bool-val">true</span>;
|
||||
<span class="ident">batch</span>.<span class="ident">autocrop</span>()
|
||||
|
@ -804,7 +804,7 @@
|
||||
<span class="ident">icon_batch</span>.<span class="ident">push</span>(<span class="ident">Color</span>::<span class="ident">INVISIBLE</span>, <span class="ident">icon_container</span>);
|
||||
|
||||
<span class="kw">let</span> <span class="ident">path</span> <span class="op">=</span> <span class="string">"system/assets/widgetry/arrow_drop_down.svg"</span>;
|
||||
<span class="kw">let</span> <span class="ident">icon</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="kw-2">&</span><span class="ident">path</span>)
|
||||
<span class="kw">let</span> <span class="ident">icon</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="kw-2">&</span><span class="ident">path</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">ChangeAll</span>(<span class="ident">ctx</span>.<span class="ident">style</span>().<span class="ident">outline_color</span>))
|
||||
.<span class="ident">autocrop</span>()
|
||||
.<span class="ident">centered_on</span>(<span class="ident">icon_batch</span>.<span class="ident">get_bounds</span>().<span class="ident">center</span>());
|
||||
|
@ -258,14 +258,14 @@
|
||||
) <span class="op">-</span><span class="op">></span> <span class="ident">Widget</span> {
|
||||
<span class="kw">let</span> <span class="ident">label</span> <span class="op">=</span> <span class="ident">label</span>.<span class="ident">into</span>();
|
||||
<span class="kw">let</span> (<span class="ident">off</span>, <span class="ident">hitbox</span>) <span class="op">=</span> <span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/widgetry/toggle_off.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/widgetry/toggle_off.svg"</span>)
|
||||
.<span class="ident">batch</span>()
|
||||
.<span class="ident">centered_vert</span>(),
|
||||
<span class="ident">label</span>.<span class="ident">clone</span>().<span class="ident">batch_text</span>(<span class="ident">ctx</span>),
|
||||
])
|
||||
.<span class="ident">to_geom</span>(<span class="ident">ctx</span>, <span class="prelude-val">None</span>);
|
||||
<span class="kw">let</span> (<span class="ident">on</span>, <span class="kw">_</span>) <span class="op">=</span> <span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/widgetry/toggle_on.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/widgetry/toggle_on.svg"</span>)
|
||||
.<span class="ident">batch</span>()
|
||||
.<span class="ident">centered_vert</span>(),
|
||||
<span class="ident">label</span>.<span class="ident">clone</span>().<span class="ident">batch_text</span>(<span class="ident">ctx</span>),
|
||||
@ -341,7 +341,7 @@
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">colored</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="ident">EventCtx</span>, <span class="ident">label</span>: <span class="kw-2">&</span><span class="ident">str</span>, <span class="ident">color</span>: <span class="ident">Color</span>, <span class="ident">enabled</span>: <span class="ident">bool</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Widget</span> {
|
||||
<span class="kw">let</span> (<span class="ident">off</span>, <span class="ident">hitbox</span>) <span class="op">=</span> <span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/widgetry/checkbox.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/widgetry/checkbox.svg"</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">ChangeAll</span>(<span class="ident">color</span>.<span class="ident">alpha</span>(<span class="number">0.3</span>)))
|
||||
.<span class="ident">batch</span>()
|
||||
.<span class="ident">centered_vert</span>(),
|
||||
@ -349,7 +349,7 @@
|
||||
])
|
||||
.<span class="ident">to_geom</span>(<span class="ident">ctx</span>, <span class="prelude-val">None</span>);
|
||||
<span class="kw">let</span> (<span class="ident">on</span>, <span class="kw">_</span>) <span class="op">=</span> <span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/widgetry/checkbox.svg"</span>)
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/widgetry/checkbox.svg"</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">BLACK</span>, <span class="ident">color</span>))
|
||||
.<span class="ident">batch</span>()
|
||||
.<span class="ident">centered_vert</span>(),
|
||||
|
@ -383,8 +383,6 @@
|
||||
<span id="380">380</span>
|
||||
<span id="381">381</span>
|
||||
<span id="382">382</span>
|
||||
<span id="383">383</span>
|
||||
<span id="384">384</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">HashSet</span>;
|
||||
|
||||
@ -648,10 +646,8 @@
|
||||
<span class="ident">Polygon</span>::<span class="ident">rounded_rectangle</span>(<span class="number">5000.0</span>, <span class="number">5000.0</span>, <span class="prelude-val">Some</span>(<span class="number">25.0</span>)),
|
||||
);
|
||||
<span class="comment">// SVG support using lyon and usvg. Map-space means don't scale for high DPI monitors.</span>
|
||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="kw-2">&</span><span class="ident">ctx</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/pregame/logo.svg"</span>)
|
||||
.<span class="ident">translate</span>(<span class="number">300.0</span>, <span class="number">300.0</span>),
|
||||
);
|
||||
<span class="ident">batch</span>
|
||||
.<span class="ident">append</span>(<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">ctx</span>, <span class="string">"system/assets/pregame/logo.svg"</span>).<span class="ident">translate</span>(<span class="number">300.0</span>, <span class="number">300.0</span>));
|
||||
<span class="comment">// Text rendering also goes through lyon and usvg.</span>
|
||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Awesome vector text thanks to usvg and lyon"</span>).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#DF8C3D"</span>)))
|
||||
|
@ -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 `drawing` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, drawing"><title>widgetry::drawing - 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 drawing</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li></ul></div><p class='location'><a href='../index.html'>widgetry</a></p><script>window.sidebarCurrent = {name: 'drawing', 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/drawing.rs.html#1-299' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>widgetry</a>::<wbr><a class="mod" href=''>drawing</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/widgetry/drawing.rs.html#1-305' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>widgetry</a>::<wbr><a class="mod" href=''>drawing</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.GfxCtx.html" title='widgetry::drawing::GfxCtx struct'>GfxCtx</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Prerender.html" title='widgetry::drawing::Prerender struct'>Prerender</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Uniforms.html" title='widgetry::drawing::Uniforms struct'>Uniforms</a></td><td class='docblock-short'></td></tr></table><h2 id='constants' class='section-header'><a href="#constants">Constants</a></h2>
|
||||
<table><tr class='module-item'><td><a class="constant" href="constant.MAPSPACE_Z.html" title='widgetry::drawing::MAPSPACE_Z constant'>MAPSPACE_Z</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.MENU_Z.html" title='widgetry::drawing::MENU_Z constant'>MENU_Z</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.SCREENSPACE_Z.html" title='widgetry::drawing::SCREENSPACE_Z constant'>SCREENSPACE_Z</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.TOOLTIP_Z.html" title='widgetry::drawing::TOOLTIP_Z constant'>TOOLTIP_Z</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>
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `event_ctx` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, event_ctx"><title>widgetry::event_ctx - 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 event_ctx</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></div><p class='location'><a href='../index.html'>widgetry</a></p><script>window.sidebarCurrent = {name: 'event_ctx', 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/event_ctx.rs.html#1-265' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>widgetry</a>::<wbr><a class="mod" href=''>event_ctx</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/widgetry/event_ctx.rs.html#1-264' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>widgetry</a>::<wbr><a class="mod" href=''>event_ctx</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.EventCtx.html" title='widgetry::event_ctx::EventCtx struct'>EventCtx</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.LoadingScreen.html" title='widgetry::event_ctx::LoadingScreen struct'>LoadingScreen</a></td><td class='docblock-short'></td></tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
|
||||
<table><tr class='module-item'><td><a class="enum" href="enum.UpdateType.html" title='widgetry::event_ctx::UpdateType enum'>UpdateType</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>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -24,7 +24,7 @@ many times later.</p>
|
||||
</div><h4 id='method.is_empty' class="method"><code>pub(crate) fn <a href='#method.is_empty' class='fnname'>is_empty</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/widgetry/geom.rs.html#118-120' title='goto source code'>[src]</a></h4><div class='docblock'><p>True when the batch is empty.</p>
|
||||
</div><h4 id='method.get_dims' class="method"><code>pub fn <a href='#method.get_dims' class='fnname'>get_dims</a>(&self) -> <a class="struct" href="../../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</a></code><a class='srclink' href='../../src/widgetry/geom.rs.html#123-131' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the width and height of all geometry contained in the batch.</p>
|
||||
</div><h4 id='method.from_svg_contents' class="method"><code>pub fn <a href='#method.from_svg_contents' class='fnname'>from_svg_contents</a>(raw: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>) -> <a class="struct" href="../../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class='srclink' href='../../src/widgetry/geom.rs.html#134-139' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a batch containing a parsed SVG string.</p>
|
||||
</div><h4 id='method.load_svg' class="method"><code>pub fn <a href='#method.load_svg' class='fnname'>load_svg</a>(prerender: &<a class="struct" href="../../widgetry/struct.Prerender.html" title="struct widgetry::Prerender">Prerender</a>, filename: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class='srclink' href='../../src/widgetry/geom.rs.html#142-144' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a batch containing an SVG from a file.</p>
|
||||
</div><h4 id='method.load_svg' class="method"><code>pub fn <a href='#method.load_svg' class='fnname'>load_svg</a><P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../../widgetry/struct.Prerender.html" title="struct widgetry::Prerender">Prerender</a>>>(prerender: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>P, filename: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class='srclink' href='../../src/widgetry/geom.rs.html#142-144' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a batch containing an SVG from a file.</p>
|
||||
</div><h4 id='method.color' class="method"><code>pub fn <a href='#method.color' class='fnname'>color</a>(self, transformation: <a class="enum" href="../../widgetry/enum.RewriteColor.html" title="enum widgetry::RewriteColor">RewriteColor</a>) -> <a class="struct" href="../../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class='srclink' href='../../src/widgetry/geom.rs.html#147-154' title='goto source code'>[src]</a></h4><div class='docblock'><p>Transforms all colors in a batch.</p>
|
||||
</div><h4 id='method.centered_on' class="method"><code>pub fn <a href='#method.centered_on' class='fnname'>centered_on</a>(self, center: <a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -> <a class="struct" href="../../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class='srclink' href='../../src/widgetry/geom.rs.html#157-162' title='goto source code'>[src]</a></h4><div class='docblock'><p>Translates the batch to be centered on some point.</p>
|
||||
</div><h4 id='method.translate' class="method"><code>pub fn <a href='#method.translate' class='fnname'>translate</a>(self, dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="struct" href="../../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class='srclink' href='../../src/widgetry/geom.rs.html#165-170' title='goto source code'>[src]</a></h4><div class='docblock'><p>Translates the batch by some offset.</p>
|
||||
|
File diff suppressed because one or more lines are too long
@ -24,7 +24,7 @@ many times later.</p>
|
||||
</div><h4 id='method.is_empty' class="method"><code>pub(crate) fn <a href='#method.is_empty' class='fnname'>is_empty</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/widgetry/geom.rs.html#118-120' title='goto source code'>[src]</a></h4><div class='docblock'><p>True when the batch is empty.</p>
|
||||
</div><h4 id='method.get_dims' class="method"><code>pub fn <a href='#method.get_dims' class='fnname'>get_dims</a>(&self) -> <a class="struct" href="../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</a></code><a class='srclink' href='../src/widgetry/geom.rs.html#123-131' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the width and height of all geometry contained in the batch.</p>
|
||||
</div><h4 id='method.from_svg_contents' class="method"><code>pub fn <a href='#method.from_svg_contents' class='fnname'>from_svg_contents</a>(raw: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>) -> <a class="struct" href="../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class='srclink' href='../src/widgetry/geom.rs.html#134-139' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a batch containing a parsed SVG string.</p>
|
||||
</div><h4 id='method.load_svg' class="method"><code>pub fn <a href='#method.load_svg' class='fnname'>load_svg</a>(prerender: &<a class="struct" href="../widgetry/struct.Prerender.html" title="struct widgetry::Prerender">Prerender</a>, filename: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class='srclink' href='../src/widgetry/geom.rs.html#142-144' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a batch containing an SVG from a file.</p>
|
||||
</div><h4 id='method.load_svg' class="method"><code>pub fn <a href='#method.load_svg' class='fnname'>load_svg</a><P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../widgetry/struct.Prerender.html" title="struct widgetry::Prerender">Prerender</a>>>(prerender: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>P, filename: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class='srclink' href='../src/widgetry/geom.rs.html#142-144' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a batch containing an SVG from a file.</p>
|
||||
</div><h4 id='method.color' class="method"><code>pub fn <a href='#method.color' class='fnname'>color</a>(self, transformation: <a class="enum" href="../widgetry/enum.RewriteColor.html" title="enum widgetry::RewriteColor">RewriteColor</a>) -> <a class="struct" href="../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class='srclink' href='../src/widgetry/geom.rs.html#147-154' title='goto source code'>[src]</a></h4><div class='docblock'><p>Transforms all colors in a batch.</p>
|
||||
</div><h4 id='method.centered_on' class="method"><code>pub fn <a href='#method.centered_on' class='fnname'>centered_on</a>(self, center: <a class="struct" href="../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -> <a class="struct" href="../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class='srclink' href='../src/widgetry/geom.rs.html#157-162' title='goto source code'>[src]</a></h4><div class='docblock'><p>Translates the batch to be centered on some point.</p>
|
||||
</div><h4 id='method.translate' class="method"><code>pub fn <a href='#method.translate' class='fnname'>translate</a>(self, dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="struct" href="../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class='srclink' href='../src/widgetry/geom.rs.html#165-170' title='goto source code'>[src]</a></h4><div class='docblock'><p>Translates the batch by some offset.</p>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `render_line` fn in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, render_line"><title>widgetry::text::render_line - 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 fn"><!--[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><div class="sidebar-elems"><p class='location'><a href='../index.html'>widgetry</a>::<wbr><a href='index.html'>text</a></p><script>window.sidebarCurrent = {name: 'render_line', ty: 'fn', 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/text.rs.html#421-469' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>widgetry</a>::<wbr><a href='index.html'>text</a>::<wbr><a class="fn" href=''>render_line</a></span></h1><pre class='rust fn'>fn render_line(<br> spans: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../widgetry/struct.TextSpan.html" title="struct widgetry::TextSpan">TextSpan</a>>, <br> tolerance: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <br> assets: &<a class="struct" href="../../widgetry/assets/struct.Assets.html" title="struct widgetry::assets::Assets">Assets</a><br>) -> <a class="struct" href="../../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></pre></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>
|
||||
<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/text.rs.html#420-468' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>widgetry</a>::<wbr><a href='index.html'>text</a>::<wbr><a class="fn" href=''>render_line</a></span></h1><pre class='rust fn'>fn render_line(<br> spans: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../widgetry/struct.TextSpan.html" title="struct widgetry::TextSpan">TextSpan</a>>, <br> tolerance: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <br> assets: &<a class="struct" href="../../widgetry/assets/struct.Assets.html" title="struct widgetry::assets::Assets">Assets</a><br>) -> <a class="struct" href="../../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></pre></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 `text` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, text"><title>widgetry::text - 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 text</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>widgetry</a></p><script>window.sidebarCurrent = {name: 'text', 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/text.rs.html#1-556' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>widgetry</a>::<wbr><a class="mod" href=''>text</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/widgetry/text.rs.html#1-555' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>widgetry</a>::<wbr><a class="mod" href=''>text</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.Text.html" title='widgetry::text::Text struct'>Text</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.TextSpan.html" title='widgetry::text::TextSpan struct'>TextSpan</a></td><td class='docblock-short'></td></tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
|
||||
<table><tr class='module-item'><td><a class="enum" href="enum.Font.html" title='widgetry::text::Font enum'>Font</a></td><td class='docblock-short'></td></tr></table><h2 id='constants' class='section-header'><a href="#constants">Constants</a></h2>
|
||||
<table><tr class='module-item'><td><a class="constant" href="constant.BG_COLOR.html" title='widgetry::text::BG_COLOR constant'>BG_COLOR</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.DEFAULT_FG_COLOR.html" title='widgetry::text::DEFAULT_FG_COLOR constant'>DEFAULT_FG_COLOR</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.DEFAULT_FONT.html" title='widgetry::text::DEFAULT_FONT constant'>DEFAULT_FONT</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.DEFAULT_FONT_SIZE.html" title='widgetry::text::DEFAULT_FONT_SIZE constant'>DEFAULT_FONT_SIZE</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.INACTIVE_CHOICE_COLOR.html" title='widgetry::text::INACTIVE_CHOICE_COLOR constant'>INACTIVE_CHOICE_COLOR</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.MAX_CHAR_WIDTH.html" title='widgetry::text::MAX_CHAR_WIDTH constant'>MAX_CHAR_WIDTH</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.SCALE_LINE_HEIGHT.html" title='widgetry::text::SCALE_LINE_HEIGHT constant'>SCALE_LINE_HEIGHT</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.SELECTED_COLOR.html" title='widgetry::text::SELECTED_COLOR constant'>SELECTED_COLOR</a></td><td class='docblock-short'></td></tr></table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
||||
<!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 `TextExt` trait in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, TextExt"><title>widgetry::text::TextExt - 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 trait"><!--[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'>Trait TextExt</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.batch_text">batch_text</a><a href="#tymethod.draw_text">draw_text</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-TextExt-for-%26%27_%20str">&'_ str</a><a href="#impl-TextExt-for-String">String</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../index.html'>widgetry</a>::<wbr><a href='index.html'>text</a></p><script>window.sidebarCurrent = {name: 'TextExt', ty: 'trait', 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/text.rs.html#471-474' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='../index.html'>widgetry</a>::<wbr><a href='index.html'>text</a>::<wbr><a class="trait" href=''>TextExt</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait TextExt {
|
||||
<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/text.rs.html#470-473' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='../index.html'>widgetry</a>::<wbr><a href='index.html'>text</a>::<wbr><a class="trait" href=''>TextExt</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait TextExt {
|
||||
fn <a href='#tymethod.draw_text' class='fnname'>draw_text</a>(self, ctx: &<a class="struct" href="../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a>;
|
||||
<div class='item-spacer'></div> fn <a href='#tymethod.batch_text' class='fnname'>batch_text</a>(self, ctx: &<a class="struct" href="../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a>;
|
||||
}</pre></div><h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.draw_text' class='method'><code>fn <a href='#tymethod.draw_text' class='fnname'>draw_text</a>(self, ctx: &<a class="struct" href="../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code></h3><h3 id='tymethod.batch_text' class='method'><code>fn <a href='#tymethod.batch_text' class='fnname'>batch_text</a>(self, ctx: &<a class="struct" href="../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code></h3></div><span class='loading-content'>Loading content...</span><h2 id='foreign-impls' class='small-section-header'>Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a></h2><h3 id='impl-TextExt-for-%26%27_%20str' class='impl'><code class='in-band'>impl<'_> <a class="trait" href="../../widgetry/text/trait.TextExt.html" title="trait widgetry::text::TextExt">TextExt</a> for &'_ <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a href='#impl-TextExt-for-%26%27_%20str' class='anchor'></a><a class='srclink' href='../../src/widgetry/text.rs.html#476-483' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_text' class="method hidden"><code>fn <a href='#method.draw_text' class='fnname'>draw_text</a>(self, ctx: &<a class="struct" href="../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../../src/widgetry/text.rs.html#477-479' title='goto source code'>[src]</a></h4><h4 id='method.batch_text' class="method hidden"><code>fn <a href='#method.batch_text' class='fnname'>batch_text</a>(self, ctx: &<a class="struct" href="../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../../src/widgetry/text.rs.html#480-482' title='goto source code'>[src]</a></h4></div><h3 id='impl-TextExt-for-String' class='impl'><code class='in-band'>impl <a class="trait" href="../../widgetry/text/trait.TextExt.html" title="trait widgetry::text::TextExt">TextExt</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-TextExt-for-String' class='anchor'></a><a class='srclink' href='../../src/widgetry/text.rs.html#485-492' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_text-1' class="method hidden"><code>fn <a href='#method.draw_text' class='fnname'>draw_text</a>(self, ctx: &<a class="struct" href="../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../../src/widgetry/text.rs.html#486-488' title='goto source code'>[src]</a></h4><h4 id='method.batch_text-1' class="method hidden"><code>fn <a href='#method.batch_text' class='fnname'>batch_text</a>(self, ctx: &<a class="struct" href="../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../../src/widgetry/text.rs.html#489-491' title='goto source code'>[src]</a></h4></div><span class='loading-content'>Loading content...</span><h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'></div><span class='loading-content'>Loading content...</span><script type="text/javascript" src="../../implementors/widgetry/text/trait.TextExt.js" async></script></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>
|
||||
}</pre></div><h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.draw_text' class='method'><code>fn <a href='#tymethod.draw_text' class='fnname'>draw_text</a>(self, ctx: &<a class="struct" href="../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code></h3><h3 id='tymethod.batch_text' class='method'><code>fn <a href='#tymethod.batch_text' class='fnname'>batch_text</a>(self, ctx: &<a class="struct" href="../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code></h3></div><span class='loading-content'>Loading content...</span><h2 id='foreign-impls' class='small-section-header'>Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a></h2><h3 id='impl-TextExt-for-%26%27_%20str' class='impl'><code class='in-band'>impl<'_> <a class="trait" href="../../widgetry/text/trait.TextExt.html" title="trait widgetry::text::TextExt">TextExt</a> for &'_ <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a href='#impl-TextExt-for-%26%27_%20str' class='anchor'></a><a class='srclink' href='../../src/widgetry/text.rs.html#475-482' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_text' class="method hidden"><code>fn <a href='#method.draw_text' class='fnname'>draw_text</a>(self, ctx: &<a class="struct" href="../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../../src/widgetry/text.rs.html#476-478' title='goto source code'>[src]</a></h4><h4 id='method.batch_text' class="method hidden"><code>fn <a href='#method.batch_text' class='fnname'>batch_text</a>(self, ctx: &<a class="struct" href="../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../../src/widgetry/text.rs.html#479-481' title='goto source code'>[src]</a></h4></div><h3 id='impl-TextExt-for-String' class='impl'><code class='in-band'>impl <a class="trait" href="../../widgetry/text/trait.TextExt.html" title="trait widgetry::text::TextExt">TextExt</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-TextExt-for-String' class='anchor'></a><a class='srclink' href='../../src/widgetry/text.rs.html#484-491' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_text-1' class="method hidden"><code>fn <a href='#method.draw_text' class='fnname'>draw_text</a>(self, ctx: &<a class="struct" href="../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../../src/widgetry/text.rs.html#485-487' title='goto source code'>[src]</a></h4><h4 id='method.batch_text-1' class="method hidden"><code>fn <a href='#method.batch_text' class='fnname'>batch_text</a>(self, ctx: &<a class="struct" href="../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../../src/widgetry/text.rs.html#488-490' title='goto source code'>[src]</a></h4></div><span class='loading-content'>Loading content...</span><h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'></div><span class='loading-content'>Loading content...</span><script type="text/javascript" src="../../implementors/widgetry/text/trait.TextExt.js" async></script></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 `TextExt` trait in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, TextExt"><title>widgetry::TextExt - 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 trait"><!--[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'>Trait TextExt</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.batch_text">batch_text</a><a href="#tymethod.draw_text">draw_text</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-TextExt-for-%26%27_%20str">&'_ str</a><a href="#impl-TextExt-for-String">String</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>widgetry</a></p><script>window.sidebarCurrent = {name: 'TextExt', ty: 'trait', 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/text.rs.html#471-474' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='index.html'>widgetry</a>::<wbr><a class="trait" href=''>TextExt</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait TextExt {
|
||||
<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/text.rs.html#470-473' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='index.html'>widgetry</a>::<wbr><a class="trait" href=''>TextExt</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait TextExt {
|
||||
fn <a href='#tymethod.draw_text' class='fnname'>draw_text</a>(self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a>;
|
||||
<div class='item-spacer'></div> fn <a href='#tymethod.batch_text' class='fnname'>batch_text</a>(self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a>;
|
||||
}</pre></div><h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.draw_text' class='method'><code>fn <a href='#tymethod.draw_text' class='fnname'>draw_text</a>(self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code></h3><h3 id='tymethod.batch_text' class='method'><code>fn <a href='#tymethod.batch_text' class='fnname'>batch_text</a>(self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code></h3></div><span class='loading-content'>Loading content...</span><h2 id='foreign-impls' class='small-section-header'>Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a></h2><h3 id='impl-TextExt-for-%26%27_%20str' class='impl'><code class='in-band'>impl<'_> <a class="trait" href="../widgetry/text/trait.TextExt.html" title="trait widgetry::text::TextExt">TextExt</a> for &'_ <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a href='#impl-TextExt-for-%26%27_%20str' class='anchor'></a><a class='srclink' href='../src/widgetry/text.rs.html#476-483' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_text' class="method hidden"><code>fn <a href='#method.draw_text' class='fnname'>draw_text</a>(self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../src/widgetry/text.rs.html#477-479' title='goto source code'>[src]</a></h4><h4 id='method.batch_text' class="method hidden"><code>fn <a href='#method.batch_text' class='fnname'>batch_text</a>(self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../src/widgetry/text.rs.html#480-482' title='goto source code'>[src]</a></h4></div><h3 id='impl-TextExt-for-String' class='impl'><code class='in-band'>impl <a class="trait" href="../widgetry/text/trait.TextExt.html" title="trait widgetry::text::TextExt">TextExt</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-TextExt-for-String' class='anchor'></a><a class='srclink' href='../src/widgetry/text.rs.html#485-492' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_text-1' class="method hidden"><code>fn <a href='#method.draw_text' class='fnname'>draw_text</a>(self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../src/widgetry/text.rs.html#486-488' title='goto source code'>[src]</a></h4><h4 id='method.batch_text-1' class="method hidden"><code>fn <a href='#method.batch_text' class='fnname'>batch_text</a>(self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../src/widgetry/text.rs.html#489-491' title='goto source code'>[src]</a></h4></div><span class='loading-content'>Loading content...</span><h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'></div><span class='loading-content'>Loading content...</span><script type="text/javascript" src="../implementors/widgetry/trait.TextExt.js" async></script></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>
|
||||
}</pre></div><h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.draw_text' class='method'><code>fn <a href='#tymethod.draw_text' class='fnname'>draw_text</a>(self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code></h3><h3 id='tymethod.batch_text' class='method'><code>fn <a href='#tymethod.batch_text' class='fnname'>batch_text</a>(self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code></h3></div><span class='loading-content'>Loading content...</span><h2 id='foreign-impls' class='small-section-header'>Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a></h2><h3 id='impl-TextExt-for-%26%27_%20str' class='impl'><code class='in-band'>impl<'_> <a class="trait" href="../widgetry/text/trait.TextExt.html" title="trait widgetry::text::TextExt">TextExt</a> for &'_ <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a href='#impl-TextExt-for-%26%27_%20str' class='anchor'></a><a class='srclink' href='../src/widgetry/text.rs.html#475-482' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_text' class="method hidden"><code>fn <a href='#method.draw_text' class='fnname'>draw_text</a>(self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../src/widgetry/text.rs.html#476-478' title='goto source code'>[src]</a></h4><h4 id='method.batch_text' class="method hidden"><code>fn <a href='#method.batch_text' class='fnname'>batch_text</a>(self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../src/widgetry/text.rs.html#479-481' title='goto source code'>[src]</a></h4></div><h3 id='impl-TextExt-for-String' class='impl'><code class='in-band'>impl <a class="trait" href="../widgetry/text/trait.TextExt.html" title="trait widgetry::text::TextExt">TextExt</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-TextExt-for-String' class='anchor'></a><a class='srclink' href='../src/widgetry/text.rs.html#484-491' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_text-1' class="method hidden"><code>fn <a href='#method.draw_text' class='fnname'>draw_text</a>(self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../src/widgetry/text.rs.html#485-487' title='goto source code'>[src]</a></h4><h4 id='method.batch_text-1' class="method hidden"><code>fn <a href='#method.batch_text' class='fnname'>batch_text</a>(self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class='srclink' href='../src/widgetry/text.rs.html#488-490' title='goto source code'>[src]</a></h4></div><span class='loading-content'>Loading content...</span><h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'></div><span class='loading-content'>Loading content...</span><script type="text/javascript" src="../implementors/widgetry/trait.TextExt.js" async></script></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,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_controls` fn in crate `widgetry_demo`."><meta name="keywords" content="rust, rustlang, rust-lang, make_controls"><title>widgetry_demo::make_controls - 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 fn"><!--[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_demo/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='index.html'>widgetry_demo</a></p><script>window.sidebarCurrent = {name: 'make_controls', ty: 'fn', 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_demo/lib.rs.html#297-373' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>widgetry_demo</a>::<wbr><a class="fn" href=''>make_controls</a></span></h1><pre class='rust fn'>fn make_controls(ctx: &mut EventCtx<'_>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "widgetry_demo";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
<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_demo/lib.rs.html#295-371' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>widgetry_demo</a>::<wbr><a class="fn" href=''>make_controls</a></span></h1><pre class='rust fn'>fn make_controls(ctx: &mut EventCtx<'_>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "widgetry_demo";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `setup_scrollable_canvas` fn in crate `widgetry_demo`."><meta name="keywords" content="rust, rustlang, rust-lang, setup_scrollable_canvas"><title>widgetry_demo::setup_scrollable_canvas - 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 fn"><!--[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_demo/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='index.html'>widgetry_demo</a></p><script>window.sidebarCurrent = {name: 'setup_scrollable_canvas', ty: 'fn', 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_demo/lib.rs.html#256-295' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>widgetry_demo</a>::<wbr><a class="fn" href=''>setup_scrollable_canvas</a></span></h1><pre class='rust fn'>fn setup_scrollable_canvas(ctx: &mut EventCtx<'_>) -> Drawable</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "widgetry_demo";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
<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_demo/lib.rs.html#256-293' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='index.html'>widgetry_demo</a>::<wbr><a class="fn" href=''>setup_scrollable_canvas</a></span></h1><pre class='rust fn'>fn setup_scrollable_canvas(ctx: &mut EventCtx<'_>) -> Drawable</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "widgetry_demo";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `widgetry_demo` crate."><meta name="keywords" content="rust, rustlang, rust-lang, widgetry_demo"><title>widgetry_demo - 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_demo/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Crate widgetry_demo</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_demo's items</p></a><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'widgetry_demo', 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_demo/lib.rs.html#1-384' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>widgetry_demo</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/widgetry_demo/lib.rs.html#1-382' title='goto source code'>[src]</a></span><span class='in-band'>Crate <a class="mod" href=''>widgetry_demo</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.App.html" title='widgetry_demo::App struct'>App</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Demo.html" title='widgetry_demo::Demo struct'>Demo</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.main.html" title='widgetry_demo::main fn'>main</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_controls.html" title='widgetry_demo::make_controls fn'>make_controls</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.setup_scrollable_canvas.html" title='widgetry_demo::setup_scrollable_canvas fn'>setup_scrollable_canvas</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.setup_texture_demo.html" title='widgetry_demo::setup_texture_demo fn'>setup_texture_demo</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_demo";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
Loading…
Reference in New Issue
Block a user