This commit is contained in:
dabreegster 2022-06-06 13:38:53 +00:00
parent 0fd3a3a8d3
commit 4ed4e7103c
9 changed files with 22 additions and 14 deletions

View File

@ -4,6 +4,6 @@
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../../../../map_gui/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In map_gui::tools::title_screen::built_info</a></h2><div id="sidebar-vars" data-name="BUILT_TIME_UTC" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../../map_gui/index.html"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Constant <a href="../../../index.html">map_gui</a>::<wbr><a href="../../index.html">tools</a>::<wbr><a href="../index.html">title_screen</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-4f1d52d4453364c7/out/built.rs.html#78">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const BUILT_TIME_UTC: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a> = r&quot;Thu, 02 Jun 2022 18:55:59 +0000&quot;;</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
<h1 class="fqn"><span class="in-band">Constant <a href="../../../index.html">map_gui</a>::<wbr><a href="../../index.html">tools</a>::<wbr><a href="../index.html">title_screen</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-4f1d52d4453364c7/out/built.rs.html#78">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const BUILT_TIME_UTC: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a> = r&quot;Mon, 06 Jun 2022 13:37:54 +0000&quot;;</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
</div></details></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="map_gui" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
</body></html>

File diff suppressed because one or more lines are too long

View File

@ -179,7 +179,7 @@
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;rustdoc 1.61.0 (fe5b13d68 2022-05-18)&quot;</span>;
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#&quot;The build time in RFC2822, UTC.&quot;#</span>]</span>
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;Thu, 02 Jun 2022 18:55:59 +0000&quot;</span>;
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;Mon, 06 Jun 2022 13:37:54 +0000&quot;</span>;
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#&quot;The target architecture, given by `CARGO_CFG_TARGET_ARCH`.&quot;#</span>]</span>
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;x86_64&quot;</span>;

View File

@ -71,6 +71,10 @@
<span id="66">66</span>
<span id="67">67</span>
<span id="68">68</span>
<span id="69">69</span>
<span id="70">70</span>
<span id="71">71</span>
<span id="72">72</span>
</pre><pre class="rust"><code><span class="kw">use</span> <span class="kw">crate</span>::{
<span class="ident">hotkeys</span>, <span class="ident">Color</span>, <span class="ident">DrawBaselayer</span>, <span class="ident">EventCtx</span>, <span class="ident">GfxCtx</span>, <span class="ident">Key</span>, <span class="ident">Line</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">State</span>, <span class="ident">Text</span>,
<span class="ident">Transition</span>, <span class="ident">Widget</span>,
@ -93,6 +97,10 @@
<span class="kw">for</span> <span class="ident">l</span> <span class="kw">in</span> <span class="ident">lines</span> {
<span class="ident">txt</span>.<span class="ident">add_line</span>(<span class="ident">l</span>);
}
<span class="ident"><span class="self">Self</span>::new_state_for_txt</span>(<span class="ident">ctx</span>, <span class="ident">txt</span>)
}
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">new_state_for_txt</span><span class="op">&lt;</span><span class="ident">A</span><span class="op">&gt;</span>(<span class="ident">ctx</span>: <span class="kw-2">&amp;mut</span> <span class="ident">EventCtx</span>, <span class="ident">txt</span>: <span class="ident">Text</span>) -&gt; <span class="ident">Box</span><span class="op">&lt;</span><span class="kw">dyn</span> <span class="ident">State</span><span class="op">&lt;</span><span class="ident">A</span><span class="op">&gt;</span><span class="op">&gt;</span> {
<span class="ident">Box::new</span>(<span class="ident">PopupMsg</span> {
<span class="ident">panel</span>: <span class="ident">Panel::new_builder</span>(<span class="ident">Widget::col</span>(<span class="macro">vec!</span>[
<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),

View File

@ -28,5 +28,5 @@ type <code>__T</code>. Returns the original <code>Rc</code>-ed trait if it isn
<code>None</code> if it isnt.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.downcast_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/app_state.rs.html#200">source</a></span><a href="#method.downcast_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.downcast_mut" class="fnname">downcast_mut</a>&lt;__T:&nbsp;<a class="trait" href="trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt;&gt;(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;mut </a>__T&gt;</h4></section></summary><div class="docblock"><p>Returns a mutable reference to the object within the trait object if it is of type
<code>__T</code>, or <code>None</code> if it isnt.</p>
</div></details></div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-State%3CA%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#37-68">source</a></span><a href="#impl-State%3CA%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;A&gt; <a class="trait" href="trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="../tools/popup/struct.PopupMsg.html" title="struct widgetry::tools::popup::PopupMsg">PopupMsg</a></h3></section><section id="impl-State%3CA%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/load.rs.html#377-459">source</a></span><a href="#impl-State%3CA%3E-1" class="anchor"></a><h3 class="code-header in-band">impl&lt;A, T&gt; <a class="trait" href="trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="../tools/load/struct.FutureLoader.html" title="struct widgetry::tools::load::FutureLoader">FutureLoader</a>&lt;A, T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static,&nbsp;</span></h3></section><section id="impl-State%3CA%3E-2" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/app_state.rs.html#288-316">source</a></span><a href="#impl-State%3CA%3E-2" class="anchor"></a><h3 class="code-header in-band">impl&lt;A:&nbsp;'static&gt; <a class="trait" href="trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="struct.SimpleStateWrapper.html" title="struct widgetry::app_state::SimpleStateWrapper">SimpleStateWrapper</a>&lt;A&gt;</h3></section><section id="impl-State%3CA%3E-3" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/load.rs.html#60-72">source</a></span><a href="#impl-State%3CA%3E-3" class="anchor"></a><h3 class="code-header in-band">impl&lt;A:&nbsp;'static, T:&nbsp;'static + <a class="trait" href="../tools/load/native_loader/trait.Readable.html" title="trait widgetry::tools::load::native_loader::Readable">Readable</a>&gt; <a class="trait" href="trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="../tools/load/native_loader/struct.FileLoader.html" title="struct widgetry::tools::load::native_loader::FileLoader">FileLoader</a>&lt;A, T&gt;</h3></section></div><script type="text/javascript" src="../../implementors/widgetry/app_state/trait.State.js" async></script></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="widgetry" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
</div></details></div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-State%3CA%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#41-72">source</a></span><a href="#impl-State%3CA%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;A&gt; <a class="trait" href="trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="../tools/popup/struct.PopupMsg.html" title="struct widgetry::tools::popup::PopupMsg">PopupMsg</a></h3></section><section id="impl-State%3CA%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/load.rs.html#377-459">source</a></span><a href="#impl-State%3CA%3E-1" class="anchor"></a><h3 class="code-header in-band">impl&lt;A, T&gt; <a class="trait" href="trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="../tools/load/struct.FutureLoader.html" title="struct widgetry::tools::load::FutureLoader">FutureLoader</a>&lt;A, T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static,&nbsp;</span></h3></section><section id="impl-State%3CA%3E-2" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/app_state.rs.html#288-316">source</a></span><a href="#impl-State%3CA%3E-2" class="anchor"></a><h3 class="code-header in-band">impl&lt;A:&nbsp;'static&gt; <a class="trait" href="trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="struct.SimpleStateWrapper.html" title="struct widgetry::app_state::SimpleStateWrapper">SimpleStateWrapper</a>&lt;A&gt;</h3></section><section id="impl-State%3CA%3E-3" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/load.rs.html#60-72">source</a></span><a href="#impl-State%3CA%3E-3" class="anchor"></a><h3 class="code-header in-band">impl&lt;A:&nbsp;'static, T:&nbsp;'static + <a class="trait" href="../tools/load/native_loader/trait.Readable.html" title="trait widgetry::tools::load::native_loader::Readable">Readable</a>&gt; <a class="trait" href="trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="../tools/load/native_loader/struct.FileLoader.html" title="struct widgetry::tools::load::native_loader::FileLoader">FileLoader</a>&lt;A, T&gt;</h3></section></div><script type="text/javascript" src="../../implementors/widgetry/app_state/trait.State.js" async></script></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="widgetry" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
</body></html>

View File

@ -4,7 +4,7 @@
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../../../widgetry/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"><a href="#">Module popup</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#structs">Structs</a></li></ul></div></section><div id="sidebar-vars" data-name="popup" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../widgetry/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Module <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">tools</a>::<wbr><a class="mod" href="#">popup</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#1-68">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<h1 class="fqn"><span class="in-band">Module <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">tools</a>::<wbr><a class="mod" href="#">popup</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#1-72">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.PopupMsg.html" title="widgetry::tools::popup::PopupMsg struct">PopupMsg</a></div><div class="item-right docblock-short"><p>Display a message dialog.</p>
</div></div></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="widgetry" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
</body></html>

View File

@ -3,13 +3,13 @@
</a><h2 class="location"></h2>
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../../../widgetry/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"><a href="#">PopupMsg</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.panel">panel</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.new_state">new_state</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-State%3CA%3E">State&lt;A&gt;</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-Send">!Send</a></li><li><a href="#impl-Sync">!Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">!UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-Downcast">Downcast</a></li><li><a href="#impl-From%3CT%3E">From&lt;T&gt;</a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a></li><li><a href="#impl-Same%3CT%3E">Same&lt;T&gt;</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></li></ul></div></section><h2 class="location"><a href="index.html">In widgetry::tools::popup</a></h2><div id="sidebar-vars" data-name="PopupMsg" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../widgetry/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
</a><h2 class="location"><a href="#">PopupMsg</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.panel">panel</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.new_state">new_state</a></li><li><a href="#method.new_state_for_txt">new_state_for_txt</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-State%3CA%3E">State&lt;A&gt;</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-Send">!Send</a></li><li><a href="#impl-Sync">!Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">!UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-Downcast">Downcast</a></li><li><a href="#impl-From%3CT%3E">From&lt;T&gt;</a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a></li><li><a href="#impl-Same%3CT%3E">Same&lt;T&gt;</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></li></ul></div></section><h2 class="location"><a href="index.html">In widgetry::tools::popup</a></h2><div id="sidebar-vars" data-name="PopupMsg" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../widgetry/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Struct <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">tools</a>::<wbr><a href="index.html">popup</a>::<wbr><a class="struct" href="#">PopupMsg</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#8-10">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct PopupMsg {
panel: <a class="struct" href="../../widgets/panel/struct.Panel.html" title="struct widgetry::widgets::panel::Panel">Panel</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Display a message dialog.</p>
</div></details><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: <a class="struct" href="../../widgets/panel/struct.Panel.html" title="struct widgetry::widgets::panel::Panel">Panel</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#12-35">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.PopupMsg.html" title="struct widgetry::tools::popup::PopupMsg">PopupMsg</a></h3></section></summary><div class="impl-items"><section id="method.new_state" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#13-34">source</a></span><a href="#method.new_state" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new_state" class="fnname">new_state</a>&lt;A&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut <a class="struct" href="../../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a>&lt;'_&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;title: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;lines: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>&gt;&gt;<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="../../app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt;&gt;</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CA%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#37-68">source</a></span><a href="#impl-State%3CA%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;A&gt; <a class="trait" href="../../app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="struct.PopupMsg.html" title="struct widgetry::tools::popup::PopupMsg">PopupMsg</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#38-51">source</a></span><a href="#method.event" class="anchor"></a><h4 class="code-header">fn <a href="../../app_state/trait.State.html#tymethod.event" class="fnname">event</a>(&amp;mut self, ctx: &amp;mut <a class="struct" href="../../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a>&lt;'_&gt;, _: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;mut </a>A) -&gt; <a class="enum" href="../../app_state/enum.Transition.html" title="enum widgetry::app_state::Transition">Transition</a>&lt;A&gt;</h4></section></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#53-55">source</a></span><a href="#method.draw_baselayer" class="anchor"></a><h4 class="code-header">fn <a href="../../app_state/trait.State.html#method.draw_baselayer" class="fnname">draw_baselayer</a>(&amp;self) -&gt; <a class="enum" href="../../app_state/enum.DrawBaselayer.html" title="enum widgetry::app_state::DrawBaselayer">DrawBaselayer</a></h4></section></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#57-67">source</a></span><a href="#method.draw" class="anchor"></a><h4 class="code-header">fn <a href="../../app_state/trait.State.html#tymethod.draw" class="fnname">draw</a>(&amp;self, g: &amp;mut <a class="struct" href="../../drawing/struct.GfxCtx.html" title="struct widgetry::drawing::GfxCtx">GfxCtx</a>&lt;'_&gt;, _: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;</a>A)</h4></section></summary><div class='docblock'><p>Draw</p>
</div></details><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: <a class="struct" href="../../widgets/panel/struct.Panel.html" title="struct widgetry::widgets::panel::Panel">Panel</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#12-39">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.PopupMsg.html" title="struct widgetry::tools::popup::PopupMsg">PopupMsg</a></h3></section></summary><div class="impl-items"><section id="method.new_state" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#13-24">source</a></span><a href="#method.new_state" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new_state" class="fnname">new_state</a>&lt;A&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut <a class="struct" href="../../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a>&lt;'_&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;title: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;lines: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>&gt;&gt;<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="../../app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt;&gt;</h4></section><section id="method.new_state_for_txt" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#26-38">source</a></span><a href="#method.new_state_for_txt" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new_state_for_txt" class="fnname">new_state_for_txt</a>&lt;A&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut <a class="struct" href="../../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a>&lt;'_&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;txt: <a class="struct" href="../../text/struct.Text.html" title="struct widgetry::text::Text">Text</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="../../app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt;&gt;</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CA%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#41-72">source</a></span><a href="#impl-State%3CA%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;A&gt; <a class="trait" href="../../app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="struct.PopupMsg.html" title="struct widgetry::tools::popup::PopupMsg">PopupMsg</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#42-55">source</a></span><a href="#method.event" class="anchor"></a><h4 class="code-header">fn <a href="../../app_state/trait.State.html#tymethod.event" class="fnname">event</a>(&amp;mut self, ctx: &amp;mut <a class="struct" href="../../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a>&lt;'_&gt;, _: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;mut </a>A) -&gt; <a class="enum" href="../../app_state/enum.Transition.html" title="enum widgetry::app_state::Transition">Transition</a>&lt;A&gt;</h4></section></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#57-59">source</a></span><a href="#method.draw_baselayer" class="anchor"></a><h4 class="code-header">fn <a href="../../app_state/trait.State.html#method.draw_baselayer" class="fnname">draw_baselayer</a>(&amp;self) -&gt; <a class="enum" href="../../app_state/enum.DrawBaselayer.html" title="enum widgetry::app_state::DrawBaselayer">DrawBaselayer</a></h4></section></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/tools/popup.rs.html#61-71">source</a></span><a href="#method.draw" class="anchor"></a><h4 class="code-header">fn <a href="../../app_state/trait.State.html#tymethod.draw" class="fnname">draw</a>(&amp;self, g: &amp;mut <a class="struct" href="../../drawing/struct.GfxCtx.html" title="struct widgetry::drawing::GfxCtx">GfxCtx</a>&lt;'_&gt;, _: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;</a>A)</h4></section></summary><div class='docblock'><p>Draw</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/app_state.rs.html#190">source</a></span><a href="#method.on_destroy" class="anchor"></a><h4 class="code-header">fn <a href="../../app_state/trait.State.html#method.on_destroy" class="fnname">on_destroy</a>(&amp;mut self, _: &amp;mut <a class="struct" href="../../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a>&lt;'_&gt;, _: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/widgetry/app_state.rs.html#195-197">source</a></span><a href="#method.recreate" class="anchor"></a><h4 class="code-header">fn <a href="../../app_state/trait.State.html#method.recreate" class="fnname">recreate</a>(&amp;mut self, _: &amp;mut <a class="struct" href="../../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a>&lt;'_&gt;, _: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;mut </a>A) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="../../app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt;&gt;</h4></section></summary><div class='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a href="../../app_state/trait.State.html#method.recreate">Read more</a></p>

View File

@ -3,13 +3,13 @@
</a><h2 class="location"></h2>
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../../widgetry/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"><a href="#">PopupMsg</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.panel">panel</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.new_state">new_state</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-State%3CA%3E">State&lt;A&gt;</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-Send">!Send</a></li><li><a href="#impl-Sync">!Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">!UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-Downcast">Downcast</a></li><li><a href="#impl-From%3CT%3E">From&lt;T&gt;</a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a></li><li><a href="#impl-Same%3CT%3E">Same&lt;T&gt;</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></li></ul></div></section><h2 class="location"><a href="index.html">In widgetry::tools</a></h2><div id="sidebar-vars" data-name="PopupMsg" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../widgetry/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
</a><h2 class="location"><a href="#">PopupMsg</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.panel">panel</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.new_state">new_state</a></li><li><a href="#method.new_state_for_txt">new_state_for_txt</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-State%3CA%3E">State&lt;A&gt;</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-Send">!Send</a></li><li><a href="#impl-Sync">!Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">!UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-Downcast">Downcast</a></li><li><a href="#impl-From%3CT%3E">From&lt;T&gt;</a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a></li><li><a href="#impl-Same%3CT%3E">Same&lt;T&gt;</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></li></ul></div></section><h2 class="location"><a href="index.html">In widgetry::tools</a></h2><div id="sidebar-vars" data-name="PopupMsg" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../widgetry/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Struct <a href="../index.html">widgetry</a>::<wbr><a href="index.html">tools</a>::<wbr><a class="struct" href="#">PopupMsg</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#8-10">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct PopupMsg {
panel: <a class="struct" href="../widgets/panel/struct.Panel.html" title="struct widgetry::widgets::panel::Panel">Panel</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Display a message dialog.</p>
</div></details><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: <a class="struct" href="../widgets/panel/struct.Panel.html" title="struct widgetry::widgets::panel::Panel">Panel</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#12-35">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="popup/struct.PopupMsg.html" title="struct widgetry::tools::popup::PopupMsg">PopupMsg</a></h3></section></summary><div class="impl-items"><section id="method.new_state" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#13-34">source</a></span><a href="#method.new_state" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new_state" class="fnname">new_state</a>&lt;A&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut <a class="struct" href="../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a>&lt;'_&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;title: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;lines: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>&gt;&gt;<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="../app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt;&gt;</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CA%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#37-68">source</a></span><a href="#impl-State%3CA%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;A&gt; <a class="trait" href="../app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="popup/struct.PopupMsg.html" title="struct widgetry::tools::popup::PopupMsg">PopupMsg</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#38-51">source</a></span><a href="#method.event" class="anchor"></a><h4 class="code-header">fn <a href="../app_state/trait.State.html#tymethod.event" class="fnname">event</a>(&amp;mut self, ctx: &amp;mut <a class="struct" href="../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a>&lt;'_&gt;, _: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;mut </a>A) -&gt; <a class="enum" href="../app_state/enum.Transition.html" title="enum widgetry::app_state::Transition">Transition</a>&lt;A&gt;</h4></section></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#53-55">source</a></span><a href="#method.draw_baselayer" class="anchor"></a><h4 class="code-header">fn <a href="../app_state/trait.State.html#method.draw_baselayer" class="fnname">draw_baselayer</a>(&amp;self) -&gt; <a class="enum" href="../app_state/enum.DrawBaselayer.html" title="enum widgetry::app_state::DrawBaselayer">DrawBaselayer</a></h4></section></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#57-67">source</a></span><a href="#method.draw" class="anchor"></a><h4 class="code-header">fn <a href="../app_state/trait.State.html#tymethod.draw" class="fnname">draw</a>(&amp;self, g: &amp;mut <a class="struct" href="../drawing/struct.GfxCtx.html" title="struct widgetry::drawing::GfxCtx">GfxCtx</a>&lt;'_&gt;, _: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;</a>A)</h4></section></summary><div class='docblock'><p>Draw</p>
</div></details><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: <a class="struct" href="../widgets/panel/struct.Panel.html" title="struct widgetry::widgets::panel::Panel">Panel</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#12-39">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="popup/struct.PopupMsg.html" title="struct widgetry::tools::popup::PopupMsg">PopupMsg</a></h3></section></summary><div class="impl-items"><section id="method.new_state" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#13-24">source</a></span><a href="#method.new_state" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new_state" class="fnname">new_state</a>&lt;A&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut <a class="struct" href="../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a>&lt;'_&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;title: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;lines: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>&gt;&gt;<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="../app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt;&gt;</h4></section><section id="method.new_state_for_txt" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#26-38">source</a></span><a href="#method.new_state_for_txt" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new_state_for_txt" class="fnname">new_state_for_txt</a>&lt;A&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut <a class="struct" href="../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a>&lt;'_&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;txt: <a class="struct" href="../text/struct.Text.html" title="struct widgetry::text::Text">Text</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="../app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt;&gt;</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CA%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#41-72">source</a></span><a href="#impl-State%3CA%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;A&gt; <a class="trait" href="../app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="popup/struct.PopupMsg.html" title="struct widgetry::tools::popup::PopupMsg">PopupMsg</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#42-55">source</a></span><a href="#method.event" class="anchor"></a><h4 class="code-header">fn <a href="../app_state/trait.State.html#tymethod.event" class="fnname">event</a>(&amp;mut self, ctx: &amp;mut <a class="struct" href="../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a>&lt;'_&gt;, _: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;mut </a>A) -&gt; <a class="enum" href="../app_state/enum.Transition.html" title="enum widgetry::app_state::Transition">Transition</a>&lt;A&gt;</h4></section></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#57-59">source</a></span><a href="#method.draw_baselayer" class="anchor"></a><h4 class="code-header">fn <a href="../app_state/trait.State.html#method.draw_baselayer" class="fnname">draw_baselayer</a>(&amp;self) -&gt; <a class="enum" href="../app_state/enum.DrawBaselayer.html" title="enum widgetry::app_state::DrawBaselayer">DrawBaselayer</a></h4></section></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/tools/popup.rs.html#61-71">source</a></span><a href="#method.draw" class="anchor"></a><h4 class="code-header">fn <a href="../app_state/trait.State.html#tymethod.draw" class="fnname">draw</a>(&amp;self, g: &amp;mut <a class="struct" href="../drawing/struct.GfxCtx.html" title="struct widgetry::drawing::GfxCtx">GfxCtx</a>&lt;'_&gt;, _: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;</a>A)</h4></section></summary><div class='docblock'><p>Draw</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/app_state.rs.html#190">source</a></span><a href="#method.on_destroy" class="anchor"></a><h4 class="code-header">fn <a href="../app_state/trait.State.html#method.on_destroy" class="fnname">on_destroy</a>(&amp;mut self, _: &amp;mut <a class="struct" href="../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a>&lt;'_&gt;, _: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/widgetry/app_state.rs.html#195-197">source</a></span><a href="#method.recreate" class="anchor"></a><h4 class="code-header">fn <a href="../app_state/trait.State.html#method.recreate" class="fnname">recreate</a>(&amp;mut self, _: &amp;mut <a class="struct" href="../event_ctx/struct.EventCtx.html" title="struct widgetry::event_ctx::EventCtx">EventCtx</a>&lt;'_&gt;, _: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;mut </a>A) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="../app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt;&gt;</h4></section></summary><div class='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a href="../app_state/trait.State.html#method.recreate">Read more</a></p>

View File

@ -28,5 +28,5 @@ type <code>__T</code>. Returns the original <code>Rc</code>-ed trait if it isn
<code>None</code> if it isnt.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.downcast_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/widgetry/app_state.rs.html#200">source</a></span><a href="#method.downcast_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.downcast_mut" class="fnname">downcast_mut</a>&lt;__T:&nbsp;<a class="trait" href="app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt;&gt;(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;mut </a>__T&gt;</h4></section></summary><div class="docblock"><p>Returns a mutable reference to the object within the trait object if it is of type
<code>__T</code>, or <code>None</code> if it isnt.</p>
</div></details></div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-State%3CA%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/widgetry/tools/popup.rs.html#37-68">source</a></span><a href="#impl-State%3CA%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;A&gt; <a class="trait" href="app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="tools/popup/struct.PopupMsg.html" title="struct widgetry::tools::popup::PopupMsg">PopupMsg</a></h3></section><section id="impl-State%3CA%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/widgetry/tools/load.rs.html#377-459">source</a></span><a href="#impl-State%3CA%3E-1" class="anchor"></a><h3 class="code-header in-band">impl&lt;A, T&gt; <a class="trait" href="app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="tools/load/struct.FutureLoader.html" title="struct widgetry::tools::load::FutureLoader">FutureLoader</a>&lt;A, T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static,&nbsp;</span></h3></section><section id="impl-State%3CA%3E-2" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/widgetry/app_state.rs.html#288-316">source</a></span><a href="#impl-State%3CA%3E-2" class="anchor"></a><h3 class="code-header in-band">impl&lt;A:&nbsp;'static&gt; <a class="trait" href="app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="app_state/struct.SimpleStateWrapper.html" title="struct widgetry::app_state::SimpleStateWrapper">SimpleStateWrapper</a>&lt;A&gt;</h3></section><section id="impl-State%3CA%3E-3" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/widgetry/tools/load.rs.html#60-72">source</a></span><a href="#impl-State%3CA%3E-3" class="anchor"></a><h3 class="code-header in-band">impl&lt;A:&nbsp;'static, T:&nbsp;'static + <a class="trait" href="tools/load/native_loader/trait.Readable.html" title="trait widgetry::tools::load::native_loader::Readable">Readable</a>&gt; <a class="trait" href="app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="tools/load/native_loader/struct.FileLoader.html" title="struct widgetry::tools::load::native_loader::FileLoader">FileLoader</a>&lt;A, T&gt;</h3></section></div><script type="text/javascript" src="../implementors/widgetry/trait.State.js" async></script></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="widgetry" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
</div></details></div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-State%3CA%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/widgetry/tools/popup.rs.html#41-72">source</a></span><a href="#impl-State%3CA%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;A&gt; <a class="trait" href="app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="tools/popup/struct.PopupMsg.html" title="struct widgetry::tools::popup::PopupMsg">PopupMsg</a></h3></section><section id="impl-State%3CA%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/widgetry/tools/load.rs.html#377-459">source</a></span><a href="#impl-State%3CA%3E-1" class="anchor"></a><h3 class="code-header in-band">impl&lt;A, T&gt; <a class="trait" href="app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="tools/load/struct.FutureLoader.html" title="struct widgetry::tools::load::FutureLoader">FutureLoader</a>&lt;A, T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static,&nbsp;</span></h3></section><section id="impl-State%3CA%3E-2" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/widgetry/app_state.rs.html#288-316">source</a></span><a href="#impl-State%3CA%3E-2" class="anchor"></a><h3 class="code-header in-band">impl&lt;A:&nbsp;'static&gt; <a class="trait" href="app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="app_state/struct.SimpleStateWrapper.html" title="struct widgetry::app_state::SimpleStateWrapper">SimpleStateWrapper</a>&lt;A&gt;</h3></section><section id="impl-State%3CA%3E-3" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/widgetry/tools/load.rs.html#60-72">source</a></span><a href="#impl-State%3CA%3E-3" class="anchor"></a><h3 class="code-header in-band">impl&lt;A:&nbsp;'static, T:&nbsp;'static + <a class="trait" href="tools/load/native_loader/trait.Readable.html" title="trait widgetry::tools::load::native_loader::Readable">Readable</a>&gt; <a class="trait" href="app_state/trait.State.html" title="trait widgetry::app_state::State">State</a>&lt;A&gt; for <a class="struct" href="tools/load/native_loader/struct.FileLoader.html" title="struct widgetry::tools::load::native_loader::FileLoader">FileLoader</a>&lt;A, T&gt;</h3></section></div><script type="text/javascript" src="../implementors/widgetry/trait.State.js" async></script></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="widgetry" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
</body></html>