mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
deploy: 5b6c88d3b4
This commit is contained in:
parent
946af61598
commit
16d5829815
@ -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 `build_panel` fn in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, build_panel"><title>fifteen_min::viewer::build_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 id="default-settings"></script><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='../../fifteen_min/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">fifteen_min</a>::<wbr><a href="index.html">viewer</a></p><script>window.sidebarCurrent = {name: "build_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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/fifteen_min/viewer.rs.html#264-339" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="fn" href="">build_panel</a></span></h1><pre class="rust fn">fn build_panel(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> start: &<a class="struct" href="../../map_model/objects/building/struct.Building.html" title="struct map_model::objects::building::Building">Building</a>, <br> isochrone: &<a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a><br>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</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/fifteen_min/viewer.rs.html#264-343" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="fn" href="">build_panel</a></span></h1><pre class="rust fn">fn build_panel(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> start: &<a class="struct" href="../../map_model/objects/building/struct.Building.html" title="struct map_model::objects::building::Building">Building</a>, <br> isochrone: &<a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a><br>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</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 `draw_unwalkable_roads` fn in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_unwalkable_roads"><title>fifteen_min::viewer::draw_unwalkable_roads - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><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='../../fifteen_min/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">fifteen_min</a>::<wbr><a href="index.html">viewer</a></p><script>window.sidebarCurrent = {name: "draw_unwalkable_roads", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/fifteen_min/viewer.rs.html#542-564" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="fn" href="">draw_unwalkable_roads</a></span></h1><pre class="rust fn">fn draw_unwalkable_roads(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> opts: &<a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a><br>) -> Drawable</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</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/fifteen_min/viewer.rs.html#546-568" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="fn" href="">draw_unwalkable_roads</a></span></h1><pre class="rust fn">fn draw_unwalkable_roads(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> opts: &<a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a><br>) -> Drawable</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</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 `viewer` mod in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, viewer"><title>fifteen_min::viewer - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><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='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module viewer</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li><li><a href="#types">Type Definitions</a></li></ul></div><p class="location"><a href="../index.html">fifteen_min</a></p><script>window.sidebarCurrent = {name: "viewer", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/fifteen_min/viewer.rs.html#1-564" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">fifteen_min</a>::<wbr><a class="mod" href="">viewer</a></span></h1><div class="docblock"><p>This is a tool to experiment with the concept of 15-minute neighborhoods. Can you access your
|
||||
<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/fifteen_min/viewer.rs.html#1-568" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">fifteen_min</a>::<wbr><a class="mod" href="">viewer</a></span></h1><div class="docblock"><p>This is a tool to experiment with the concept of 15-minute neighborhoods. Can you access your
|
||||
daily needs (like groceries, a cafe, a library) within a 15-minute walk, bike ride, or public
|
||||
transit ride of your home?</p>
|
||||
<p>See https://github.com/dabreegster/abstreet/issues/393 for more context.</p>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Entry` struct in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, Entry"><title>fifteen_min::viewer::Entry - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><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='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct Entry</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.address">address</a><a href="#structfield.amenity_type">amenity_type</a><a href="#structfield.bldg">bldg</a><a href="#structfield.duration_away">duration_away</a><a href="#structfield.name">name</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a></p><script>window.sidebarCurrent = {name: "Entry", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/fifteen_min/viewer.rs.html#403-409" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="struct" href="">Entry</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct Entry {
|
||||
<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/fifteen_min/viewer.rs.html#407-413" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="struct" href="">Entry</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct Entry {
|
||||
bldg: <a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>,
|
||||
name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
amenity_type: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `HoverKey` type in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, HoverKey"><title>fifteen_min::viewer::HoverKey - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><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 type"><!--[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='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Type Definition HoverKey</p><div class="sidebar-elems"><p class="location"><a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a></p><script>window.sidebarCurrent = {name: "HoverKey", ty: "type", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/fifteen_min/viewer.rs.html#346" title="goto source code">[src]</a></span><span class="in-band">Type Definition <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="type" href="">HoverKey</a></span></h1><pre class="rust typedef">type HoverKey = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;</pre><div class="docblock"><p>(building, scale factor)</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/fifteen_min/viewer.rs.html#350" title="goto source code">[src]</a></span><span class="in-band">Type Definition <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="type" href="">HoverKey</a></span></h1><pre class="rust typedef">type HoverKey = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;</pre><div class="docblock"><p>(building, scale factor)</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -101,12 +101,12 @@ call this to handle all other events. <a href="#method.other_event">Read more</a
|
||||
</div><h4 id="method.draw-62" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/sandbox/uber_turns.rs.html#320-322" title="goto source code">[src]</a></h4><h4 id="method.panel_changed-10" class="method hidden"><code>fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div><h4 id="method.on_mouseover-9" class="method hidden"><code>fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||||
</div><h4 id="method.draw_baselayer-61" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4></div><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/challenges/cutscene/struct.CutscenePlayer.html" title="struct game::challenges::cutscene::CutscenePlayer">CutscenePlayer</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#88-162" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&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/challenges/cutscene.rs.html#89-151" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw_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/challenges/cutscene.rs.html#153-155" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.draw-1" 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/challenges/cutscene.rs.html#157-161" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer-61" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4></div><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/challenges/cutscene/struct.CutscenePlayer.html" title="struct game::challenges::cutscene::CutscenePlayer">CutscenePlayer</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#87-161" 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/challenges/cutscene.rs.html#88-150" 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/challenges/cutscene.rs.html#152-154" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.draw-1" 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/challenges/cutscene.rs.html#156-160" 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><h3 id="impl-State%3CApp%3E-1" 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/challenges/cutscene/struct.FYI.html" title="struct game::challenges::cutscene::FYI">FYI</a></code><a href="#impl-State%3CApp%3E-1" class="anchor"></a><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#307-322" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-1" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &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/challenges/cutscene.rs.html#308-316" 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-2" 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/challenges/cutscene.rs.html#318-321" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div></div><h3 id="impl-State%3CApp%3E-1" 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/challenges/cutscene/struct.FYI.html" title="struct game::challenges::cutscene::FYI">FYI</a></code><a href="#impl-State%3CApp%3E-1" class="anchor"></a><a class="srclink" href="../../src/game/challenges/cutscene.rs.html#308-323" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-1" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: &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/challenges/cutscene.rs.html#309-317" 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-2" 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/challenges/cutscene.rs.html#319-322" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer-1" 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-1" 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-10" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-State%3CApp%3E-10" class="anchor"></a><a class="srclink" href="../../src/game/debug/mod.rs.html#772-799" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-10" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/mod.rs.html#773-797" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
|
@ -1,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 `Layout` enum in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, Layout"><title>game::challenges::cutscene::Layout - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><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 enum"><!--[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">Enum Layout</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.BossSpeaking">BossSpeaking</a><a href="#variant.Extra">Extra</a><a href="#variant.PlayerSpeaking">PlayerSpeaking</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a href="index.html">cutscene</a></p><script>window.sidebarCurrent = {name: "Layout", ty: "enum", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/challenges/cutscene.rs.html#16-20" title="goto source code">[src]</a></span><span class="in-band">Enum <a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a href="index.html">cutscene</a>::<wbr><a class="enum" href="">Layout</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum">enum Layout {
|
||||
<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/challenges/cutscene.rs.html#15-19" title="goto source code">[src]</a></span><span class="in-band">Enum <a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a href="index.html">cutscene</a>::<wbr><a class="enum" href="">Layout</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum">enum Layout {
|
||||
PlayerSpeaking,
|
||||
BossSpeaking,
|
||||
Extra(&'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>),
|
||||
|
@ -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::challenges::cutscene::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 id="default-settings"></script><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">challenges</a>::<wbr><a href="index.html">cutscene</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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/challenges/cutscene.rs.html#164-281" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a href="index.html">cutscene</a>::<wbr><a class="fn" href="">make_panel</a></span></h1><pre class="rust fn">fn make_panel(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> scenes: &<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="../../../game/challenges/cutscene/struct.Scene.html" title="struct game::challenges::cutscene::Scene">Scene</a>>, <br> make_task: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&mut EventCtx<'_>) -> Widget>, <br> idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</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/challenges/cutscene.rs.html#163-280" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a href="index.html">cutscene</a>::<wbr><a class="fn" href="">make_panel</a></span></h1><pre class="rust fn">fn make_panel(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> scenes: &<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="../../../game/challenges/cutscene/struct.Scene.html" title="struct game::challenges::cutscene::Scene">Scene</a>>, <br> make_task: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&mut EventCtx<'_>) -> Widget>, <br> idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</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,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 `cutscene` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, cutscene"><title>game::challenges::cutscene - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><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 cutscene</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">challenges</a></p><script>window.sidebarCurrent = {name: "cutscene", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/challenges/cutscene.rs.html#1-322" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a class="mod" href="">cutscene</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/challenges/cutscene.rs.html#1-323" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a class="mod" href="">cutscene</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.CutsceneBuilder.html" title="game::challenges::cutscene::CutsceneBuilder struct">CutsceneBuilder</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.CutscenePlayer.html" title="game::challenges::cutscene::CutscenePlayer struct">CutscenePlayer</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.FYI.html" title="game::challenges::cutscene::FYI struct">FYI</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Scene.html" title="game::challenges::cutscene::Scene struct">Scene</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.Layout.html" title="game::challenges::cutscene::Layout enum">Layout</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::challenges::cutscene::make_panel fn">make_panel</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
@ -1,16 +1,16 @@
|
||||
<!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 `CutscenePlayer` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, CutscenePlayer"><title>game::challenges::cutscene::CutscenePlayer - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><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 CutscenePlayer</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.idx">idx</a><a href="#structfield.make_task">make_task</a><a href="#structfield.name">name</a><a href="#structfield.panel">panel</a><a href="#structfield.scenes">scenes</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-State%3CApp%3E">State<App></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a href="index.html">cutscene</a></p><script>window.sidebarCurrent = {name: "CutscenePlayer", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/challenges/cutscene.rs.html#80-86" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a href="index.html">cutscene</a>::<wbr><a class="struct" href="">CutscenePlayer</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct CutscenePlayer {
|
||||
<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/challenges/cutscene.rs.html#79-85" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a href="index.html">cutscene</a>::<wbr><a class="struct" href="">CutscenePlayer</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct CutscenePlayer {
|
||||
name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
scenes: <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="../../../game/challenges/cutscene/struct.Scene.html" title="struct game::challenges::cutscene::Scene">Scene</a>>,
|
||||
idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
|
||||
panel: Panel,
|
||||
make_task: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&mut EventCtx<'_>) -> Widget>,
|
||||
}</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.scenes" class="structfield small-section-header"><a href="#structfield.scenes" class="anchor field"></a><code>scenes: <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="../../../game/challenges/cutscene/struct.Scene.html" title="struct game::challenges::cutscene::Scene">Scene</a>></code></span><span id="structfield.idx" class="structfield small-section-header"><a href="#structfield.idx" class="anchor field"></a><code>idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.make_task" class="structfield small-section-header"><a href="#structfield.make_task" class="anchor field"></a><code>make_task: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&mut EventCtx<'_>) -> Widget></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-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/challenges/cutscene/struct.CutscenePlayer.html" title="struct game::challenges::cutscene::CutscenePlayer">CutscenePlayer</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../src/game/challenges/cutscene.rs.html#88-162" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&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/challenges/cutscene.rs.html#89-151" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw_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/challenges/cutscene.rs.html#153-155" 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/challenges/cutscene.rs.html#157-161" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.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.scenes" class="structfield small-section-header"><a href="#structfield.scenes" class="anchor field"></a><code>scenes: <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="../../../game/challenges/cutscene/struct.Scene.html" title="struct game::challenges::cutscene::Scene">Scene</a>></code></span><span id="structfield.idx" class="structfield small-section-header"><a href="#structfield.idx" class="anchor field"></a><code>idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.make_task" class="structfield small-section-header"><a href="#structfield.make_task" class="anchor field"></a><code>make_task: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&mut EventCtx<'_>) -> Widget></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-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/challenges/cutscene/struct.CutscenePlayer.html" title="struct game::challenges::cutscene::CutscenePlayer">CutscenePlayer</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../src/game/challenges/cutscene.rs.html#87-161" 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/challenges/cutscene.rs.html#88-150" 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/challenges/cutscene.rs.html#152-154" 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/challenges/cutscene.rs.html#156-160" 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/challenges/cutscene/struct.CutscenePlayer.html" title="struct game::challenges::cutscene::CutscenePlayer">CutscenePlayer</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/challenges/cutscene/struct.CutscenePlayer.html" title="struct game::challenges::cutscene::CutscenePlayer">CutscenePlayer</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/challenges/cutscene/struct.CutscenePlayer.html" title="struct game::challenges::cutscene::CutscenePlayer">CutscenePlayer</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/challenges/cutscene/struct.CutscenePlayer.html" title="struct game::challenges::cutscene::CutscenePlayer">CutscenePlayer</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/challenges/cutscene/struct.CutscenePlayer.html" title="struct game::challenges::cutscene::CutscenePlayer">CutscenePlayer</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>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a 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>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a 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,11 +1,11 @@
|
||||
<!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 `FYI` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, FYI"><title>game::challenges::cutscene::FYI - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><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 FYI</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.panel">panel</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-State%3CApp%3E">State<App></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a href="index.html">cutscene</a></p><script>window.sidebarCurrent = {name: "FYI", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/challenges/cutscene.rs.html#283-285" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a href="index.html">cutscene</a>::<wbr><a class="struct" href="">FYI</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct FYI {
|
||||
<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/challenges/cutscene.rs.html#282-284" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a href="index.html">cutscene</a>::<wbr><a class="struct" href="">FYI</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct FYI {
|
||||
panel: Panel,
|
||||
}</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><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/challenges/cutscene/struct.FYI.html" title="struct game::challenges::cutscene::FYI">FYI</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/game/challenges/cutscene.rs.html#287-305" 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>(<br> ctx: &mut EventCtx<'_>, <br> contents: Widget, <br> bg: Color<br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class="srclink" href="../../../src/game/challenges/cutscene.rs.html#288-304" 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/challenges/cutscene/struct.FYI.html" title="struct game::challenges::cutscene::FYI">FYI</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../src/game/challenges/cutscene.rs.html#307-322" 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<'_>, _: &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/challenges/cutscene.rs.html#308-316" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../../src/game/challenges/cutscene.rs.html#318-321" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><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/challenges/cutscene/struct.FYI.html" title="struct game::challenges::cutscene::FYI">FYI</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/game/challenges/cutscene.rs.html#286-306" 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>(<br> ctx: &mut EventCtx<'_>, <br> contents: Widget, <br> bg: Color<br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class="srclink" href="../../../src/game/challenges/cutscene.rs.html#287-305" 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/challenges/cutscene/struct.FYI.html" title="struct game::challenges::cutscene::FYI">FYI</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../src/game/challenges/cutscene.rs.html#308-323" 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<'_>, _: &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/challenges/cutscene.rs.html#309-317" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../../src/game/challenges/cutscene.rs.html#319-322" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</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/challenges/cutscene/struct.FYI.html" title="struct game::challenges::cutscene::FYI">FYI</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/challenges/cutscene/struct.FYI.html" title="struct game::challenges::cutscene::FYI">FYI</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/challenges/cutscene/struct.FYI.html" title="struct game::challenges::cutscene::FYI">FYI</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/challenges/cutscene/struct.FYI.html" title="struct game::challenges::cutscene::FYI">FYI</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/challenges/cutscene/struct.FYI.html" title="struct game::challenges::cutscene::FYI">FYI</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>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a 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>
|
||||
|
@ -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 `Scene` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, Scene"><title>game::challenges::cutscene::Scene - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><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 Scene</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.layout">layout</a><a href="#structfield.msg">msg</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a href="index.html">cutscene</a></p><script>window.sidebarCurrent = {name: "Scene", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/challenges/cutscene.rs.html#22-25" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a href="index.html">cutscene</a>::<wbr><a class="struct" href="">Scene</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct Scene {
|
||||
<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/challenges/cutscene.rs.html#21-24" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">game</a>::<wbr><a href="../index.html">challenges</a>::<wbr><a href="index.html">cutscene</a>::<wbr><a class="struct" href="">Scene</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct Scene {
|
||||
layout: <a class="enum" href="../../../game/challenges/cutscene/enum.Layout.html" title="enum game::challenges::cutscene::Layout">Layout</a>,
|
||||
msg: Text,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
|
@ -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 id="default-settings"></script><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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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-b5501e76eef510ad/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> = "Wed, 20 Jan 2021 01:55:26 +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-b5501e76eef510ad/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> = "Wed, 20 Jan 2021 22:26:40 +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,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 `city_picker` mod in crate `map_gui`."><meta name="keywords" content="rust, rustlang, rust-lang, city_picker"><title>map_gui::tools::city_picker - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_gui/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module city_picker</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class="location"><a href="../../index.html">map_gui</a>::<wbr><a href="../index.html">tools</a></p><script>window.sidebarCurrent = {name: "city_picker", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_gui/tools/city_picker.rs.html#1-333" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">map_gui</a>::<wbr><a href="../index.html">tools</a>::<wbr><a class="mod" href="">city_picker</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/map_gui/tools/city_picker.rs.html#1-334" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">map_gui</a>::<wbr><a href="../index.html">tools</a>::<wbr><a class="mod" href="">city_picker</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.AllCityPicker.html" title="map_gui::tools::city_picker::AllCityPicker struct">AllCityPicker</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.CityPicker.html" title="map_gui::tools::city_picker::CityPicker struct">CityPicker</a></td><td class="docblock-short"><p>Lets the player switch maps.</p>
|
||||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,13 +1,13 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `AllCityPicker` struct in crate `map_gui`."><meta name="keywords" content="rust, rustlang, rust-lang, AllCityPicker"><title>map_gui::tools::city_picker::AllCityPicker - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><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='../../../map_gui/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Struct AllCityPicker</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.on_load">on_load</a><a href="#structfield.panel">panel</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-State%3CA%3E">State<A></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../../index.html">map_gui</a>::<wbr><a href="../index.html">tools</a>::<wbr><a href="index.html">city_picker</a></p><script>window.sidebarCurrent = {name: "AllCityPicker", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_gui/tools/city_picker.rs.html#249-253" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">map_gui</a>::<wbr><a href="../index.html">tools</a>::<wbr><a href="index.html">city_picker</a>::<wbr><a class="struct" href="">AllCityPicker</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct AllCityPicker<A: <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>> {
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_gui/tools/city_picker.rs.html#250-254" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">map_gui</a>::<wbr><a href="../index.html">tools</a>::<wbr><a href="index.html">city_picker</a>::<wbr><a class="struct" href="">AllCityPicker</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct AllCityPicker<A: <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>> {
|
||||
panel: Panel,
|
||||
on_load: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A) -> Transition<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.on_load" class="structfield small-section-header"><a href="#structfield.on_load" class="anchor field"></a><code>on_load: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A) -> Transition<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: <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a> + 'static> <a class="struct" href="../../../map_gui/tools/city_picker/struct.AllCityPicker.html" title="struct map_gui::tools::city_picker::AllCityPicker">AllCityPicker</a><A></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/map_gui/tools/city_picker.rs.html#255-291" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>fn <a href="#method.new" class="fnname">new</a>(<br> ctx: &mut EventCtx<'_>, <br> on_load: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A) -> Transition<A>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<A>></code><a class="srclink" href="../../../src/map_gui/tools/city_picker.rs.html#256-290" 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%3CA%3E" class="impl"><code class="in-band">impl<A: <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a> + 'static> State<A> for <a class="struct" href="../../../map_gui/tools/city_picker/struct.AllCityPicker.html" title="struct map_gui::tools::city_picker::AllCityPicker">AllCityPicker</a><A></code><a href="#impl-State%3CA%3E" class="anchor"></a><a class="srclink" href="../../../src/map_gui/tools/city_picker.rs.html#293-333" 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: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A) -> Transition<A></code><a class="srclink" href="../../../src/map_gui/tools/city_picker.rs.html#294-323" 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/map_gui/tools/city_picker.rs.html#325-327" 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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A)</code><a class="srclink" href="../../../src/map_gui/tools/city_picker.rs.html#329-332" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.on_load" class="structfield small-section-header"><a href="#structfield.on_load" class="anchor field"></a><code>on_load: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A) -> Transition<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: <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a> + 'static> <a class="struct" href="../../../map_gui/tools/city_picker/struct.AllCityPicker.html" title="struct map_gui::tools::city_picker::AllCityPicker">AllCityPicker</a><A></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/map_gui/tools/city_picker.rs.html#256-292" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>fn <a href="#method.new" class="fnname">new</a>(<br> ctx: &mut EventCtx<'_>, <br> on_load: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A) -> Transition<A>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<A>></code><a class="srclink" href="../../../src/map_gui/tools/city_picker.rs.html#257-291" 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%3CA%3E" class="impl"><code class="in-band">impl<A: <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a> + 'static> State<A> for <a class="struct" href="../../../map_gui/tools/city_picker/struct.AllCityPicker.html" title="struct map_gui::tools::city_picker::AllCityPicker">AllCityPicker</a><A></code><a href="#impl-State%3CA%3E" class="anchor"></a><a class="srclink" href="../../../src/map_gui/tools/city_picker.rs.html#294-334" 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: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A) -> Transition<A></code><a class="srclink" href="../../../src/map_gui/tools/city_picker.rs.html#295-324" 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/map_gui/tools/city_picker.rs.html#326-328" 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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A)</code><a class="srclink" href="../../../src/map_gui/tools/city_picker.rs.html#330-333" 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> !<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="../../../map_gui/tools/city_picker/struct.AllCityPicker.html" title="struct map_gui::tools::city_picker::AllCityPicker">AllCityPicker</a><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> !<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="../../../map_gui/tools/city_picker/struct.AllCityPicker.html" title="struct map_gui::tools::city_picker::AllCityPicker">AllCityPicker</a><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> !<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="../../../map_gui/tools/city_picker/struct.AllCityPicker.html" title="struct map_gui::tools::city_picker::AllCityPicker">AllCityPicker</a><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> <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="../../../map_gui/tools/city_picker/struct.AllCityPicker.html" title="struct map_gui::tools::city_picker::AllCityPicker">AllCityPicker</a><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> !<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="../../../map_gui/tools/city_picker/struct.AllCityPicker.html" title="struct map_gui::tools::city_picker::AllCityPicker">AllCityPicker</a><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>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a 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>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a 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>
|
||||
|
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 `level_btn` fn in crate `santa`."><meta name="keywords" content="rust, rustlang, rust-lang, level_btn"><title>santa::title::level_btn - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><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='../../santa/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">santa</a>::<wbr><a href="index.html">title</a></p><script>window.sidebarCurrent = {name: "level_btn", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/santa/title.rs.html#101-121" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">santa</a>::<wbr><a href="index.html">title</a>::<wbr><a class="fn" href="">level_btn</a></span></h1><pre class="rust fn">fn level_btn(<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="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>, <br> level: &<a class="struct" href="../../santa/levels/struct.Level.html" title="struct santa::levels::Level">Level</a>, <br> idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>) -> GeomBatch</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "santa";</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/santa/title.rs.html#103-123" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">santa</a>::<wbr><a href="index.html">title</a>::<wbr><a class="fn" href="">level_btn</a></span></h1><pre class="rust fn">fn level_btn(<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="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>, <br> level: &<a class="struct" href="../../santa/levels/struct.Level.html" title="struct santa::levels::Level">Level</a>, <br> idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>) -> GeomBatch</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "santa";</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 `link` fn in crate `santa`."><meta name="keywords" content="rust, rustlang, rust-lang, link"><title>santa::title::link - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><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='../../santa/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">santa</a>::<wbr><a href="index.html">title</a></p><script>window.sidebarCurrent = {name: "link", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/santa/title.rs.html#181-183" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">santa</a>::<wbr><a href="index.html">title</a>::<wbr><a class="fn" href="">link</a></span></h1><pre class="rust fn">fn link(ctx: &mut EventCtx<'_>, label: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, url: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Widget</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "santa";</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/santa/title.rs.html#183-185" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">santa</a>::<wbr><a href="index.html">title</a>::<wbr><a class="fn" href="">link</a></span></h1><pre class="rust fn">fn link(ctx: &mut EventCtx<'_>, label: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, url: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Widget</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "santa";</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 `locked_level` fn in crate `santa`."><meta name="keywords" content="rust, rustlang, rust-lang, locked_level"><title>santa::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 id="default-settings"></script><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='../../santa/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">santa</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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/santa/title.rs.html#124-131" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">santa</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="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>, <br> level: &<a class="struct" href="../../santa/levels/struct.Level.html" title="struct santa::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 = "santa";</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/santa/title.rs.html#126-133" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">santa</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="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>, <br> level: &<a class="struct" href="../../santa/levels/struct.Level.html" title="struct santa::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 = "santa";</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 `santa`."><meta name="keywords" content="rust, rustlang, rust-lang, unlocked_level"><title>santa::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 id="default-settings"></script><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='../../santa/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">santa</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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/santa/title.rs.html#133-140" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">santa</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="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>, <br> level: &<a class="struct" href="../../santa/levels/struct.Level.html" title="struct santa::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 = "santa";</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/santa/title.rs.html#135-142" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">santa</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="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>, <br> level: &<a class="struct" href="../../santa/levels/struct.Level.html" title="struct santa::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 = "santa";</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 `santa`."><meta name="keywords" content="rust, rustlang, rust-lang, title"><title>santa::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 id="default-settings"></script><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='../../santa/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">santa</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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/santa/title.rs.html#1-208" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">santa</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/santa/title.rs.html#1-210" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">santa</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.Credits.html" title="santa::title::Credits struct">Credits</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.TitleScreen.html" title="santa::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.level_btn.html" title="santa::title::level_btn fn">level_btn</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.link.html" title="santa::title::link fn">link</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.locked_level.html" title="santa::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="santa::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 = "santa";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,11 +1,11 @@
|
||||
<!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 `Credits` struct in crate `santa`."><meta name="keywords" content="rust, rustlang, rust-lang, Credits"><title>santa::title::Credits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><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='../../santa/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct Credits</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-SimpleState%3CSimpleApp%3CSession%3E%3E">SimpleState<SimpleApp<Session>></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">santa</a>::<wbr><a href="index.html">title</a></p><script>window.sidebarCurrent = {name: "Credits", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/santa/title.rs.html#142" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">santa</a>::<wbr><a href="index.html">title</a>::<wbr><a class="struct" href="">Credits</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct Credits;</pre></div><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="../../santa/title/struct.Credits.html" title="struct santa::title::Credits">Credits</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/santa/title.rs.html#144-179" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>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="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>>></code><a class="srclink" href="../../src/santa/title.rs.html#145-178" 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-SimpleState%3CSimpleApp%3CSession%3E%3E" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>> for <a class="struct" href="../../santa/title/struct.Credits.html" title="struct santa::title::Credits">Credits</a></code><a href="#impl-SimpleState%3CSimpleApp%3CSession%3E%3E" class="anchor"></a><a class="srclink" href="../../src/santa/title.rs.html#185-208" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>></code><a class="srclink" href="../../src/santa/title.rs.html#186-198" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
<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/santa/title.rs.html#144" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">santa</a>::<wbr><a href="index.html">title</a>::<wbr><a class="struct" href="">Credits</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct Credits;</pre></div><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="../../santa/title/struct.Credits.html" title="struct santa::title::Credits">Credits</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/santa/title.rs.html#146-181" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>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="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>>></code><a class="srclink" href="../../src/santa/title.rs.html#147-180" 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-SimpleState%3CSimpleApp%3CSession%3E%3E" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>> for <a class="struct" href="../../santa/title/struct.Credits.html" title="struct santa::title::Credits">Credits</a></code><a href="#impl-SimpleState%3CSimpleApp%3CSession%3E%3E" class="anchor"></a><a class="srclink" href="../../src/santa/title.rs.html#187-210" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>></code><a class="srclink" href="../../src/santa/title.rs.html#188-200" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div><h4 id="method.other_event" class="method hidden"><code>fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>><br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>></code><a class="srclink" href="../../src/santa/title.rs.html#200-203" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn't occur and <code>panel_changed</code> didn't return transition, then
|
||||
</div><h4 id="method.other_event" class="method hidden"><code>fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>><br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>></code><a class="srclink" href="../../src/santa/title.rs.html#202-205" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn't occur and <code>panel_changed</code> didn't return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, 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="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>)</code><a class="srclink" href="../../src/santa/title.rs.html#205-207" title="goto source code">[src]</a></h4><h4 id="method.panel_changed" class="method hidden"><code>fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
</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="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>)</code><a class="srclink" href="../../src/santa/title.rs.html#207-209" title="goto source code">[src]</a></h4><h4 id="method.panel_changed" class="method hidden"><code>fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div><h4 id="method.on_mouseover" class="method hidden"><code>fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||||
</div><h4 id="method.draw_baselayer" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4></div></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="../../santa/title/struct.Credits.html" title="struct santa::title::Credits">Credits</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="../../santa/title/struct.Credits.html" title="struct santa::title::Credits">Credits</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="../../santa/title/struct.Credits.html" title="struct santa::title::Credits">Credits</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="../../santa/title/struct.Credits.html" title="struct santa::title::Credits">Credits</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="../../santa/title/struct.Credits.html" title="struct santa::title::Credits">Credits</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>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a 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>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!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 `TitleScreen` struct in crate `santa`."><meta name="keywords" content="rust, rustlang, rust-lang, TitleScreen"><title>santa::title::TitleScreen - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><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='../../santa/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct TitleScreen</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-SimpleState%3CSimpleApp%3CSession%3E%3E">SimpleState<SimpleApp<Session>></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">santa</a>::<wbr><a href="index.html">title</a></p><script>window.sidebarCurrent = {name: "TitleScreen", 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!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/santa/title.rs.html#11" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">santa</a>::<wbr><a href="index.html">title</a>::<wbr><a class="struct" href="">TitleScreen</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct TitleScreen;</pre></div><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="../../santa/title/struct.TitleScreen.html" title="struct santa::title::TitleScreen">TitleScreen</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/santa/title.rs.html#13-69" 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>(<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="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>>></code><a class="srclink" href="../../src/santa/title.rs.html#14-68" 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-SimpleState%3CSimpleApp%3CSession%3E%3E" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>> for <a class="struct" href="../../santa/title/struct.TitleScreen.html" title="struct santa::title::TitleScreen">TitleScreen</a></code><a href="#impl-SimpleState%3CSimpleApp%3CSession%3E%3E" class="anchor"></a><a class="srclink" href="../../src/santa/title.rs.html#71-99" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>></code><a class="srclink" href="../../src/santa/title.rs.html#72-89" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
<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/santa/title.rs.html#11" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">santa</a>::<wbr><a href="index.html">title</a>::<wbr><a class="struct" href="">TitleScreen</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct TitleScreen;</pre></div><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="../../santa/title/struct.TitleScreen.html" title="struct santa::title::TitleScreen">TitleScreen</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/santa/title.rs.html#13-71" 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>(<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="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>>></code><a class="srclink" href="../../src/santa/title.rs.html#14-70" 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-SimpleState%3CSimpleApp%3CSession%3E%3E" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>> for <a class="struct" href="../../santa/title/struct.TitleScreen.html" title="struct santa::title::TitleScreen">TitleScreen</a></code><a href="#impl-SimpleState%3CSimpleApp%3CSession%3E%3E" class="anchor"></a><a class="srclink" href="../../src/santa/title.rs.html#73-101" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>></code><a class="srclink" href="../../src/santa/title.rs.html#74-91" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div><h4 id="method.other_event" class="method hidden"><code>fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>><br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>></code><a class="srclink" href="../../src/santa/title.rs.html#91-94" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn't occur and <code>panel_changed</code> didn't return transition, then
|
||||
</div><h4 id="method.other_event" class="method hidden"><code>fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>><br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>></code><a class="srclink" href="../../src/santa/title.rs.html#93-96" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn't occur and <code>panel_changed</code> didn't return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, 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="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>)</code><a class="srclink" href="../../src/santa/title.rs.html#96-98" title="goto source code">[src]</a></h4><h4 id="method.panel_changed" class="method hidden"><code>fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
</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="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>)</code><a class="srclink" href="../../src/santa/title.rs.html#98-100" title="goto source code">[src]</a></h4><h4 id="method.panel_changed" class="method hidden"><code>fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div><h4 id="method.on_mouseover" class="method hidden"><code>fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||||
</div><h4 id="method.draw_baselayer" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4></div></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="../../santa/title/struct.TitleScreen.html" title="struct santa::title::TitleScreen">TitleScreen</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="../../santa/title/struct.TitleScreen.html" title="struct santa::title::TitleScreen">TitleScreen</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="../../santa/title/struct.TitleScreen.html" title="struct santa::title::TitleScreen">TitleScreen</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="../../santa/title/struct.TitleScreen.html" title="struct santa::title::TitleScreen">TitleScreen</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="../../santa/title/struct.TitleScreen.html" title="struct santa::title::TitleScreen">TitleScreen</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>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a 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>
|
||||
|
File diff suppressed because one or more lines are too long
@ -200,7 +200,7 @@
|
||||
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">AmenityType</span>, <span class="ident">BuildingID</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
||||
<span class="ident">Btn</span>, <span class="ident">Checkbox</span>, <span class="ident">Color</span>, <span class="ident">Drawable</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>, <span class="ident">HorizontalAlignment</span>, <span class="ident">Key</span>, <span class="ident">Line</span>,
|
||||
<span class="ident">Panel</span>, <span class="ident">SimpleState</span>, <span class="ident">State</span>, <span class="ident">TextExt</span>, <span class="ident">Transition</span>, <span class="ident">VerticalAlignment</span>, <span class="ident">Widget</span>,
|
||||
<span class="ident">Panel</span>, <span class="ident">SimpleState</span>, <span class="ident">State</span>, <span class="ident">StyledButtons</span>, <span class="ident">TextExt</span>, <span class="ident">Transition</span>, <span class="ident">VerticalAlignment</span>, <span class="ident">Widget</span>,
|
||||
};
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">isochrone</span>::<span class="ident">Options</span>;
|
||||
|
@ -565,6 +565,10 @@
|
||||
<span id="562">562</span>
|
||||
<span id="563">563</span>
|
||||
<span id="564">564</span>
|
||||
<span id="565">565</span>
|
||||
<span id="566">566</span>
|
||||
<span id="567">567</span>
|
||||
<span id="568">568</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">//! This is a tool to experiment with the concept of 15-minute neighborhoods. Can you access your</span>
|
||||
<span class="doccomment">//! daily needs (like groceries, a cafe, a library) within a 15-minute walk, bike ride, or public</span>
|
||||
@ -581,8 +585,8 @@
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::<span class="ident">table</span>::{<span class="ident">Col</span>, <span class="ident">Filter</span>, <span class="ident">Table</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
||||
<span class="ident">lctrl</span>, <span class="ident">Btn</span>, <span class="ident">Cached</span>, <span class="ident">Checkbox</span>, <span class="ident">Choice</span>, <span class="ident">Color</span>, <span class="ident">Drawable</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>,
|
||||
<span class="ident">HorizontalAlignment</span>, <span class="ident">Key</span>, <span class="ident">Line</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">RewriteColor</span>, <span class="ident">State</span>, <span class="ident">Text</span>, <span class="ident">TextExt</span>, <span class="ident">Transition</span>,
|
||||
<span class="ident">VerticalAlignment</span>, <span class="ident">Widget</span>,
|
||||
<span class="ident">HorizontalAlignment</span>, <span class="ident">Key</span>, <span class="ident">Line</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">RewriteColor</span>, <span class="ident">State</span>, <span class="ident">StyledButtons</span>, <span class="ident">Text</span>,
|
||||
<span class="ident">TextExt</span>, <span class="ident">Transition</span>, <span class="ident">VerticalAlignment</span>, <span class="ident">Widget</span>,
|
||||
};
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">find_home</span>::<span class="ident">FindHome</span>;
|
||||
@ -895,7 +899,11 @@
|
||||
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">Widget</span>::<span class="ident">horiz_separator</span>(<span class="ident">ctx</span>, <span class="number">0.3</span>).<span class="ident">margin_above</span>(<span class="number">10</span>));
|
||||
|
||||
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">options_to_controls</span>(<span class="ident">ctx</span>, <span class="kw-2">&</span><span class="ident">isochrone</span>.<span class="ident">options</span>));
|
||||
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">Btn</span>::<span class="ident">text_bg1</span>(<span class="string">"Find your perfect home"</span>).<span class="ident">build_def</span>(<span class="ident">ctx</span>, <span class="prelude-val">None</span>));
|
||||
<span class="ident">rows</span>.<span class="ident">push</span>(
|
||||
<span class="ident">ctx</span>.<span class="ident">style</span>()
|
||||
.<span class="ident">btn_primary_light_text</span>(<span class="string">"Find your perfect home"</span>)
|
||||
.<span class="ident">build_def</span>(<span class="ident">ctx</span>),
|
||||
);
|
||||
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Btn</span>::<span class="ident">plaintext</span>(<span class="string">"About"</span>).<span class="ident">build_def</span>(<span class="ident">ctx</span>, <span class="prelude-val">None</span>),
|
||||
<span class="ident">Btn</span>::<span class="ident">svg_def</span>(<span class="string">"system/assets/tools/search.svg"</span>).<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">"search"</span>, <span class="ident">lctrl</span>(<span class="ident">Key</span>::<span class="ident">F</span>)),
|
||||
|
@ -323,12 +323,12 @@
|
||||
<span id="320">320</span>
|
||||
<span id="321">321</span>
|
||||
<span id="322">322</span>
|
||||
<span id="323">323</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">theme</span>::<span class="ident">StyledButtons</span>;
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">tools</span>::<span class="ident">grey_out_map</span>;
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
||||
<span class="ident">hotkeys</span>, <span class="ident">Btn</span>, <span class="ident">Color</span>, <span class="ident">ControlState</span>, <span class="ident">DrawBaselayer</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</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">Widget</span>,
|
||||
<span class="ident">hotkeys</span>, <span class="ident">Color</span>, <span class="ident">ControlState</span>, <span class="ident">DrawBaselayer</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</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">StyledButtons</span>, <span class="ident">Text</span>, <span class="ident">Widget</span>,
|
||||
};
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>;
|
||||
@ -616,8 +616,10 @@
|
||||
<span class="ident">panel</span>: <span class="ident">Panel</span>::<span class="ident">new</span>(
|
||||
<span class="ident">Widget</span>::<span class="ident">custom_col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">contents</span>,
|
||||
<span class="ident">Btn</span>::<span class="ident">txt</span>(<span class="string">"Okay"</span>, <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Okay"</span>).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">BLACK</span>)))
|
||||
.<span class="ident">build_def</span>(<span class="ident">ctx</span>, <span class="ident">hotkeys</span>(<span class="macro">vec</span><span class="macro">!</span>[<span class="ident">Key</span>::<span class="ident">Escape</span>, <span class="ident">Key</span>::<span class="ident">Space</span>, <span class="ident">Key</span>::<span class="ident">Enter</span>]))
|
||||
<span class="ident">ctx</span>.<span class="ident">style</span>()
|
||||
.<span class="ident">btn_primary_dark_text</span>(<span class="string">"Okay"</span>)
|
||||
.<span class="ident">hotkey</span>(<span class="ident">hotkeys</span>(<span class="macro">vec</span><span class="macro">!</span>[<span class="ident">Key</span>::<span class="ident">Escape</span>, <span class="ident">Key</span>::<span class="ident">Space</span>, <span class="ident">Key</span>::<span class="ident">Enter</span>]))
|
||||
.<span class="ident">build_def</span>(<span class="ident">ctx</span>)
|
||||
.<span class="ident">centered_horiz</span>()
|
||||
.<span class="ident">align_bottom</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.49.0 (e1884a8e3 2020-12-29)"</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">"Wed, 20 Jan 2021 01:55:26 +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">"Wed, 20 Jan 2021 22:26:40 +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>
|
||||
|
@ -334,6 +334,7 @@
|
||||
<span id="331">331</span>
|
||||
<span id="332">332</span>
|
||||
<span id="333">333</span>
|
||||
<span id="334">334</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">abstio</span>::<span class="ident">MapName</span>;
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Percent</span>, <span class="ident">Polygon</span>, <span class="ident">Pt2D</span>};
|
||||
@ -397,17 +398,18 @@
|
||||
<span class="kw">for</span> (<span class="ident">name</span>, <span class="ident">polygon</span>) <span class="kw">in</span> <span class="ident">city</span>.<span class="ident">regions</span> {
|
||||
<span class="kw">let</span> <span class="ident">color</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">cs</span>().<span class="ident">rotating_color_agents</span>(<span class="ident">regions</span>.<span class="ident">len</span>());
|
||||
|
||||
<span class="kw">let</span> <span class="ident">btn</span> <span class="op">=</span> <span class="ident">Btn</span>::<span class="ident">txt</span>(
|
||||
<span class="ident">name</span>.<span class="ident">path</span>(),
|
||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">nice_map_name</span>(<span class="kw-2">&</span><span class="ident">name</span>)).<span class="ident">fg</span>(<span class="ident">color</span>)),
|
||||
)
|
||||
.<span class="ident">no_tooltip</span>();
|
||||
<span class="kw">let</span> <span class="ident">btn</span> <span class="op">=</span> <span class="ident">ctx</span>
|
||||
.<span class="ident">style</span>()
|
||||
.<span class="ident">btn_secondary_light_text</span>(<span class="ident">nice_map_name</span>(<span class="kw-2">&</span><span class="ident">name</span>))
|
||||
.<span class="ident">label_color</span>(<span class="ident">color</span>, <span class="ident">ControlState</span>::<span class="ident">Default</span>)
|
||||
.<span class="ident">no_tooltip</span>();
|
||||
|
||||
<span class="kw">let</span> <span class="ident">action</span> <span class="op">=</span> <span class="ident">name</span>.<span class="ident">path</span>();
|
||||
<span class="kw">if</span> <span class="kw-2">&</span><span class="ident">name</span> <span class="op">=</span><span class="op">=</span> <span class="ident">app</span>.<span class="ident">map</span>().<span class="ident">get_name</span>() {
|
||||
<span class="ident">this_city</span>.<span class="ident">push</span>(<span class="ident">btn</span>.<span class="ident">inactive</span>(<span class="ident">ctx</span>));
|
||||
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">color</span>.<span class="ident">alpha</span>(<span class="number">0.5</span>), <span class="ident">polygon</span>.<span class="ident">clone</span>());
|
||||
<span class="kw">let</span> <span class="ident">btn</span> <span class="op">=</span> <span class="ident">btn</span>.<span class="ident">disabled</span>();
|
||||
<span class="ident">this_city</span>.<span class="ident">push</span>(<span class="ident">btn</span>.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="kw-2">&</span><span class="ident">action</span>));
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">this_city</span>.<span class="ident">push</span>(<span class="ident">btn</span>.<span class="ident">build_def</span>(<span class="ident">ctx</span>, <span class="prelude-val">None</span>));
|
||||
<span class="ident">this_city</span>.<span class="ident">push</span>(<span class="ident">btn</span>.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="kw-2">&</span><span class="ident">action</span>));
|
||||
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">color</span>, <span class="ident">polygon</span>.<span class="ident">to_outline</span>(<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">200.0</span>)).<span class="ident">unwrap</span>());
|
||||
<span class="ident">regions</span>.<span class="ident">push</span>((<span class="ident">name</span>, <span class="ident">color</span>, <span class="ident">polygon</span>.<span class="ident">scale</span>(<span class="ident">zoom</span>)));
|
||||
}
|
||||
|
@ -490,8 +490,8 @@
|
||||
<span class="kw">use</span> <span class="ident">map_model</span>::<span class="ident">osm</span>;
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
||||
<span class="ident">lctrl</span>, <span class="ident">Btn</span>, <span class="ident">Checkbox</span>, <span class="ident">Color</span>, <span class="ident">DrawBaselayer</span>, <span class="ident">Drawable</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>,
|
||||
<span class="ident">HorizontalAlignment</span>, <span class="ident">Key</span>, <span class="ident">Line</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">State</span>, <span class="ident">Text</span>, <span class="ident">TextExt</span>, <span class="ident">Transition</span>,
|
||||
<span class="ident">VerticalAlignment</span>, <span class="ident">Widget</span>,
|
||||
<span class="ident">HorizontalAlignment</span>, <span class="ident">Key</span>, <span class="ident">Line</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">State</span>, <span class="ident">StyledButtons</span>, <span class="ident">Text</span>, <span class="ident">TextExt</span>,
|
||||
<span class="ident">Transition</span>, <span class="ident">VerticalAlignment</span>, <span class="ident">Widget</span>,
|
||||
};
|
||||
|
||||
<span class="kw">type</span> <span class="ident">App</span> <span class="op">=</span> <span class="ident">SimpleApp</span><span class="op"><</span>()<span class="op">></span>;
|
||||
|
@ -209,12 +209,14 @@
|
||||
<span id="206">206</span>
|
||||
<span id="207">207</span>
|
||||
<span id="208">208</span>
|
||||
<span id="209">209</span>
|
||||
<span id="210">210</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>;
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
||||
<span class="ident">Btn</span>, <span class="ident">Color</span>, <span class="ident">EdgeInsets</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>, <span class="ident">Key</span>, <span class="ident">Line</span>, <span class="ident">Panel</span>, <span class="ident">RewriteColor</span>,
|
||||
<span class="ident">SimpleState</span>, <span class="ident">State</span>, <span class="ident">Text</span>, <span class="ident">TextExt</span>, <span class="ident">Widget</span>,
|
||||
<span class="ident">SimpleState</span>, <span class="ident">State</span>, <span class="ident">StyledButtons</span>, <span class="ident">Text</span>, <span class="ident">TextExt</span>, <span class="ident">Widget</span>,
|
||||
};
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">levels</span>::<span class="ident">Level</span>;
|
||||
@ -263,11 +265,13 @@
|
||||
.<span class="ident">centered_horiz</span>(),
|
||||
<span class="ident">Widget</span>::<span class="ident">custom_row</span>(<span class="ident">level_buttons</span>).<span class="ident">flex_wrap</span>(<span class="ident">ctx</span>, <span class="ident">Percent</span>::<span class="ident">int</span>(<span class="number">80</span>)),
|
||||
<span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Btn</span>::<span class="ident">text_bg1</span>(<span class="string">"Credits"</span>).<span class="ident">build_def</span>(<span class="ident">ctx</span>, <span class="prelude-val">None</span>),
|
||||
<span class="ident">ctx</span>.<span class="ident">style</span>().<span class="ident">btn_primary_light_text</span>(<span class="string">"Credits"</span>).<span class="ident">build_def</span>(<span class="ident">ctx</span>),
|
||||
<span class="string">"Created by Dustin Carlino, Yuwen Li, & Michael Kirk"</span>
|
||||
.<span class="ident">draw_text</span>(<span class="ident">ctx</span>)
|
||||
.<span class="ident">container</span>()
|
||||
.<span class="ident">padding</span>(<span class="number">16</span>)
|
||||
.<span class="ident">padding</span>(<span class="number">6</span>)
|
||||
<span class="comment">// cheat this to lineup with button text</span>
|
||||
.<span class="ident">padding_bottom</span>(<span class="number">2</span>)
|
||||
.<span class="ident">bg</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">fade_map_dark</span>),
|
||||
])
|
||||
.<span class="ident">centered_horiz</span>()
|
||||
|
@ -169,7 +169,7 @@
|
||||
<span class="ident">fg_disabled</span>: <span class="ident">hex</span>(<span class="string">"#F2F2F2"</span>).<span class="ident">alpha</span>(<span class="number">0.3</span>),
|
||||
<span class="ident">bg</span>: <span class="ident">Color</span>::<span class="ident">CLEAR</span>,
|
||||
<span class="ident">bg_hover</span>: <span class="ident">hex</span>(<span class="string">"#F2F2F2"</span>).<span class="ident">alpha</span>(<span class="number">0.1</span>),
|
||||
<span class="ident">bg_disabled</span>: <span class="ident">Color</span>::<span class="ident">grey</span>(<span class="number">0.9</span>),
|
||||
<span class="ident">bg_disabled</span>: <span class="ident">Color</span>::<span class="ident">grey</span>(<span class="number">0.5</span>),
|
||||
<span class="ident">outline</span>: <span class="ident">hex</span>(<span class="string">"#F2F2F2"</span>),
|
||||
},
|
||||
<span class="ident">btn_primary_destructive</span>: <span class="ident">ButtonStyle</span> {
|
||||
|
@ -1232,10 +1232,6 @@
|
||||
<span id="1229">1229</span>
|
||||
<span id="1230">1230</span>
|
||||
<span id="1231">1231</span>
|
||||
<span id="1232">1232</span>
|
||||
<span id="1233">1233</span>
|
||||
<span id="1234">1234</span>
|
||||
<span id="1235">1235</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Polygon</span>};
|
||||
|
||||
@ -1419,10 +1415,6 @@
|
||||
<span class="ident">BtnBuilder</span>::<span class="ident">TextFG</span>(<span class="ident">action</span>.<span class="ident">clone</span>(), <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">action</span>)), <span class="prelude-val">None</span>)
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">txt</span><span class="op"><</span><span class="ident">I</span>: <span class="ident">Into</span><span class="op"><</span><span class="ident">String</span><span class="op">></span><span class="op">></span>(<span class="ident">action</span>: <span class="ident">I</span>, <span class="ident">txt</span>: <span class="ident">Text</span>) <span class="op">-</span><span class="op">></span> <span class="ident">BtnBuilder</span> {
|
||||
<span class="ident">BtnBuilder</span>::<span class="ident">TextFG</span>(<span class="ident">action</span>.<span class="ident">into</span>(), <span class="ident">txt</span>, <span class="prelude-val">None</span>)
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">text_bg</span><span class="op"><</span><span class="ident">I</span>: <span class="ident">Into</span><span class="op"><</span><span class="ident">String</span><span class="op">></span><span class="op">></span>(
|
||||
<span class="ident">action</span>: <span class="ident">I</span>,
|
||||
<span class="ident">text</span>: <span class="ident">Text</span>,
|
||||
|
@ -230,10 +230,21 @@
|
||||
<span id="227">227</span>
|
||||
<span id="228">228</span>
|
||||
<span id="229">229</span>
|
||||
<span id="230">230</span>
|
||||
<span id="231">231</span>
|
||||
<span id="232">232</span>
|
||||
<span id="233">233</span>
|
||||
<span id="234">234</span>
|
||||
<span id="235">235</span>
|
||||
<span id="236">236</span>
|
||||
<span id="237">237</span>
|
||||
<span id="238">238</span>
|
||||
<span id="239">239</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{
|
||||
<span class="ident">Btn</span>, <span class="ident">Button</span>, <span class="ident">Color</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>, <span class="ident">Line</span>, <span class="ident">MultiKey</span>, <span class="ident">Outcome</span>, <span class="ident">RewriteColor</span>,
|
||||
<span class="ident">ScreenDims</span>, <span class="ident">ScreenPt</span>, <span class="ident">Text</span>, <span class="ident">TextExt</span>, <span class="ident">TextSpan</span>, <span class="ident">Widget</span>, <span class="ident">WidgetImpl</span>, <span class="ident">WidgetOutput</span>,
|
||||
<span class="ident">Btn</span>, <span class="ident">Button</span>, <span class="ident">Color</span>, <span class="ident">ControlState</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>, <span class="ident">Line</span>, <span class="ident">MultiKey</span>, <span class="ident">Outcome</span>,
|
||||
<span class="ident">RewriteColor</span>, <span class="ident">ScreenDims</span>, <span class="ident">ScreenPt</span>, <span class="ident">StyledButtons</span>, <span class="ident">Text</span>, <span class="ident">TextExt</span>, <span class="ident">TextSpan</span>, <span class="ident">Widget</span>, <span class="ident">WidgetImpl</span>,
|
||||
<span class="ident">WidgetOutput</span>,
|
||||
};
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Checkbox</span> {
|
||||
@ -334,18 +345,27 @@
|
||||
<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">label</span> <span class="op">=</span> <span class="ident">label</span>.<span class="ident">into</span>();
|
||||
<span class="kw">let</span> <span class="ident">hotkey</span> <span class="op">=</span> <span class="ident">hotkey</span>.<span class="ident">into</span>();
|
||||
<span class="comment">// TODO: get an svg checkbox! and use a image+text button</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">off</span> <span class="op">=</span> <span class="macro">vec</span><span class="macro">!</span>[<span class="ident">Line</span>(<span class="string">"[ ] "</span>)];
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">on</span> <span class="op">=</span> <span class="macro">vec</span><span class="macro">!</span>[<span class="ident">Line</span>(<span class="string">"[X] "</span>)];
|
||||
<span class="ident">off</span>.<span class="ident">extend</span>(<span class="ident">spans</span>.<span class="ident">clone</span>());
|
||||
<span class="ident">on</span>.<span class="ident">extend</span>(<span class="ident">spans</span>);
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">button</span> <span class="op">=</span> <span class="ident">ctx</span>.<span class="ident">style</span>().<span class="ident">btn_secondary_light</span>();
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">hotkey</span>) <span class="op">=</span> <span class="ident">hotkey</span>.<span class="ident">into</span>() {
|
||||
<span class="ident">button</span> <span class="op">=</span> <span class="ident">button</span>.<span class="ident">hotkey</span>(<span class="ident">hotkey</span>);
|
||||
}
|
||||
|
||||
<span class="ident">Checkbox</span>::<span class="ident">new</span>(
|
||||
<span class="ident">enabled</span>,
|
||||
<span class="ident">Btn</span>::<span class="ident">txt</span>(<span class="kw-2">&</span><span class="ident">label</span>, <span class="ident">Text</span>::<span class="ident">from_all</span>(<span class="ident">off</span>)).<span class="ident">build_def</span>(<span class="ident">ctx</span>, <span class="ident">hotkey</span>.<span class="ident">clone</span>()),
|
||||
<span class="ident">Btn</span>::<span class="ident">txt</span>(<span class="kw-2">&</span><span class="ident">label</span>, <span class="ident">Text</span>::<span class="ident">from_all</span>(<span class="ident">on</span>)).<span class="ident">build_def</span>(<span class="ident">ctx</span>, <span class="ident">hotkey</span>),
|
||||
<span class="ident">button</span>
|
||||
.<span class="ident">clone</span>()
|
||||
.<span class="ident">label_styled_text</span>(<span class="ident">Text</span>::<span class="ident">from_all</span>(<span class="ident">off</span>), <span class="ident">ControlState</span>::<span class="ident">Default</span>)
|
||||
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="kw-2">&</span><span class="ident">label</span>),
|
||||
<span class="ident">button</span>
|
||||
.<span class="ident">label_styled_text</span>(<span class="ident">Text</span>::<span class="ident">from_all</span>(<span class="ident">on</span>), <span class="ident">ControlState</span>::<span class="ident">Default</span>)
|
||||
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="kw-2">&</span><span class="ident">label</span>),
|
||||
)
|
||||
.<span class="ident">outline</span>(<span class="ident">ctx</span>.<span class="ident">style</span>().<span class="ident">outline_thickness</span>, <span class="ident">ctx</span>.<span class="ident">style</span>().<span class="ident">outline_color</span>)
|
||||
.<span class="ident">named</span>(<span class="ident">label</span>)
|
||||
}
|
||||
|
||||
|
@ -447,6 +447,12 @@
|
||||
<span id="444">444</span>
|
||||
<span id="445">445</span>
|
||||
<span id="446">446</span>
|
||||
<span id="447">447</span>
|
||||
<span id="448">448</span>
|
||||
<span id="449">449</span>
|
||||
<span id="450">450</span>
|
||||
<span id="451">451</span>
|
||||
<span id="452">452</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>;
|
||||
|
||||
@ -825,8 +831,14 @@
|
||||
<span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Checkbox</span>::<span class="ident">new</span>(
|
||||
<span class="bool-val">false</span>,
|
||||
<span class="ident">Btn</span>::<span class="ident">text_bg1</span>(<span class="string">"Pause"</span>).<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">"pause the stopwatch"</span>, <span class="ident">Key</span>::<span class="ident">Space</span>),
|
||||
<span class="ident">Btn</span>::<span class="ident">text_bg1</span>(<span class="string">"Resume"</span>).<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">"resume the stopwatch"</span>, <span class="ident">Key</span>::<span class="ident">Space</span>),
|
||||
<span class="ident">ctx</span>.<span class="ident">style</span>()
|
||||
.<span class="ident">btn_primary_light_text</span>(<span class="string">"Pause"</span>)
|
||||
.<span class="ident">hotkey</span>(<span class="ident">Key</span>::<span class="ident">Space</span>)
|
||||
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="string">"pause the stopwatch"</span>),
|
||||
<span class="ident">ctx</span>.<span class="ident">style</span>()
|
||||
.<span class="ident">btn_primary_light_text</span>(<span class="string">"Resume"</span>)
|
||||
.<span class="ident">hotkey</span>(<span class="ident">Key</span>::<span class="ident">Space</span>)
|
||||
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="string">"resume the stopwatch"</span>),
|
||||
)
|
||||
.<span class="ident">named</span>(<span class="string">"paused"</span>),
|
||||
<span class="ident">PersistentSplit</span>::<span class="ident">widget</span>(
|
||||
|
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 `ButtonBuilder` struct in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, ButtonBuilder"><title>widgetry::ButtonBuilder - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><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='../widgetry/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Struct ButtonBuilder</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.default_style">default_style</a><a href="#structfield.disable_style">disable_style</a><a href="#structfield.hotkey">hotkey</a><a href="#structfield.hover_style">hover_style</a><a href="#structfield.is_disabled">is_disabled</a><a href="#structfield.is_label_before_image">is_label_before_image</a><a href="#structfield.padding">padding</a><a href="#structfield.stack_axis">stack_axis</a><a href="#structfield.stack_spacing">stack_spacing</a><a href="#structfield.tooltip">tooltip</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.batch">batch</a><a href="#method.bg_color">bg_color</a><a href="#method.build">build</a><a href="#method.build_def">build_def</a><a href="#method.build_widget">build_widget</a><a href="#method.disabled">disabled</a><a href="#method.font">font</a><a href="#method.font_size">font_size</a><a href="#method.horizontal">horizontal</a><a href="#method.hotkey">hotkey</a><a href="#method.image_color">image_color</a><a href="#method.image_content_mode">image_content_mode</a><a href="#method.image_dims">image_dims</a><a href="#method.image_first">image_first</a><a href="#method.image_path">image_path</a><a href="#method.label_color">label_color</a><a href="#method.label_first">label_first</a><a href="#method.label_styled_text">label_styled_text</a><a href="#method.label_text">label_text</a><a href="#method.new">new</a><a href="#method.no_tooltip">no_tooltip</a><a href="#method.outline">outline</a><a href="#method.padding">padding</a><a href="#method.padding_bottom">padding_bottom</a><a href="#method.padding_left">padding_left</a><a href="#method.padding_right">padding_right</a><a href="#method.padding_top">padding_top</a><a href="#method.stack_spacing">stack_spacing</a><a href="#method.style">style</a><a href="#method.style_mut">style_mut</a><a href="#method.tooltip">tooltip</a><a href="#method.vertical">vertical</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-Debug">Debug</a><a href="#impl-Default">Default</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-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></div></div><p class="location"><a href="index.html">widgetry</a></p><script>window.sidebarCurrent = {name: "ButtonBuilder", 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!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/widgets/button.rs.html#284-295" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="index.html">widgetry</a>::<wbr><a class="struct" href="">ButtonBuilder</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct ButtonBuilder<'a> {
|
||||
<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/widgets/button.rs.html#280-291" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="index.html">widgetry</a>::<wbr><a class="struct" href="">ButtonBuilder</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct ButtonBuilder<'a> {
|
||||
padding: <a class="struct" href="../widgetry/struct.EdgeInsets.html" title="struct widgetry::EdgeInsets">EdgeInsets</a>,
|
||||
stack_spacing: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
hotkey: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../widgetry/enum.MultiKey.html" title="enum widgetry::MultiKey">MultiKey</a>>,
|
||||
@ -13,7 +13,7 @@
|
||||
hover_style: <a class="struct" href="../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a>,
|
||||
disable_style: <a class="struct" href="../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.padding" class="structfield small-section-header"><a href="#structfield.padding" class="anchor field"></a><code>padding: <a class="struct" href="../widgetry/struct.EdgeInsets.html" title="struct widgetry::EdgeInsets">EdgeInsets</a></code></span><span id="structfield.stack_spacing" class="structfield small-section-header"><a href="#structfield.stack_spacing" class="anchor field"></a><code>stack_spacing: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code></span><span id="structfield.hotkey" class="structfield small-section-header"><a href="#structfield.hotkey" class="anchor field"></a><code>hotkey: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../widgetry/enum.MultiKey.html" title="enum widgetry::MultiKey">MultiKey</a>></code></span><span id="structfield.tooltip" class="structfield small-section-header"><a href="#structfield.tooltip" class="anchor field"></a><code>tooltip: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>></code></span><span id="structfield.stack_axis" class="structfield small-section-header"><a href="#structfield.stack_axis" class="anchor field"></a><code>stack_axis: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a>></code></span><span id="structfield.is_label_before_image" class="structfield small-section-header"><a href="#structfield.is_label_before_image" class="anchor field"></a><code>is_label_before_image: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span id="structfield.is_disabled" class="structfield small-section-header"><a href="#structfield.is_disabled" class="anchor field"></a><code>is_disabled: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span id="structfield.default_style" class="structfield small-section-header"><a href="#structfield.default_style" class="anchor field"></a><code>default_style: <a class="struct" href="../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code></span><span id="structfield.hover_style" class="structfield small-section-header"><a href="#structfield.hover_style" class="anchor field"></a><code>hover_style: <a class="struct" href="../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code></span><span id="structfield.disable_style" class="structfield small-section-header"><a href="#structfield.disable_style" class="anchor field"></a><code>disable_style: <a class="struct" href="../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'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<'b, 'a: 'b> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../src/widgetry/widgets/button.rs.html#305-765" 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>() -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#306-317" title="goto source code">[src]</a></h4><h4 id="method.padding" class="method"><code>pub fn <a href="#method.padding" class="fnname">padding</a><EI: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../widgetry/struct.EdgeInsets.html" title="struct widgetry::EdgeInsets">EdgeInsets</a>>>(self, padding: EI) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#329-332" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.padding" class="structfield small-section-header"><a href="#structfield.padding" class="anchor field"></a><code>padding: <a class="struct" href="../widgetry/struct.EdgeInsets.html" title="struct widgetry::EdgeInsets">EdgeInsets</a></code></span><span id="structfield.stack_spacing" class="structfield small-section-header"><a href="#structfield.stack_spacing" class="anchor field"></a><code>stack_spacing: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code></span><span id="structfield.hotkey" class="structfield small-section-header"><a href="#structfield.hotkey" class="anchor field"></a><code>hotkey: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../widgetry/enum.MultiKey.html" title="enum widgetry::MultiKey">MultiKey</a>></code></span><span id="structfield.tooltip" class="structfield small-section-header"><a href="#structfield.tooltip" class="anchor field"></a><code>tooltip: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>></code></span><span id="structfield.stack_axis" class="structfield small-section-header"><a href="#structfield.stack_axis" class="anchor field"></a><code>stack_axis: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a>></code></span><span id="structfield.is_label_before_image" class="structfield small-section-header"><a href="#structfield.is_label_before_image" class="anchor field"></a><code>is_label_before_image: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span id="structfield.is_disabled" class="structfield small-section-header"><a href="#structfield.is_disabled" class="anchor field"></a><code>is_disabled: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span id="structfield.default_style" class="structfield small-section-header"><a href="#structfield.default_style" class="anchor field"></a><code>default_style: <a class="struct" href="../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code></span><span id="structfield.hover_style" class="structfield small-section-header"><a href="#structfield.hover_style" class="anchor field"></a><code>hover_style: <a class="struct" href="../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code></span><span id="structfield.disable_style" class="structfield small-section-header"><a href="#structfield.disable_style" class="anchor field"></a><code>disable_style: <a class="struct" href="../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'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<'b, 'a: 'b> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../src/widgetry/widgets/button.rs.html#301-761" 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>() -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#302-313" title="goto source code">[src]</a></h4><h4 id="method.padding" class="method"><code>pub fn <a href="#method.padding" class="fnname">padding</a><EI: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../widgetry/struct.EdgeInsets.html" title="struct widgetry::EdgeInsets">EdgeInsets</a>>>(self, padding: EI) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#325-328" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
<p>If not specified, a default will be applied.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
@ -21,57 +21,57 @@
|
||||
<span class="kw">let</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">ButtonBuilder</span>::<span class="ident">new</span>().<span class="ident">padding</span>(<span class="ident">EdgeInsets</span>{ <span class="ident">top</span>: <span class="number">1.0</span>, <span class="ident">bottom</span>: <span class="number">2.0</span>, <span class="ident">left</span>: <span class="number">12.0</span>, <span class="ident">right</span>: <span class="number">14.0</span> });
|
||||
<span class="comment">// uniform padding</span>
|
||||
<span class="kw">let</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">ButtonBuilder</span>::<span class="ident">new</span>().<span class="ident">padding</span>(<span class="number">6</span>);</pre></div>
|
||||
</div><h4 id="method.padding_top" class="method"><code>pub fn <a href="#method.padding_top" class="fnname">padding_top</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#335-338" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.padding_left" class="method"><code>pub fn <a href="#method.padding_left" class="fnname">padding_left</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#341-344" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.padding_bottom" class="method"><code>pub fn <a href="#method.padding_bottom" class="fnname">padding_bottom</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#347-350" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.padding_right" class="method"><code>pub fn <a href="#method.padding_right" class="fnname">padding_right</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#353-356" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.label_text" class="method"><code>pub fn <a href="#method.label_text" class="fnname">label_text</a>(self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#361-366" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the text of the button's label.</p>
|
||||
</div><h4 id="method.padding_top" class="method"><code>pub fn <a href="#method.padding_top" class="fnname">padding_top</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#331-334" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.padding_left" class="method"><code>pub fn <a href="#method.padding_left" class="fnname">padding_left</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#337-340" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.padding_bottom" class="method"><code>pub fn <a href="#method.padding_bottom" class="fnname">padding_bottom</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#343-346" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.padding_right" class="method"><code>pub fn <a href="#method.padding_right" class="fnname">padding_right</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#349-352" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.label_text" class="method"><code>pub fn <a href="#method.label_text" class="fnname">label_text</a>(self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#357-362" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the text of the button's label.</p>
|
||||
<p>If <code>label_text</code> is not set, the button will not have a label.</p>
|
||||
</div><h4 id="method.label_styled_text" class="method"><code>pub fn <a href="#method.label_styled_text" class="fnname">label_styled_text</a>(<br> self, <br> styled_text: <a class="struct" href="../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>, <br> for_state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a><br>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#370-380" title="goto source code">[src]</a></h4><div class="docblock"><p>Assign a pre-styled <code>Text</code> instance if your button need something more than uniformly
|
||||
</div><h4 id="method.label_styled_text" class="method"><code>pub fn <a href="#method.label_styled_text" class="fnname">label_styled_text</a>(<br> self, <br> styled_text: <a class="struct" href="../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>, <br> for_state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a><br>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#366-376" title="goto source code">[src]</a></h4><div class="docblock"><p>Assign a pre-styled <code>Text</code> instance if your button need something more than uniformly
|
||||
colored text.</p>
|
||||
</div><h4 id="method.label_color" class="method"><code>pub fn <a href="#method.label_color" class="fnname">label_color</a>(self, color: <a class="struct" href="../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, for_state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#385-391" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the color of the button's label.</p>
|
||||
</div><h4 id="method.label_color" class="method"><code>pub fn <a href="#method.label_color" class="fnname">label_color</a>(self, color: <a class="struct" href="../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, for_state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#381-387" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the color of the button's label.</p>
|
||||
<p>If not specified, a default font color will be used.</p>
|
||||
</div><h4 id="method.font" class="method"><code>pub fn <a href="#method.font" class="fnname">font</a>(self, font: <a class="enum" href="../widgetry/enum.Font.html" title="enum widgetry::Font">Font</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#396-401" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the font used by the button's label.</p>
|
||||
</div><h4 id="method.font" class="method"><code>pub fn <a href="#method.font" class="fnname">font</a>(self, font: <a class="enum" href="../widgetry/enum.Font.html" title="enum widgetry::Font">Font</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#392-397" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the font used by the button's label.</p>
|
||||
<p>If not specified, a default font will be used.</p>
|
||||
</div><h4 id="method.font_size" class="method"><code>pub fn <a href="#method.font_size" class="fnname">font_size</a>(self, font_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#406-411" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the size of the font of the button's label.</p>
|
||||
</div><h4 id="method.font_size" class="method"><code>pub fn <a href="#method.font_size" class="fnname">font_size</a>(self, font_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#402-407" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the size of the font of the button's label.</p>
|
||||
<p>If not specified, a default font size will be used.</p>
|
||||
</div><h4 id="method.image_path" class="method"><code>pub fn <a href="#method.image_path" class="fnname">image_path</a>(self, path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#414-421" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the image for the button. If not set, the button will have no image.</p>
|
||||
</div><h4 id="method.image_color" class="method"><code>pub fn <a href="#method.image_color" class="fnname">image_color</a>(self, color: <a class="struct" href="../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, for_state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#429-435" title="goto source code">[src]</a></h4><div class="docblock"><p>Rewrite the color of the button's image.</p>
|
||||
</div><h4 id="method.image_path" class="method"><code>pub fn <a href="#method.image_path" class="fnname">image_path</a>(self, path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#410-417" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the image for the button. If not set, the button will have no image.</p>
|
||||
</div><h4 id="method.image_color" class="method"><code>pub fn <a href="#method.image_color" class="fnname">image_color</a>(self, color: <a class="struct" href="../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, for_state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#425-431" title="goto source code">[src]</a></h4><div class="docblock"><p>Rewrite the color of the button's image.</p>
|
||||
<p>This has no effect if the button does not have an image.</p>
|
||||
<p>If the style hasn't been set for the current ControlState, the style for
|
||||
<code>ControlState::Default</code> will be used.</p>
|
||||
</div><h4 id="method.image_dims" class="method"><code>pub fn <a href="#method.image_dims" class="fnname">image_dims</a><D: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</a>>>(self, dims: D) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#442-447" title="goto source code">[src]</a></h4><div class="docblock"><p>Scale the bounds containing the image. If <code>image_dims</code> are not specified, the images
|
||||
</div><h4 id="method.image_dims" class="method"><code>pub fn <a href="#method.image_dims" class="fnname">image_dims</a><D: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</a>>>(self, dims: D) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#438-443" title="goto source code">[src]</a></h4><div class="docblock"><p>Scale the bounds containing the image. If <code>image_dims</code> are not specified, the images
|
||||
intrinsic size will be used.</p>
|
||||
<p>See <a href="../widgetry/struct.ButtonBuilder.html#method.image_content_mode" title="ButtonBuilder::image_content_mode"><code>ButtonBuilder::image_content_mode</code></a> to control how the image scales to fit
|
||||
its custom bounds.</p>
|
||||
</div><h4 id="method.image_content_mode" class="method"><code>pub fn <a href="#method.image_content_mode" class="fnname">image_content_mode</a>(self, content_mode: <a class="enum" href="../widgetry/enum.ContentMode.html" title="enum widgetry::ContentMode">ContentMode</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#456-461" title="goto source code">[src]</a></h4><div class="docblock"><p>If a custom <code>image_dims</code> was set, control how the image should be scaled to its new bounds</p>
|
||||
</div><h4 id="method.image_content_mode" class="method"><code>pub fn <a href="#method.image_content_mode" class="fnname">image_content_mode</a>(self, content_mode: <a class="enum" href="../widgetry/enum.ContentMode.html" title="enum widgetry::ContentMode">ContentMode</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#452-457" title="goto source code">[src]</a></h4><div class="docblock"><p>If a custom <code>image_dims</code> was set, control how the image should be scaled to its new bounds</p>
|
||||
<p>If <code>image_dims</code> were not specified, the image will not be scaled, so content_mode has no
|
||||
affect.</p>
|
||||
<p>The default, <a href="../widgetry/enum.ContentMode.html#variant.ScaleAspectFit" title="ContentMode::ScaleAspectFit"><code>ContentMode::ScaleAspectFit</code></a> will only grow as much as it can while
|
||||
maintaining its aspect ratio and not exceeding its bounds.</p>
|
||||
</div><h4 id="method.bg_color" class="method"><code>pub fn <a href="#method.bg_color" class="fnname">bg_color</a>(self, color: <a class="struct" href="../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, for_state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#467-470" title="goto source code">[src]</a></h4><div class="docblock"><p>Set a background color for the button based on the button's <a href="../widgetry/enum.ControlState.html" title="ControlState"><code>ControlState</code></a>.</p>
|
||||
</div><h4 id="method.bg_color" class="method"><code>pub fn <a href="#method.bg_color" class="fnname">bg_color</a>(self, color: <a class="struct" href="../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, for_state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#463-466" title="goto source code">[src]</a></h4><div class="docblock"><p>Set a background color for the button based on the button's <a href="../widgetry/enum.ControlState.html" title="ControlState"><code>ControlState</code></a>.</p>
|
||||
<p>If the style hasn't been set for the current ControlState, the style for
|
||||
<code>ControlState::Default</code> will be used.</p>
|
||||
</div><h4 id="method.outline" class="method"><code>pub fn <a href="#method.outline" class="fnname">outline</a>(<br> self, <br> thickness: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> color: <a class="struct" href="../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, <br> for_state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a><br>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#476-479" title="goto source code">[src]</a></h4><div class="docblock"><p>Set an outline for the button based on the button's <a href="../widgetry/enum.ControlState.html" title="ControlState"><code>ControlState</code></a>.</p>
|
||||
</div><h4 id="method.outline" class="method"><code>pub fn <a href="#method.outline" class="fnname">outline</a>(<br> self, <br> thickness: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> color: <a class="struct" href="../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, <br> for_state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a><br>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#472-475" title="goto source code">[src]</a></h4><div class="docblock"><p>Set an outline for the button based on the button's <a href="../widgetry/enum.ControlState.html" title="ControlState"><code>ControlState</code></a>.</p>
|
||||
<p>If the style hasn't been set for the current ControlState, the style for
|
||||
<code>ControlState::Default</code> will be used.</p>
|
||||
</div><h4 id="method.hotkey" class="method"><code>pub fn <a href="#method.hotkey" class="fnname">hotkey</a><MK: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../widgetry/enum.MultiKey.html" title="enum widgetry::MultiKey">MultiKey</a>>>(self, key: MK) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#482-485" title="goto source code">[src]</a></h4><div class="docblock"><p>Set a hotkey for the button</p>
|
||||
</div><h4 id="method.tooltip" class="method"><code>pub fn <a href="#method.tooltip" class="fnname">tooltip</a>(self, tooltip: <a class="struct" href="../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#490-493" title="goto source code">[src]</a></h4><div class="docblock"><p>Set a non-default tooltip <a href="../widgetry/struct.Text.html" title="Text"><code>Text</code></a> to appear when hovering over the button.</p>
|
||||
</div><h4 id="method.hotkey" class="method"><code>pub fn <a href="#method.hotkey" class="fnname">hotkey</a><MK: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../widgetry/enum.MultiKey.html" title="enum widgetry::MultiKey">MultiKey</a>>>(self, key: MK) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#478-481" title="goto source code">[src]</a></h4><div class="docblock"><p>Set a hotkey for the button</p>
|
||||
</div><h4 id="method.tooltip" class="method"><code>pub fn <a href="#method.tooltip" class="fnname">tooltip</a>(self, tooltip: <a class="struct" href="../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#486-489" title="goto source code">[src]</a></h4><div class="docblock"><p>Set a non-default tooltip <a href="../widgetry/struct.Text.html" title="Text"><code>Text</code></a> to appear when hovering over the button.</p>
|
||||
<p>If a <code>tooltip</code> is not specified, a default tooltip will be applied.</p>
|
||||
</div><h4 id="method.no_tooltip" class="method"><code>pub fn <a href="#method.no_tooltip" class="fnname">no_tooltip</a>(self) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#497-501" title="goto source code">[src]</a></h4><div class="docblock"><p>If a <code>tooltip</code> is not specified, a default tooltip will be applied. Use <code>no_tooltip</code> when
|
||||
</div><h4 id="method.no_tooltip" class="method"><code>pub fn <a href="#method.no_tooltip" class="fnname">no_tooltip</a>(self) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#493-497" title="goto source code">[src]</a></h4><div class="docblock"><p>If a <code>tooltip</code> is not specified, a default tooltip will be applied. Use <code>no_tooltip</code> when
|
||||
you do not want even the default tooltip to appear.</p>
|
||||
</div><h4 id="method.vertical" class="method"><code>pub fn <a href="#method.vertical" class="fnname">vertical</a>(self) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#506-509" title="goto source code">[src]</a></h4><div class="docblock"><p>The button's items will be rendered in a vertical column</p>
|
||||
</div><h4 id="method.vertical" class="method"><code>pub fn <a href="#method.vertical" class="fnname">vertical</a>(self) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#502-505" title="goto source code">[src]</a></h4><div class="docblock"><p>The button's items will be rendered in a vertical column</p>
|
||||
<p>If the button doesn't have both an image and label, this has no effect.</p>
|
||||
</div><h4 id="method.horizontal" class="method"><code>pub fn <a href="#method.horizontal" class="fnname">horizontal</a>(self) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#514-517" title="goto source code">[src]</a></h4><div class="docblock"><p>The button's items will be rendered in a horizontal row</p>
|
||||
</div><h4 id="method.horizontal" class="method"><code>pub fn <a href="#method.horizontal" class="fnname">horizontal</a>(self) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#510-513" title="goto source code">[src]</a></h4><div class="docblock"><p>The button's items will be rendered in a horizontal row</p>
|
||||
<p>If the button doesn't have both an image and label, this has no effect.</p>
|
||||
</div><h4 id="method.disabled" class="method"><code>pub fn <a href="#method.disabled" class="fnname">disabled</a>(self) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#520-523" title="goto source code">[src]</a></h4><div class="docblock"><p>The button cannot be clicked and will be styled as <a href="../widgetry/enum.ControlState.html#variant.Disabled" title="ControlState::Disabled"><code>ControlState::Disabled</code></a></p>
|
||||
</div><h4 id="method.label_first" class="method"><code>pub fn <a href="#method.label_first" class="fnname">label_first</a>(self) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#528-531" title="goto source code">[src]</a></h4><div class="docblock"><p>Display the button's label before the button's image.</p>
|
||||
</div><h4 id="method.disabled" class="method"><code>pub fn <a href="#method.disabled" class="fnname">disabled</a>(self) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#516-519" title="goto source code">[src]</a></h4><div class="docblock"><p>The button cannot be clicked and will be styled as <a href="../widgetry/enum.ControlState.html#variant.Disabled" title="ControlState::Disabled"><code>ControlState::Disabled</code></a></p>
|
||||
</div><h4 id="method.label_first" class="method"><code>pub fn <a href="#method.label_first" class="fnname">label_first</a>(self) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#524-527" title="goto source code">[src]</a></h4><div class="docblock"><p>Display the button's label before the button's image.</p>
|
||||
<p>If the button doesn't have both an image and label, this has no effect.</p>
|
||||
</div><h4 id="method.image_first" class="method"><code>pub fn <a href="#method.image_first" class="fnname">image_first</a>(self) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#536-539" title="goto source code">[src]</a></h4><div class="docblock"><p>Display the button's image before the button's label.</p>
|
||||
</div><h4 id="method.image_first" class="method"><code>pub fn <a href="#method.image_first" class="fnname">image_first</a>(self) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#532-535" title="goto source code">[src]</a></h4><div class="docblock"><p>Display the button's image before the button's label.</p>
|
||||
<p>If the button doesn't have both an image and label, this has no effect.</p>
|
||||
</div><h4 id="method.stack_spacing" class="method"><code>pub fn <a href="#method.stack_spacing" class="fnname">stack_spacing</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#543-546" title="goto source code">[src]</a></h4><div class="docblock"><p>Spacing between the image and text of a button.
|
||||
</div><h4 id="method.stack_spacing" class="method"><code>pub fn <a href="#method.stack_spacing" class="fnname">stack_spacing</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> Self</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#539-542" title="goto source code">[src]</a></h4><div class="docblock"><p>Spacing between the image and text of a button.
|
||||
Has no effect if the button is text-only or image-only.</p>
|
||||
</div><h4 id="method.build" class="method"><code>pub fn <a href="#method.build" class="fnname">build</a>(&self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, action: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/widgets/button/struct.Button.html" title="struct widgetry::widgets::button::Button">Button</a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#570-591" title="goto source code">[src]</a></h4><div class="docblock"><p>Build a button.</p>
|
||||
</div><h4 id="method.build" class="method"><code>pub fn <a href="#method.build" class="fnname">build</a>(&self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, action: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/widgets/button/struct.Button.html" title="struct widgetry::widgets::button::Button">Button</a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#566-587" title="goto source code">[src]</a></h4><div class="docblock"><p>Build a button.</p>
|
||||
<p><code>action</code>: The event that will be fired when clicked</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
@ -89,13 +89,13 @@ Has no effect if the button is text-only or image-only.</p>
|
||||
<span class="kw">let</span> <span class="ident">red_button_2</span> <span class="op">=</span> <span class="ident">red_builder</span>.<span class="ident">clone</span>().<span class="ident">label_text</span>(<span class="string">"Second red button"</span>).<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">"second"</span>);
|
||||
<span class="kw">let</span> <span class="ident">red_button_3</span> <span class="op">=</span> <span class="ident">red_builder</span>.<span class="ident">label_text</span>(<span class="string">"Last red button"</span>).<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">"third"</span>);
|
||||
}</pre></div>
|
||||
</div><h4 id="method.build_widget" class="method"><code>pub fn <a href="#method.build_widget" class="fnname">build_widget</a>(&self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, action: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#596-598" title="goto source code">[src]</a></h4><div class="docblock"><p>Shorthand method to build a Button wrapped in a Widget</p>
|
||||
</div><h4 id="method.build_widget" class="method"><code>pub fn <a href="#method.build_widget" class="fnname">build_widget</a>(&self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, action: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#592-594" title="goto source code">[src]</a></h4><div class="docblock"><p>Shorthand method to build a Button wrapped in a Widget</p>
|
||||
<p><code>action</code>: The event that will be fired when clicked</p>
|
||||
</div><h4 id="method.build_def" class="method"><code>pub fn <a href="#method.build_def" class="fnname">build_def</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/widgets/button.rs.html#601-610" title="goto source code">[src]</a></h4><div class="docblock"><p>Shorthand method to build a default widget whose <code>action</code> is derived from the label's text.</p>
|
||||
</div><h4 id="method.style_mut" class="method"><code>fn <a href="#method.style_mut" class="fnname">style_mut</a>(&'b mut self, state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> &'b mut <a class="struct" href="../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#614-620" title="goto source code">[src]</a></h4><h4 id="method.style" class="method"><code>fn <a href="#method.style" class="fnname">style</a>(&'b self, state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> &'b <a class="struct" href="../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#622-628" title="goto source code">[src]</a></h4><h4 id="method.batch" class="method"><code>fn <a href="#method.batch" class="fnname">batch</a>(&self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, for_state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> <a class="struct" href="../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#630-764" 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-Clone" class="impl"><code class="in-band">impl<'a> <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="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../src/widgetry/widgets/button.rs.html#283" 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="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#283" 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.build_def" class="method"><code>pub fn <a href="#method.build_def" class="fnname">build_def</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/widgets/button.rs.html#597-606" title="goto source code">[src]</a></h4><div class="docblock"><p>Shorthand method to build a default widget whose <code>action</code> is derived from the label's text.</p>
|
||||
</div><h4 id="method.style_mut" class="method"><code>fn <a href="#method.style_mut" class="fnname">style_mut</a>(&'b mut self, state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> &'b mut <a class="struct" href="../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#610-616" title="goto source code">[src]</a></h4><h4 id="method.style" class="method"><code>fn <a href="#method.style" class="fnname">style</a>(&'b self, state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> &'b <a class="struct" href="../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#618-624" title="goto source code">[src]</a></h4><h4 id="method.batch" class="method"><code>fn <a href="#method.batch" class="fnname">batch</a>(&self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, for_state: <a class="enum" href="../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> <a class="struct" href="../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#626-760" 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-Clone" class="impl"><code class="in-band">impl<'a> <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="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../src/widgetry/widgets/button.rs.html#279" 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="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#279" 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-Debug" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../src/widgetry/widgets/button.rs.html#283" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#283" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Default" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl-Default" class="anchor"></a><a class="srclink" href="../src/widgetry/widgets/button.rs.html#283" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.default" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#283" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../src/widgetry/widgets/button.rs.html#279" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#279" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Default" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl-Default" class="anchor"></a><a class="srclink" href="../src/widgetry/widgets/button.rs.html#279" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.default" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#279" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">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> <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="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'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> <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="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'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> <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="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'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> <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="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'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> <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="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'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>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a 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>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a 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>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a 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
@ -1,19 +1,19 @@
|
||||
<!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 `MultiButton` struct in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, MultiButton"><title>widgetry::MultiButton - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><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='../widgetry/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Struct MultiButton</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.dims">dims</a><a href="#structfield.draw">draw</a><a href="#structfield.hitboxes">hitboxes</a><a href="#structfield.hovering">hovering</a><a href="#structfield.top_left">top_left</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-WidgetImpl">WidgetImpl</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class="location"><a href="index.html">widgetry</a></p><script>window.sidebarCurrent = {name: "MultiButton", 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!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/widgets/button.rs.html#1060-1067" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="index.html">widgetry</a>::<wbr><a class="struct" href="">MultiButton</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct MultiButton {
|
||||
<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/widgets/button.rs.html#1056-1063" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="index.html">widgetry</a>::<wbr><a class="struct" href="">MultiButton</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct MultiButton {
|
||||
draw: <a class="struct" href="../widgetry/struct.Drawable.html" title="struct widgetry::Drawable">Drawable</a>,
|
||||
hitboxes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</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>>,
|
||||
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>>,
|
||||
top_left: <a class="struct" href="../widgetry/struct.ScreenPt.html" title="struct widgetry::ScreenPt">ScreenPt</a>,
|
||||
dims: <a class="struct" href="../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</a>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.draw" class="structfield small-section-header"><a href="#structfield.draw" class="anchor field"></a><code>draw: <a class="struct" href="../widgetry/struct.Drawable.html" title="struct widgetry::Drawable">Drawable</a></code></span><span id="structfield.hitboxes" class="structfield small-section-header"><a href="#structfield.hitboxes" class="anchor field"></a><code>hitboxes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</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><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><span id="structfield.top_left" class="structfield small-section-header"><a href="#structfield.top_left" class="anchor field"></a><code>top_left: <a class="struct" href="../widgetry/struct.ScreenPt.html" title="struct widgetry::ScreenPt">ScreenPt</a></code></span><span id="structfield.dims" class="structfield small-section-header"><a href="#structfield.dims" class="anchor field"></a><code>dims: <a class="struct" href="../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</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="../widgetry/struct.MultiButton.html" title="struct widgetry::MultiButton">MultiButton</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../src/widgetry/widgets/button.rs.html#1069-1079" 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>(<br> ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, <br> batch: <a class="struct" href="../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a>, <br> hitboxes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</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>><br>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#1070-1078" 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-WidgetImpl" class="impl"><code class="in-band">impl <a class="trait" href="../widgetry/widgets/trait.WidgetImpl.html" title="trait widgetry::widgets::WidgetImpl">WidgetImpl</a> for <a class="struct" href="../widgetry/struct.MultiButton.html" title="struct widgetry::MultiButton">MultiButton</a></code><a href="#impl-WidgetImpl" class="anchor"></a><a class="srclink" href="../src/widgetry/widgets/button.rs.html#1081-1125" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.get_dims" class="method hidden"><code>fn <a href="../widgetry/widgets/trait.WidgetImpl.html#tymethod.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/widgets/button.rs.html#1082-1084" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>What width and height does the widget occupy? If this changes, be sure to set
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.draw" class="structfield small-section-header"><a href="#structfield.draw" class="anchor field"></a><code>draw: <a class="struct" href="../widgetry/struct.Drawable.html" title="struct widgetry::Drawable">Drawable</a></code></span><span id="structfield.hitboxes" class="structfield small-section-header"><a href="#structfield.hitboxes" class="anchor field"></a><code>hitboxes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</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><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><span id="structfield.top_left" class="structfield small-section-header"><a href="#structfield.top_left" class="anchor field"></a><code>top_left: <a class="struct" href="../widgetry/struct.ScreenPt.html" title="struct widgetry::ScreenPt">ScreenPt</a></code></span><span id="structfield.dims" class="structfield small-section-header"><a href="#structfield.dims" class="anchor field"></a><code>dims: <a class="struct" href="../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</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="../widgetry/struct.MultiButton.html" title="struct widgetry::MultiButton">MultiButton</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../src/widgetry/widgets/button.rs.html#1065-1075" 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>(<br> ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, <br> batch: <a class="struct" href="../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a>, <br> hitboxes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</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>><br>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#1066-1074" 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-WidgetImpl" class="impl"><code class="in-band">impl <a class="trait" href="../widgetry/widgets/trait.WidgetImpl.html" title="trait widgetry::widgets::WidgetImpl">WidgetImpl</a> for <a class="struct" href="../widgetry/struct.MultiButton.html" title="struct widgetry::MultiButton">MultiButton</a></code><a href="#impl-WidgetImpl" class="anchor"></a><a class="srclink" href="../src/widgetry/widgets/button.rs.html#1077-1121" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.get_dims" class="method hidden"><code>fn <a href="../widgetry/widgets/trait.WidgetImpl.html#tymethod.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/widgets/button.rs.html#1078-1080" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>What width and height does the widget occupy? If this changes, be sure to set
|
||||
<code>redo_layout</code> to true in <code>event</code>. <a href="../widgetry/widgets/trait.WidgetImpl.html#tymethod.get_dims">Read more</a></p>
|
||||
</div><h4 id="method.set_pos" class="method hidden"><code>fn <a href="../widgetry/widgets/trait.WidgetImpl.html#tymethod.set_pos" class="fnname">set_pos</a>(&mut self, top_left: <a class="struct" href="../widgetry/struct.ScreenPt.html" title="struct widgetry::ScreenPt">ScreenPt</a>)</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#1086-1088" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Your widget's top left corner should be here. Handle mouse events and draw appropriately.</p>
|
||||
</div><h4 id="method.event" class="method hidden"><code>fn <a href="../widgetry/widgets/trait.WidgetImpl.html#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut <a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, output: &mut <a class="struct" href="../widgetry/struct.WidgetOutput.html" title="struct widgetry::WidgetOutput">WidgetOutput</a>)</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#1090-1114" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Your chance to react to an event. Any side effects outside of this widget are communicated
|
||||
</div><h4 id="method.set_pos" class="method hidden"><code>fn <a href="../widgetry/widgets/trait.WidgetImpl.html#tymethod.set_pos" class="fnname">set_pos</a>(&mut self, top_left: <a class="struct" href="../widgetry/struct.ScreenPt.html" title="struct widgetry::ScreenPt">ScreenPt</a>)</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#1082-1084" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Your widget's top left corner should be here. Handle mouse events and draw appropriately.</p>
|
||||
</div><h4 id="method.event" class="method hidden"><code>fn <a href="../widgetry/widgets/trait.WidgetImpl.html#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut <a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, output: &mut <a class="struct" href="../widgetry/struct.WidgetOutput.html" title="struct widgetry::WidgetOutput">WidgetOutput</a>)</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#1086-1110" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Your chance to react to an event. Any side effects outside of this widget are communicated
|
||||
through the output. <a href="../widgetry/widgets/trait.WidgetImpl.html#tymethod.event">Read more</a></p>
|
||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="../widgetry/widgets/trait.WidgetImpl.html#tymethod.draw" class="fnname">draw</a>(&self, g: &mut <a class="struct" href="../widgetry/struct.GfxCtx.html" title="struct widgetry::GfxCtx">GfxCtx</a><'_>)</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#1116-1124" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw the widget. Be sure to draw relative to the top-left specified by <code>set_pos</code>.</p>
|
||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="../widgetry/widgets/trait.WidgetImpl.html#tymethod.draw" class="fnname">draw</a>(&self, g: &mut <a class="struct" href="../widgetry/struct.GfxCtx.html" title="struct widgetry::GfxCtx">GfxCtx</a><'_>)</code><a class="srclink" href="../src/widgetry/widgets/button.rs.html#1112-1120" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw the widget. Be sure to draw relative to the top-left specified by <code>set_pos</code>.</p>
|
||||
</div><h4 id="method.can_restore" class="method hidden"><code>fn <a href="../widgetry/widgets/trait.WidgetImpl.html#method.can_restore" class="fnname">can_restore</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/widgets/mod.rs.html#54-56" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a new Panel is being created to replace an older one, all widgets have the chance to
|
||||
preserve state from the previous version. <a href="../widgetry/widgets/trait.WidgetImpl.html#method.can_restore">Read more</a></p>
|
||||
</div><h4 id="method.restore" class="method hidden"><code>fn <a href="../widgetry/widgets/trait.WidgetImpl.html#method.restore" class="fnname">restore</a>(&mut self, _: &mut <a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, _prev: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../widgetry/widgets/trait.WidgetImpl.html" title="trait widgetry::widgets::WidgetImpl">WidgetImpl</a>>)</code><a class="srclink" href="../src/widgetry/widgets/mod.rs.html#59-61" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Restore state from the previous version of this widget, with the same ID. Implementors must
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,18 +1,18 @@
|
||||
<!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 `Axis` enum in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, Axis"><title>widgetry::widgets::button::geom_batch_stack::Axis - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><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 enum"><!--[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">Enum Axis</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Horizontal">Horizontal</a><a href="#variant.Vertical">Vertical</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-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-PartialEq%3CAxis%3E">PartialEq<Axis></a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-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></div></div><p class="location"><a href="../../../index.html">widgetry</a>::<wbr><a href="../../index.html">widgets</a>::<wbr><a href="../index.html">button</a>::<wbr><a href="index.html">geom_batch_stack</a></p><script>window.sidebarCurrent = {name: "Axis", ty: "enum", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/widgets/button.rs.html#1137-1140" title="goto source code">[src]</a></span><span class="in-band">Enum <a href="../../../index.html">widgetry</a>::<wbr><a href="../../index.html">widgets</a>::<wbr><a href="../index.html">button</a>::<wbr><a href="index.html">geom_batch_stack</a>::<wbr><a class="enum" href="">Axis</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum">pub enum Axis {
|
||||
<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/widgets/button.rs.html#1133-1136" title="goto source code">[src]</a></span><span class="in-band">Enum <a href="../../../index.html">widgetry</a>::<wbr><a href="../../index.html">widgets</a>::<wbr><a href="../index.html">button</a>::<wbr><a href="index.html">geom_batch_stack</a>::<wbr><a class="enum" href="">Axis</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum">pub enum Axis {
|
||||
Horizontal,
|
||||
Vertical,
|
||||
}</pre></div><h2 id="variants" class="variants small-section-header">
|
||||
Variants<a href="#variants" class="anchor"></a></h2>
|
||||
<div id="variant.Horizontal" class="variant small-section-header"><a href="#variant.Horizontal" class="anchor field"></a><code>Horizontal</code></div><div id="variant.Vertical" class="variant small-section-header"><a href="#variant.Vertical" class="anchor field"></a><code>Vertical</code></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-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="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1136" 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="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a></code><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1136" 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 id="variant.Horizontal" class="variant small-section-header"><a href="#variant.Horizontal" class="anchor field"></a><code>Horizontal</code></div><div id="variant.Vertical" class="variant small-section-header"><a href="#variant.Vertical" class="anchor field"></a><code>Vertical</code></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-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="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1132" 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="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a></code><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1132" 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-Copy" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a></code><a href="#impl-Copy" class="anchor"></a><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1136" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1136" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1136" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-PartialEq%3CAxis%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a>> for <a class="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a></code><a href="#impl-PartialEq%3CAxis%3E" class="anchor"></a><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1136" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1136" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||||
</div></div><h3 id="impl-Copy" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a></code><a href="#impl-Copy" class="anchor"></a><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1132" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1132" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-PartialEq%3CAxis%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a>> for <a class="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a></code><a href="#impl-PartialEq%3CAxis%3E" class="anchor"></a><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1132" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||||
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id="method.ne" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></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/cmp.rs.html#209-211" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id="impl-StructuralPartialEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a></code><a href="#impl-StructuralPartialEq" class="anchor"></a><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1136" title="goto source code">[src]</a></h3><div class="impl-items"></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="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</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="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</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="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</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="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</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="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</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>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a 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-StructuralPartialEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a></code><a href="#impl-StructuralPartialEq" class="anchor"></a><a class="srclink" href="../../../../src/widgetry/widgets/button.rs.html#1132" title="goto source code">[src]</a></h3><div class="impl-items"></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="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</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="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</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="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</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="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</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="enum" href="../../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</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>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a 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>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a 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>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a 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>
|
||||
</div></div><h3 id="impl-Downcast" class="impl"><code class="in-band">impl<T> Downcast for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>, </span></code><a href="#impl-Downcast" class="anchor"></a></h3><div class="impl-items"><h4 id="method.into_any" class="method hidden"><code>pub fn <a href="#method.into_any" class="fnname">into_any</a>(self: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><T, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>></code></h4><div class='docblock hidden'><p>Convert <code>Box<dyn Trait></code> (where <code>Trait: Downcast</code>) to <code>Box<dyn Any></code>. <code>Box<dyn Any></code> can
|
||||
|
@ -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 `geom_batch_stack` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, geom_batch_stack"><title>widgetry::widgets::button::geom_batch_stack - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><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 geom_batch_stack</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>::<wbr><a href="../../index.html">widgets</a>::<wbr><a href="../index.html">button</a></p><script>window.sidebarCurrent = {name: "geom_batch_stack", 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!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/widgets/button.rs.html#1133-1235" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../../index.html">widgetry</a>::<wbr><a href="../../index.html">widgets</a>::<wbr><a href="../index.html">button</a>::<wbr><a class="mod" href="">geom_batch_stack</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/widgets/button.rs.html#1129-1231" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../../index.html">widgetry</a>::<wbr><a href="../../index.html">widgets</a>::<wbr><a href="../index.html">button</a>::<wbr><a class="mod" href="">geom_batch_stack</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.Stack.html" title="widgetry::widgets::button::geom_batch_stack::Stack struct">Stack</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.Axis.html" title="widgetry::widgets::button::geom_batch_stack::Axis enum">Axis</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,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 `button` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, button"><title>widgetry::widgets::button - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><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 button</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></div><p class="location"><a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a></p><script>window.sidebarCurrent = {name: "button", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/widgets/button.rs.html#1-1235" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a class="mod" href="">button</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</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/widgets/button.rs.html#1-1231" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a class="mod" href="">button</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<table><tr class="module-item"><td><a class="mod" href="geom_batch_stack/index.html" title="widgetry::widgets::button::geom_batch_stack mod">geom_batch_stack</a></td><td class="docblock-short"></td></tr></table><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.Btn.html" title="widgetry::widgets::button::Btn struct">Btn</a></td><td class="docblock-short"><p>A questionably named place to start creating buttons.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Button.html" title="widgetry::widgets::button::Button struct">Button</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ButtonBuilder.html" title="widgetry::widgets::button::ButtonBuilder struct">ButtonBuilder</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ButtonStyle.html" title="widgetry::widgets::button::ButtonStyle struct">ButtonStyle</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Image.html" title="widgetry::widgets::button::Image struct">Image</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Label.html" title="widgetry::widgets::button::Label struct">Label</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.MultiButton.html" title="widgetry::widgets::button::MultiButton struct">MultiButton</a></td><td class="docblock-short"></td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||
|
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 `ButtonBuilder` struct in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, ButtonBuilder"><title>widgetry::widgets::button::ButtonBuilder - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><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='../../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Struct ButtonBuilder</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.default_style">default_style</a><a href="#structfield.disable_style">disable_style</a><a href="#structfield.hotkey">hotkey</a><a href="#structfield.hover_style">hover_style</a><a href="#structfield.is_disabled">is_disabled</a><a href="#structfield.is_label_before_image">is_label_before_image</a><a href="#structfield.padding">padding</a><a href="#structfield.stack_axis">stack_axis</a><a href="#structfield.stack_spacing">stack_spacing</a><a href="#structfield.tooltip">tooltip</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.batch">batch</a><a href="#method.bg_color">bg_color</a><a href="#method.build">build</a><a href="#method.build_def">build_def</a><a href="#method.build_widget">build_widget</a><a href="#method.disabled">disabled</a><a href="#method.font">font</a><a href="#method.font_size">font_size</a><a href="#method.horizontal">horizontal</a><a href="#method.hotkey">hotkey</a><a href="#method.image_color">image_color</a><a href="#method.image_content_mode">image_content_mode</a><a href="#method.image_dims">image_dims</a><a href="#method.image_first">image_first</a><a href="#method.image_path">image_path</a><a href="#method.label_color">label_color</a><a href="#method.label_first">label_first</a><a href="#method.label_styled_text">label_styled_text</a><a href="#method.label_text">label_text</a><a href="#method.new">new</a><a href="#method.no_tooltip">no_tooltip</a><a href="#method.outline">outline</a><a href="#method.padding">padding</a><a href="#method.padding_bottom">padding_bottom</a><a href="#method.padding_left">padding_left</a><a href="#method.padding_right">padding_right</a><a href="#method.padding_top">padding_top</a><a href="#method.stack_spacing">stack_spacing</a><a href="#method.style">style</a><a href="#method.style_mut">style_mut</a><a href="#method.tooltip">tooltip</a><a href="#method.vertical">vertical</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-Debug">Debug</a><a href="#impl-Default">Default</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-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></div></div><p class="location"><a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a></p><script>window.sidebarCurrent = {name: "ButtonBuilder", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/widgets/button.rs.html#284-295" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a>::<wbr><a class="struct" href="">ButtonBuilder</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct ButtonBuilder<'a> {
|
||||
<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/widgets/button.rs.html#280-291" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a>::<wbr><a class="struct" href="">ButtonBuilder</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct ButtonBuilder<'a> {
|
||||
padding: <a class="struct" href="../../../widgetry/struct.EdgeInsets.html" title="struct widgetry::EdgeInsets">EdgeInsets</a>,
|
||||
stack_spacing: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
hotkey: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../../widgetry/enum.MultiKey.html" title="enum widgetry::MultiKey">MultiKey</a>>,
|
||||
@ -13,7 +13,7 @@
|
||||
hover_style: <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a>,
|
||||
disable_style: <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.padding" class="structfield small-section-header"><a href="#structfield.padding" class="anchor field"></a><code>padding: <a class="struct" href="../../../widgetry/struct.EdgeInsets.html" title="struct widgetry::EdgeInsets">EdgeInsets</a></code></span><span id="structfield.stack_spacing" class="structfield small-section-header"><a href="#structfield.stack_spacing" class="anchor field"></a><code>stack_spacing: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code></span><span id="structfield.hotkey" class="structfield small-section-header"><a href="#structfield.hotkey" class="anchor field"></a><code>hotkey: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../../widgetry/enum.MultiKey.html" title="enum widgetry::MultiKey">MultiKey</a>></code></span><span id="structfield.tooltip" class="structfield small-section-header"><a href="#structfield.tooltip" class="anchor field"></a><code>tooltip: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>></code></span><span id="structfield.stack_axis" class="structfield small-section-header"><a href="#structfield.stack_axis" class="anchor field"></a><code>stack_axis: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a>></code></span><span id="structfield.is_label_before_image" class="structfield small-section-header"><a href="#structfield.is_label_before_image" class="anchor field"></a><code>is_label_before_image: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span id="structfield.is_disabled" class="structfield small-section-header"><a href="#structfield.is_disabled" class="anchor field"></a><code>is_disabled: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span id="structfield.default_style" class="structfield small-section-header"><a href="#structfield.default_style" class="anchor field"></a><code>default_style: <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code></span><span id="structfield.hover_style" class="structfield small-section-header"><a href="#structfield.hover_style" class="anchor field"></a><code>hover_style: <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code></span><span id="structfield.disable_style" class="structfield small-section-header"><a href="#structfield.disable_style" class="anchor field"></a><code>disable_style: <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'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<'b, 'a: 'b> <a class="struct" href="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#305-765" 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>() -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#306-317" title="goto source code">[src]</a></h4><h4 id="method.padding" class="method"><code>pub fn <a href="#method.padding" class="fnname">padding</a><EI: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../../widgetry/struct.EdgeInsets.html" title="struct widgetry::EdgeInsets">EdgeInsets</a>>>(self, padding: EI) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#329-332" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.padding" class="structfield small-section-header"><a href="#structfield.padding" class="anchor field"></a><code>padding: <a class="struct" href="../../../widgetry/struct.EdgeInsets.html" title="struct widgetry::EdgeInsets">EdgeInsets</a></code></span><span id="structfield.stack_spacing" class="structfield small-section-header"><a href="#structfield.stack_spacing" class="anchor field"></a><code>stack_spacing: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code></span><span id="structfield.hotkey" class="structfield small-section-header"><a href="#structfield.hotkey" class="anchor field"></a><code>hotkey: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../../widgetry/enum.MultiKey.html" title="enum widgetry::MultiKey">MultiKey</a>></code></span><span id="structfield.tooltip" class="structfield small-section-header"><a href="#structfield.tooltip" class="anchor field"></a><code>tooltip: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>></code></span><span id="structfield.stack_axis" class="structfield small-section-header"><a href="#structfield.stack_axis" class="anchor field"></a><code>stack_axis: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../../widgetry/widgets/button/geom_batch_stack/enum.Axis.html" title="enum widgetry::widgets::button::geom_batch_stack::Axis">Axis</a>></code></span><span id="structfield.is_label_before_image" class="structfield small-section-header"><a href="#structfield.is_label_before_image" class="anchor field"></a><code>is_label_before_image: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span id="structfield.is_disabled" class="structfield small-section-header"><a href="#structfield.is_disabled" class="anchor field"></a><code>is_disabled: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span id="structfield.default_style" class="structfield small-section-header"><a href="#structfield.default_style" class="anchor field"></a><code>default_style: <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code></span><span id="structfield.hover_style" class="structfield small-section-header"><a href="#structfield.hover_style" class="anchor field"></a><code>hover_style: <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code></span><span id="structfield.disable_style" class="structfield small-section-header"><a href="#structfield.disable_style" class="anchor field"></a><code>disable_style: <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'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<'b, 'a: 'b> <a class="struct" href="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#301-761" 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>() -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#302-313" title="goto source code">[src]</a></h4><h4 id="method.padding" class="method"><code>pub fn <a href="#method.padding" class="fnname">padding</a><EI: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../../widgetry/struct.EdgeInsets.html" title="struct widgetry::EdgeInsets">EdgeInsets</a>>>(self, padding: EI) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#325-328" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
<p>If not specified, a default will be applied.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
@ -21,57 +21,57 @@
|
||||
<span class="kw">let</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">ButtonBuilder</span>::<span class="ident">new</span>().<span class="ident">padding</span>(<span class="ident">EdgeInsets</span>{ <span class="ident">top</span>: <span class="number">1.0</span>, <span class="ident">bottom</span>: <span class="number">2.0</span>, <span class="ident">left</span>: <span class="number">12.0</span>, <span class="ident">right</span>: <span class="number">14.0</span> });
|
||||
<span class="comment">// uniform padding</span>
|
||||
<span class="kw">let</span> <span class="ident">b</span> <span class="op">=</span> <span class="ident">ButtonBuilder</span>::<span class="ident">new</span>().<span class="ident">padding</span>(<span class="number">6</span>);</pre></div>
|
||||
</div><h4 id="method.padding_top" class="method"><code>pub fn <a href="#method.padding_top" class="fnname">padding_top</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#335-338" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.padding_left" class="method"><code>pub fn <a href="#method.padding_left" class="fnname">padding_left</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#341-344" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.padding_bottom" class="method"><code>pub fn <a href="#method.padding_bottom" class="fnname">padding_bottom</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#347-350" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.padding_right" class="method"><code>pub fn <a href="#method.padding_right" class="fnname">padding_right</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#353-356" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.label_text" class="method"><code>pub fn <a href="#method.label_text" class="fnname">label_text</a>(self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#361-366" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the text of the button's label.</p>
|
||||
</div><h4 id="method.padding_top" class="method"><code>pub fn <a href="#method.padding_top" class="fnname">padding_top</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#331-334" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.padding_left" class="method"><code>pub fn <a href="#method.padding_left" class="fnname">padding_left</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#337-340" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.padding_bottom" class="method"><code>pub fn <a href="#method.padding_bottom" class="fnname">padding_bottom</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#343-346" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.padding_right" class="method"><code>pub fn <a href="#method.padding_right" class="fnname">padding_right</a>(self, padding: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#349-352" title="goto source code">[src]</a></h4><div class="docblock"><p>Extra spacing around a button's items (label and/or image).</p>
|
||||
</div><h4 id="method.label_text" class="method"><code>pub fn <a href="#method.label_text" class="fnname">label_text</a>(self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#357-362" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the text of the button's label.</p>
|
||||
<p>If <code>label_text</code> is not set, the button will not have a label.</p>
|
||||
</div><h4 id="method.label_styled_text" class="method"><code>pub fn <a href="#method.label_styled_text" class="fnname">label_styled_text</a>(<br> self, <br> styled_text: <a class="struct" href="../../../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>, <br> for_state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a><br>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#370-380" title="goto source code">[src]</a></h4><div class="docblock"><p>Assign a pre-styled <code>Text</code> instance if your button need something more than uniformly
|
||||
</div><h4 id="method.label_styled_text" class="method"><code>pub fn <a href="#method.label_styled_text" class="fnname">label_styled_text</a>(<br> self, <br> styled_text: <a class="struct" href="../../../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>, <br> for_state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a><br>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#366-376" title="goto source code">[src]</a></h4><div class="docblock"><p>Assign a pre-styled <code>Text</code> instance if your button need something more than uniformly
|
||||
colored text.</p>
|
||||
</div><h4 id="method.label_color" class="method"><code>pub fn <a href="#method.label_color" class="fnname">label_color</a>(self, color: <a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, for_state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#385-391" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the color of the button's label.</p>
|
||||
</div><h4 id="method.label_color" class="method"><code>pub fn <a href="#method.label_color" class="fnname">label_color</a>(self, color: <a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, for_state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#381-387" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the color of the button's label.</p>
|
||||
<p>If not specified, a default font color will be used.</p>
|
||||
</div><h4 id="method.font" class="method"><code>pub fn <a href="#method.font" class="fnname">font</a>(self, font: <a class="enum" href="../../../widgetry/enum.Font.html" title="enum widgetry::Font">Font</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#396-401" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the font used by the button's label.</p>
|
||||
</div><h4 id="method.font" class="method"><code>pub fn <a href="#method.font" class="fnname">font</a>(self, font: <a class="enum" href="../../../widgetry/enum.Font.html" title="enum widgetry::Font">Font</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#392-397" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the font used by the button's label.</p>
|
||||
<p>If not specified, a default font will be used.</p>
|
||||
</div><h4 id="method.font_size" class="method"><code>pub fn <a href="#method.font_size" class="fnname">font_size</a>(self, font_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#406-411" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the size of the font of the button's label.</p>
|
||||
</div><h4 id="method.font_size" class="method"><code>pub fn <a href="#method.font_size" class="fnname">font_size</a>(self, font_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#402-407" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the size of the font of the button's label.</p>
|
||||
<p>If not specified, a default font size will be used.</p>
|
||||
</div><h4 id="method.image_path" class="method"><code>pub fn <a href="#method.image_path" class="fnname">image_path</a>(self, path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#414-421" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the image for the button. If not set, the button will have no image.</p>
|
||||
</div><h4 id="method.image_color" class="method"><code>pub fn <a href="#method.image_color" class="fnname">image_color</a>(self, color: <a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, for_state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#429-435" title="goto source code">[src]</a></h4><div class="docblock"><p>Rewrite the color of the button's image.</p>
|
||||
</div><h4 id="method.image_path" class="method"><code>pub fn <a href="#method.image_path" class="fnname">image_path</a>(self, path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#410-417" title="goto source code">[src]</a></h4><div class="docblock"><p>Set the image for the button. If not set, the button will have no image.</p>
|
||||
</div><h4 id="method.image_color" class="method"><code>pub fn <a href="#method.image_color" class="fnname">image_color</a>(self, color: <a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, for_state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#425-431" title="goto source code">[src]</a></h4><div class="docblock"><p>Rewrite the color of the button's image.</p>
|
||||
<p>This has no effect if the button does not have an image.</p>
|
||||
<p>If the style hasn't been set for the current ControlState, the style for
|
||||
<code>ControlState::Default</code> will be used.</p>
|
||||
</div><h4 id="method.image_dims" class="method"><code>pub fn <a href="#method.image_dims" class="fnname">image_dims</a><D: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</a>>>(self, dims: D) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#442-447" title="goto source code">[src]</a></h4><div class="docblock"><p>Scale the bounds containing the image. If <code>image_dims</code> are not specified, the images
|
||||
</div><h4 id="method.image_dims" class="method"><code>pub fn <a href="#method.image_dims" class="fnname">image_dims</a><D: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</a>>>(self, dims: D) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#438-443" title="goto source code">[src]</a></h4><div class="docblock"><p>Scale the bounds containing the image. If <code>image_dims</code> are not specified, the images
|
||||
intrinsic size will be used.</p>
|
||||
<p>See <a href="../../../widgetry/struct.ButtonBuilder.html#method.image_content_mode" title="ButtonBuilder::image_content_mode"><code>ButtonBuilder::image_content_mode</code></a> to control how the image scales to fit
|
||||
its custom bounds.</p>
|
||||
</div><h4 id="method.image_content_mode" class="method"><code>pub fn <a href="#method.image_content_mode" class="fnname">image_content_mode</a>(self, content_mode: <a class="enum" href="../../../widgetry/enum.ContentMode.html" title="enum widgetry::ContentMode">ContentMode</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#456-461" title="goto source code">[src]</a></h4><div class="docblock"><p>If a custom <code>image_dims</code> was set, control how the image should be scaled to its new bounds</p>
|
||||
</div><h4 id="method.image_content_mode" class="method"><code>pub fn <a href="#method.image_content_mode" class="fnname">image_content_mode</a>(self, content_mode: <a class="enum" href="../../../widgetry/enum.ContentMode.html" title="enum widgetry::ContentMode">ContentMode</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#452-457" title="goto source code">[src]</a></h4><div class="docblock"><p>If a custom <code>image_dims</code> was set, control how the image should be scaled to its new bounds</p>
|
||||
<p>If <code>image_dims</code> were not specified, the image will not be scaled, so content_mode has no
|
||||
affect.</p>
|
||||
<p>The default, <a href="../../../widgetry/enum.ContentMode.html#variant.ScaleAspectFit" title="ContentMode::ScaleAspectFit"><code>ContentMode::ScaleAspectFit</code></a> will only grow as much as it can while
|
||||
maintaining its aspect ratio and not exceeding its bounds.</p>
|
||||
</div><h4 id="method.bg_color" class="method"><code>pub fn <a href="#method.bg_color" class="fnname">bg_color</a>(self, color: <a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, for_state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#467-470" title="goto source code">[src]</a></h4><div class="docblock"><p>Set a background color for the button based on the button's <a href="../../../widgetry/enum.ControlState.html" title="ControlState"><code>ControlState</code></a>.</p>
|
||||
</div><h4 id="method.bg_color" class="method"><code>pub fn <a href="#method.bg_color" class="fnname">bg_color</a>(self, color: <a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, for_state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#463-466" title="goto source code">[src]</a></h4><div class="docblock"><p>Set a background color for the button based on the button's <a href="../../../widgetry/enum.ControlState.html" title="ControlState"><code>ControlState</code></a>.</p>
|
||||
<p>If the style hasn't been set for the current ControlState, the style for
|
||||
<code>ControlState::Default</code> will be used.</p>
|
||||
</div><h4 id="method.outline" class="method"><code>pub fn <a href="#method.outline" class="fnname">outline</a>(<br> self, <br> thickness: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> color: <a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, <br> for_state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a><br>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#476-479" title="goto source code">[src]</a></h4><div class="docblock"><p>Set an outline for the button based on the button's <a href="../../../widgetry/enum.ControlState.html" title="ControlState"><code>ControlState</code></a>.</p>
|
||||
</div><h4 id="method.outline" class="method"><code>pub fn <a href="#method.outline" class="fnname">outline</a>(<br> self, <br> thickness: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> color: <a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>, <br> for_state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a><br>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#472-475" title="goto source code">[src]</a></h4><div class="docblock"><p>Set an outline for the button based on the button's <a href="../../../widgetry/enum.ControlState.html" title="ControlState"><code>ControlState</code></a>.</p>
|
||||
<p>If the style hasn't been set for the current ControlState, the style for
|
||||
<code>ControlState::Default</code> will be used.</p>
|
||||
</div><h4 id="method.hotkey" class="method"><code>pub fn <a href="#method.hotkey" class="fnname">hotkey</a><MK: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../../widgetry/enum.MultiKey.html" title="enum widgetry::MultiKey">MultiKey</a>>>(self, key: MK) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#482-485" title="goto source code">[src]</a></h4><div class="docblock"><p>Set a hotkey for the button</p>
|
||||
</div><h4 id="method.tooltip" class="method"><code>pub fn <a href="#method.tooltip" class="fnname">tooltip</a>(self, tooltip: <a class="struct" href="../../../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#490-493" title="goto source code">[src]</a></h4><div class="docblock"><p>Set a non-default tooltip <a href="../../../widgetry/struct.Text.html" title="Text"><code>Text</code></a> to appear when hovering over the button.</p>
|
||||
</div><h4 id="method.hotkey" class="method"><code>pub fn <a href="#method.hotkey" class="fnname">hotkey</a><MK: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../../widgetry/enum.MultiKey.html" title="enum widgetry::MultiKey">MultiKey</a>>>(self, key: MK) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#478-481" title="goto source code">[src]</a></h4><div class="docblock"><p>Set a hotkey for the button</p>
|
||||
</div><h4 id="method.tooltip" class="method"><code>pub fn <a href="#method.tooltip" class="fnname">tooltip</a>(self, tooltip: <a class="struct" href="../../../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#486-489" title="goto source code">[src]</a></h4><div class="docblock"><p>Set a non-default tooltip <a href="../../../widgetry/struct.Text.html" title="Text"><code>Text</code></a> to appear when hovering over the button.</p>
|
||||
<p>If a <code>tooltip</code> is not specified, a default tooltip will be applied.</p>
|
||||
</div><h4 id="method.no_tooltip" class="method"><code>pub fn <a href="#method.no_tooltip" class="fnname">no_tooltip</a>(self) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#497-501" title="goto source code">[src]</a></h4><div class="docblock"><p>If a <code>tooltip</code> is not specified, a default tooltip will be applied. Use <code>no_tooltip</code> when
|
||||
</div><h4 id="method.no_tooltip" class="method"><code>pub fn <a href="#method.no_tooltip" class="fnname">no_tooltip</a>(self) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#493-497" title="goto source code">[src]</a></h4><div class="docblock"><p>If a <code>tooltip</code> is not specified, a default tooltip will be applied. Use <code>no_tooltip</code> when
|
||||
you do not want even the default tooltip to appear.</p>
|
||||
</div><h4 id="method.vertical" class="method"><code>pub fn <a href="#method.vertical" class="fnname">vertical</a>(self) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#506-509" title="goto source code">[src]</a></h4><div class="docblock"><p>The button's items will be rendered in a vertical column</p>
|
||||
</div><h4 id="method.vertical" class="method"><code>pub fn <a href="#method.vertical" class="fnname">vertical</a>(self) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#502-505" title="goto source code">[src]</a></h4><div class="docblock"><p>The button's items will be rendered in a vertical column</p>
|
||||
<p>If the button doesn't have both an image and label, this has no effect.</p>
|
||||
</div><h4 id="method.horizontal" class="method"><code>pub fn <a href="#method.horizontal" class="fnname">horizontal</a>(self) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#514-517" title="goto source code">[src]</a></h4><div class="docblock"><p>The button's items will be rendered in a horizontal row</p>
|
||||
</div><h4 id="method.horizontal" class="method"><code>pub fn <a href="#method.horizontal" class="fnname">horizontal</a>(self) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#510-513" title="goto source code">[src]</a></h4><div class="docblock"><p>The button's items will be rendered in a horizontal row</p>
|
||||
<p>If the button doesn't have both an image and label, this has no effect.</p>
|
||||
</div><h4 id="method.disabled" class="method"><code>pub fn <a href="#method.disabled" class="fnname">disabled</a>(self) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#520-523" title="goto source code">[src]</a></h4><div class="docblock"><p>The button cannot be clicked and will be styled as <a href="../../../widgetry/enum.ControlState.html#variant.Disabled" title="ControlState::Disabled"><code>ControlState::Disabled</code></a></p>
|
||||
</div><h4 id="method.label_first" class="method"><code>pub fn <a href="#method.label_first" class="fnname">label_first</a>(self) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#528-531" title="goto source code">[src]</a></h4><div class="docblock"><p>Display the button's label before the button's image.</p>
|
||||
</div><h4 id="method.disabled" class="method"><code>pub fn <a href="#method.disabled" class="fnname">disabled</a>(self) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#516-519" title="goto source code">[src]</a></h4><div class="docblock"><p>The button cannot be clicked and will be styled as <a href="../../../widgetry/enum.ControlState.html#variant.Disabled" title="ControlState::Disabled"><code>ControlState::Disabled</code></a></p>
|
||||
</div><h4 id="method.label_first" class="method"><code>pub fn <a href="#method.label_first" class="fnname">label_first</a>(self) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#524-527" title="goto source code">[src]</a></h4><div class="docblock"><p>Display the button's label before the button's image.</p>
|
||||
<p>If the button doesn't have both an image and label, this has no effect.</p>
|
||||
</div><h4 id="method.image_first" class="method"><code>pub fn <a href="#method.image_first" class="fnname">image_first</a>(self) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#536-539" title="goto source code">[src]</a></h4><div class="docblock"><p>Display the button's image before the button's label.</p>
|
||||
</div><h4 id="method.image_first" class="method"><code>pub fn <a href="#method.image_first" class="fnname">image_first</a>(self) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#532-535" title="goto source code">[src]</a></h4><div class="docblock"><p>Display the button's image before the button's label.</p>
|
||||
<p>If the button doesn't have both an image and label, this has no effect.</p>
|
||||
</div><h4 id="method.stack_spacing" class="method"><code>pub fn <a href="#method.stack_spacing" class="fnname">stack_spacing</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#543-546" title="goto source code">[src]</a></h4><div class="docblock"><p>Spacing between the image and text of a button.
|
||||
</div><h4 id="method.stack_spacing" class="method"><code>pub fn <a href="#method.stack_spacing" class="fnname">stack_spacing</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> Self</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#539-542" title="goto source code">[src]</a></h4><div class="docblock"><p>Spacing between the image and text of a button.
|
||||
Has no effect if the button is text-only or image-only.</p>
|
||||
</div><h4 id="method.build" class="method"><code>pub fn <a href="#method.build" class="fnname">build</a>(&self, ctx: &<a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, action: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../../../widgetry/widgets/button/struct.Button.html" title="struct widgetry::widgets::button::Button">Button</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#570-591" title="goto source code">[src]</a></h4><div class="docblock"><p>Build a button.</p>
|
||||
</div><h4 id="method.build" class="method"><code>pub fn <a href="#method.build" class="fnname">build</a>(&self, ctx: &<a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, action: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../../../widgetry/widgets/button/struct.Button.html" title="struct widgetry::widgets::button::Button">Button</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#566-587" title="goto source code">[src]</a></h4><div class="docblock"><p>Build a button.</p>
|
||||
<p><code>action</code>: The event that will be fired when clicked</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
@ -89,13 +89,13 @@ Has no effect if the button is text-only or image-only.</p>
|
||||
<span class="kw">let</span> <span class="ident">red_button_2</span> <span class="op">=</span> <span class="ident">red_builder</span>.<span class="ident">clone</span>().<span class="ident">label_text</span>(<span class="string">"Second red button"</span>).<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">"second"</span>);
|
||||
<span class="kw">let</span> <span class="ident">red_button_3</span> <span class="op">=</span> <span class="ident">red_builder</span>.<span class="ident">label_text</span>(<span class="string">"Last red button"</span>).<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">"third"</span>);
|
||||
}</pre></div>
|
||||
</div><h4 id="method.build_widget" class="method"><code>pub fn <a href="#method.build_widget" class="fnname">build_widget</a>(&self, ctx: &<a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, action: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#596-598" title="goto source code">[src]</a></h4><div class="docblock"><p>Shorthand method to build a Button wrapped in a Widget</p>
|
||||
</div><h4 id="method.build_widget" class="method"><code>pub fn <a href="#method.build_widget" class="fnname">build_widget</a>(&self, ctx: &<a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, action: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#592-594" title="goto source code">[src]</a></h4><div class="docblock"><p>Shorthand method to build a Button wrapped in a Widget</p>
|
||||
<p><code>action</code>: The event that will be fired when clicked</p>
|
||||
</div><h4 id="method.build_def" class="method"><code>pub fn <a href="#method.build_def" class="fnname">build_def</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/widgets/button.rs.html#601-610" title="goto source code">[src]</a></h4><div class="docblock"><p>Shorthand method to build a default widget whose <code>action</code> is derived from the label's text.</p>
|
||||
</div><h4 id="method.style_mut" class="method"><code>fn <a href="#method.style_mut" class="fnname">style_mut</a>(&'b mut self, state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> &'b mut <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#614-620" title="goto source code">[src]</a></h4><h4 id="method.style" class="method"><code>fn <a href="#method.style" class="fnname">style</a>(&'b self, state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> &'b <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#622-628" title="goto source code">[src]</a></h4><h4 id="method.batch" class="method"><code>fn <a href="#method.batch" class="fnname">batch</a>(&self, ctx: &<a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, for_state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> <a class="struct" href="../../../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#630-764" 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-Clone" class="impl"><code class="in-band">impl<'a> <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="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#283" 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="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#283" 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.build_def" class="method"><code>pub fn <a href="#method.build_def" class="fnname">build_def</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/widgets/button.rs.html#597-606" title="goto source code">[src]</a></h4><div class="docblock"><p>Shorthand method to build a default widget whose <code>action</code> is derived from the label's text.</p>
|
||||
</div><h4 id="method.style_mut" class="method"><code>fn <a href="#method.style_mut" class="fnname">style_mut</a>(&'b mut self, state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> &'b mut <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#610-616" title="goto source code">[src]</a></h4><h4 id="method.style" class="method"><code>fn <a href="#method.style" class="fnname">style</a>(&'b self, state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> &'b <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#618-624" title="goto source code">[src]</a></h4><h4 id="method.batch" class="method"><code>fn <a href="#method.batch" class="fnname">batch</a>(&self, ctx: &<a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, for_state: <a class="enum" href="../../../widgetry/enum.ControlState.html" title="enum widgetry::ControlState">ControlState</a>) -> <a class="struct" href="../../../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#626-760" 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-Clone" class="impl"><code class="in-band">impl<'a> <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="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#279" 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="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#279" 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-Debug" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#283" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#283" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Default" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl-Default" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#283" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.default" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> <a class="struct" href="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#283" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#279" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#279" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Default" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a href="#impl-Default" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#279" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.default" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> <a class="struct" href="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#279" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">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> <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="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'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> <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="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'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> <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="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'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> <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="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'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> <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="../../../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'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>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a 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>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a 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>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a 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>
|
||||
|
@ -1,16 +1,16 @@
|
||||
<!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 `ButtonStyle` struct in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, ButtonStyle"><title>widgetry::widgets::button::ButtonStyle - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><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='../../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Struct ButtonStyle</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.bg_color">bg_color</a><a href="#structfield.image">image</a><a href="#structfield.label">label</a><a href="#structfield.outline">outline</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-Debug">Debug</a><a href="#impl-Default">Default</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-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></div></div><p class="location"><a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a></p><script>window.sidebarCurrent = {name: "ButtonStyle", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/widgets/button.rs.html#298-303" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a>::<wbr><a class="struct" href="">ButtonStyle</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct ButtonStyle<'a> {
|
||||
<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/widgets/button.rs.html#294-299" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a>::<wbr><a class="struct" href="">ButtonStyle</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct ButtonStyle<'a> {
|
||||
image: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'a>>,
|
||||
label: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'a>>,
|
||||
outline: <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.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>,
|
||||
bg_color: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.image" class="structfield small-section-header"><a href="#structfield.image" class="anchor field"></a><code>image: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'a>></code></span><span id="structfield.label" class="structfield small-section-header"><a href="#structfield.label" class="anchor field"></a><code>label: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'a>></code></span><span id="structfield.outline" class="structfield small-section-header"><a href="#structfield.outline" class="anchor field"></a><code>outline: <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.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code></span><span id="structfield.bg_color" class="structfield small-section-header"><a href="#structfield.bg_color" class="anchor field"></a><code>bg_color: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</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> <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="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#297" 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="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#297" 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.image" class="structfield small-section-header"><a href="#structfield.image" class="anchor field"></a><code>image: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'a>></code></span><span id="structfield.label" class="structfield small-section-header"><a href="#structfield.label" class="anchor field"></a><code>label: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'a>></code></span><span id="structfield.outline" class="structfield small-section-header"><a href="#structfield.outline" class="anchor field"></a><code>outline: <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.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code></span><span id="structfield.bg_color" class="structfield small-section-header"><a href="#structfield.bg_color" class="anchor field"></a><code>bg_color: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</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> <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="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#293" 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="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#293" 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-Debug" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#297" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#297" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Default" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a href="#impl-Default" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#297" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.default" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#297" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#293" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#293" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Default" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a href="#impl-Default" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#293" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.default" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> <a class="struct" href="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#293" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">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> <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="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'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> <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="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'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> <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="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'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> <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="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'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> <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="../../../widgetry/widgets/button/struct.ButtonStyle.html" title="struct widgetry::widgets::button::ButtonStyle">ButtonStyle</a><'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>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a 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>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a 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>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a 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>
|
||||
|
@ -1,16 +1,16 @@
|
||||
<!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 `Image` struct in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, Image"><title>widgetry::widgets::button::Image - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><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='../../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Struct Image</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.color">color</a><a href="#structfield.content_mode">content_mode</a><a href="#structfield.dims">dims</a><a href="#structfield.path">path</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-Debug">Debug</a><a href="#impl-Default">Default</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-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></div></div><p class="location"><a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a></p><script>window.sidebarCurrent = {name: "Image", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/widgets/button.rs.html#768-773" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a>::<wbr><a class="struct" href="">Image</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct Image<'a> {
|
||||
<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/widgets/button.rs.html#764-769" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a>::<wbr><a class="struct" href="">Image</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct Image<'a> {
|
||||
path: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>,
|
||||
color: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>>,
|
||||
dims: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</a>>,
|
||||
content_mode: <a class="enum" href="../../../widgetry/enum.ContentMode.html" title="enum widgetry::ContentMode">ContentMode</a>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.path" class="structfield small-section-header"><a href="#structfield.path" class="anchor field"></a><code>path: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>></code></span><span id="structfield.color" class="structfield small-section-header"><a href="#structfield.color" class="anchor field"></a><code>color: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>></code></span><span id="structfield.dims" class="structfield small-section-header"><a href="#structfield.dims" class="anchor field"></a><code>dims: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</a>></code></span><span id="structfield.content_mode" class="structfield small-section-header"><a href="#structfield.content_mode" class="anchor field"></a><code>content_mode: <a class="enum" href="../../../widgetry/enum.ContentMode.html" title="enum widgetry::ContentMode">ContentMode</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> <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="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#767" 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="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#767" 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.path" class="structfield small-section-header"><a href="#structfield.path" class="anchor field"></a><code>path: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>></code></span><span id="structfield.color" class="structfield small-section-header"><a href="#structfield.color" class="anchor field"></a><code>color: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>></code></span><span id="structfield.dims" class="structfield small-section-header"><a href="#structfield.dims" class="anchor field"></a><code>dims: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</a>></code></span><span id="structfield.content_mode" class="structfield small-section-header"><a href="#structfield.content_mode" class="anchor field"></a><code>content_mode: <a class="enum" href="../../../widgetry/enum.ContentMode.html" title="enum widgetry::ContentMode">ContentMode</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> <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="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#763" 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="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#763" 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-Debug" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#767" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#767" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Default" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'a></code><a href="#impl-Default" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#767" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.default" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> <a class="struct" href="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#767" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#763" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#763" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Default" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'a></code><a href="#impl-Default" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#763" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.default" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> <a class="struct" href="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#763" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">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> <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="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'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> <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="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'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> <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="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'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> <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="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'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> <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="../../../widgetry/widgets/button/struct.Image.html" title="struct widgetry::widgets::button::Image">Image</a><'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>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a 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>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a 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>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a 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>
|
||||
|
@ -1,17 +1,17 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Label` struct in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, Label"><title>widgetry::widgets::button::Label - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><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='../../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Struct Label</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.color">color</a><a href="#structfield.font">font</a><a href="#structfield.font_size">font_size</a><a href="#structfield.styled_text">styled_text</a><a href="#structfield.text">text</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-Debug">Debug</a><a href="#impl-Default">Default</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-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></div></div><p class="location"><a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a></p><script>window.sidebarCurrent = {name: "Label", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/widgets/button.rs.html#776-782" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a>::<wbr><a class="struct" href="">Label</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct Label<'a> {
|
||||
<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/widgets/button.rs.html#772-778" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a>::<wbr><a class="struct" href="">Label</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct Label<'a> {
|
||||
text: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>,
|
||||
color: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>>,
|
||||
styled_text: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>>,
|
||||
font_size: <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>>,
|
||||
font: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../../widgetry/enum.Font.html" title="enum widgetry::Font">Font</a>>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.text" class="structfield small-section-header"><a href="#structfield.text" class="anchor field"></a><code>text: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>></code></span><span id="structfield.color" class="structfield small-section-header"><a href="#structfield.color" class="anchor field"></a><code>color: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>></code></span><span id="structfield.styled_text" class="structfield small-section-header"><a href="#structfield.styled_text" class="anchor field"></a><code>styled_text: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>></code></span><span id="structfield.font_size" class="structfield small-section-header"><a href="#structfield.font_size" class="anchor field"></a><code>font_size: <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><span id="structfield.font" class="structfield small-section-header"><a href="#structfield.font" class="anchor field"></a><code>font: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../../widgetry/enum.Font.html" title="enum widgetry::Font">Font</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> <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="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#775" 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="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#775" 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.text" class="structfield small-section-header"><a href="#structfield.text" class="anchor field"></a><code>text: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>></code></span><span id="structfield.color" class="structfield small-section-header"><a href="#structfield.color" class="anchor field"></a><code>color: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.Color.html" title="struct widgetry::Color">Color</a>></code></span><span id="structfield.styled_text" class="structfield small-section-header"><a href="#structfield.styled_text" class="anchor field"></a><code>styled_text: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../widgetry/struct.Text.html" title="struct widgetry::Text">Text</a>></code></span><span id="structfield.font_size" class="structfield small-section-header"><a href="#structfield.font_size" class="anchor field"></a><code>font_size: <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><span id="structfield.font" class="structfield small-section-header"><a href="#structfield.font" class="anchor field"></a><code>font: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../../widgetry/enum.Font.html" title="enum widgetry::Font">Font</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> <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="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#771" 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="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#771" 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-Debug" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#775" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#775" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Default" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'a></code><a href="#impl-Default" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#775" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.default" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> <a class="struct" href="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#775" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#771" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#771" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Default" class="impl"><code class="in-band">impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'a></code><a href="#impl-Default" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#771" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.default" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> <a class="struct" href="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#771" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">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> <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="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'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> <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="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'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> <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="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'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> <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="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'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> <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="../../../widgetry/widgets/button/struct.Label.html" title="struct widgetry::widgets::button::Label">Label</a><'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>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a 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>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a 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>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a 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>
|
||||
|
@ -1,19 +1,19 @@
|
||||
<!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 `MultiButton` struct in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, MultiButton"><title>widgetry::widgets::button::MultiButton - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><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='../../../widgetry/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Struct MultiButton</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.dims">dims</a><a href="#structfield.draw">draw</a><a href="#structfield.hitboxes">hitboxes</a><a href="#structfield.hovering">hovering</a><a href="#structfield.top_left">top_left</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-WidgetImpl">WidgetImpl</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class="location"><a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a></p><script>window.sidebarCurrent = {name: "MultiButton", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/widgets/button.rs.html#1060-1067" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a>::<wbr><a class="struct" href="">MultiButton</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct MultiButton {
|
||||
<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/widgets/button.rs.html#1056-1063" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a href="index.html">button</a>::<wbr><a class="struct" href="">MultiButton</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct MultiButton {
|
||||
draw: <a class="struct" href="../../../widgetry/struct.Drawable.html" title="struct widgetry::Drawable">Drawable</a>,
|
||||
hitboxes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</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>>,
|
||||
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>>,
|
||||
top_left: <a class="struct" href="../../../widgetry/struct.ScreenPt.html" title="struct widgetry::ScreenPt">ScreenPt</a>,
|
||||
dims: <a class="struct" href="../../../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</a>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.draw" class="structfield small-section-header"><a href="#structfield.draw" class="anchor field"></a><code>draw: <a class="struct" href="../../../widgetry/struct.Drawable.html" title="struct widgetry::Drawable">Drawable</a></code></span><span id="structfield.hitboxes" class="structfield small-section-header"><a href="#structfield.hitboxes" class="anchor field"></a><code>hitboxes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</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><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><span id="structfield.top_left" class="structfield small-section-header"><a href="#structfield.top_left" class="anchor field"></a><code>top_left: <a class="struct" href="../../../widgetry/struct.ScreenPt.html" title="struct widgetry::ScreenPt">ScreenPt</a></code></span><span id="structfield.dims" class="structfield small-section-header"><a href="#structfield.dims" class="anchor field"></a><code>dims: <a class="struct" href="../../../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</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="../../../widgetry/struct.MultiButton.html" title="struct widgetry::MultiButton">MultiButton</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#1069-1079" 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>(<br> ctx: &<a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, <br> batch: <a class="struct" href="../../../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a>, <br> hitboxes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</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>><br>) -> <a class="struct" href="../../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#1070-1078" 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-WidgetImpl" class="impl"><code class="in-band">impl <a class="trait" href="../../../widgetry/widgets/trait.WidgetImpl.html" title="trait widgetry::widgets::WidgetImpl">WidgetImpl</a> for <a class="struct" href="../../../widgetry/struct.MultiButton.html" title="struct widgetry::MultiButton">MultiButton</a></code><a href="#impl-WidgetImpl" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#1081-1125" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.get_dims" class="method hidden"><code>fn <a href="../../../widgetry/widgets/trait.WidgetImpl.html#tymethod.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/widgets/button.rs.html#1082-1084" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>What width and height does the widget occupy? If this changes, be sure to set
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.draw" class="structfield small-section-header"><a href="#structfield.draw" class="anchor field"></a><code>draw: <a class="struct" href="../../../widgetry/struct.Drawable.html" title="struct widgetry::Drawable">Drawable</a></code></span><span id="structfield.hitboxes" class="structfield small-section-header"><a href="#structfield.hitboxes" class="anchor field"></a><code>hitboxes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</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><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><span id="structfield.top_left" class="structfield small-section-header"><a href="#structfield.top_left" class="anchor field"></a><code>top_left: <a class="struct" href="../../../widgetry/struct.ScreenPt.html" title="struct widgetry::ScreenPt">ScreenPt</a></code></span><span id="structfield.dims" class="structfield small-section-header"><a href="#structfield.dims" class="anchor field"></a><code>dims: <a class="struct" href="../../../widgetry/struct.ScreenDims.html" title="struct widgetry::ScreenDims">ScreenDims</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="../../../widgetry/struct.MultiButton.html" title="struct widgetry::MultiButton">MultiButton</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#1065-1075" 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>(<br> ctx: &<a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, <br> batch: <a class="struct" href="../../../widgetry/struct.GeomBatch.html" title="struct widgetry::GeomBatch">GeomBatch</a>, <br> hitboxes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</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>><br>) -> <a class="struct" href="../../../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#1066-1074" 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-WidgetImpl" class="impl"><code class="in-band">impl <a class="trait" href="../../../widgetry/widgets/trait.WidgetImpl.html" title="trait widgetry::widgets::WidgetImpl">WidgetImpl</a> for <a class="struct" href="../../../widgetry/struct.MultiButton.html" title="struct widgetry::MultiButton">MultiButton</a></code><a href="#impl-WidgetImpl" class="anchor"></a><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#1077-1121" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.get_dims" class="method hidden"><code>fn <a href="../../../widgetry/widgets/trait.WidgetImpl.html#tymethod.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/widgets/button.rs.html#1078-1080" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>What width and height does the widget occupy? If this changes, be sure to set
|
||||
<code>redo_layout</code> to true in <code>event</code>. <a href="../../../widgetry/widgets/trait.WidgetImpl.html#tymethod.get_dims">Read more</a></p>
|
||||
</div><h4 id="method.set_pos" class="method hidden"><code>fn <a href="../../../widgetry/widgets/trait.WidgetImpl.html#tymethod.set_pos" class="fnname">set_pos</a>(&mut self, top_left: <a class="struct" href="../../../widgetry/struct.ScreenPt.html" title="struct widgetry::ScreenPt">ScreenPt</a>)</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#1086-1088" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Your widget's top left corner should be here. Handle mouse events and draw appropriately.</p>
|
||||
</div><h4 id="method.event" class="method hidden"><code>fn <a href="../../../widgetry/widgets/trait.WidgetImpl.html#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut <a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, output: &mut <a class="struct" href="../../../widgetry/struct.WidgetOutput.html" title="struct widgetry::WidgetOutput">WidgetOutput</a>)</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#1090-1114" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Your chance to react to an event. Any side effects outside of this widget are communicated
|
||||
</div><h4 id="method.set_pos" class="method hidden"><code>fn <a href="../../../widgetry/widgets/trait.WidgetImpl.html#tymethod.set_pos" class="fnname">set_pos</a>(&mut self, top_left: <a class="struct" href="../../../widgetry/struct.ScreenPt.html" title="struct widgetry::ScreenPt">ScreenPt</a>)</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#1082-1084" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Your widget's top left corner should be here. Handle mouse events and draw appropriately.</p>
|
||||
</div><h4 id="method.event" class="method hidden"><code>fn <a href="../../../widgetry/widgets/trait.WidgetImpl.html#tymethod.event" class="fnname">event</a>(&mut self, ctx: &mut <a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, output: &mut <a class="struct" href="../../../widgetry/struct.WidgetOutput.html" title="struct widgetry::WidgetOutput">WidgetOutput</a>)</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#1086-1110" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Your chance to react to an event. Any side effects outside of this widget are communicated
|
||||
through the output. <a href="../../../widgetry/widgets/trait.WidgetImpl.html#tymethod.event">Read more</a></p>
|
||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="../../../widgetry/widgets/trait.WidgetImpl.html#tymethod.draw" class="fnname">draw</a>(&self, g: &mut <a class="struct" href="../../../widgetry/struct.GfxCtx.html" title="struct widgetry::GfxCtx">GfxCtx</a><'_>)</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#1116-1124" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw the widget. Be sure to draw relative to the top-left specified by <code>set_pos</code>.</p>
|
||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="../../../widgetry/widgets/trait.WidgetImpl.html#tymethod.draw" class="fnname">draw</a>(&self, g: &mut <a class="struct" href="../../../widgetry/struct.GfxCtx.html" title="struct widgetry::GfxCtx">GfxCtx</a><'_>)</code><a class="srclink" href="../../../src/widgetry/widgets/button.rs.html#1112-1120" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw the widget. Be sure to draw relative to the top-left specified by <code>set_pos</code>.</p>
|
||||
</div><h4 id="method.can_restore" class="method hidden"><code>fn <a href="../../../widgetry/widgets/trait.WidgetImpl.html#method.can_restore" class="fnname">can_restore</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/widgets/mod.rs.html#54-56" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a new Panel is being created to replace an older one, all widgets have the chance to
|
||||
preserve state from the previous version. <a href="../../../widgetry/widgets/trait.WidgetImpl.html#method.can_restore">Read more</a></p>
|
||||
</div><h4 id="method.restore" class="method hidden"><code>fn <a href="../../../widgetry/widgets/trait.WidgetImpl.html#method.restore" class="fnname">restore</a>(&mut self, _: &mut <a class="struct" href="../../../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>, _prev: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../../widgetry/widgets/trait.WidgetImpl.html" title="trait widgetry::widgets::WidgetImpl">WidgetImpl</a>>)</code><a class="srclink" href="../../../src/widgetry/widgets/mod.rs.html#59-61" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Restore state from the previous version of this widget, with the same ID. Implementors must
|
||||
|
@ -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 `checkbox` mod in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, checkbox"><title>widgetry::widgets::checkbox - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><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 checkbox</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class="location"><a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a></p><script>window.sidebarCurrent = {name: "checkbox", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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/widgets/checkbox.rs.html#1-229" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a class="mod" href="">checkbox</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/widgets/checkbox.rs.html#1-239" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">widgetry</a>::<wbr><a href="../index.html">widgets</a>::<wbr><a class="mod" href="">checkbox</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.Checkbox.html" title="widgetry::widgets::checkbox::Checkbox struct">Checkbox</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
@ -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 id="default-settings"></script><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!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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#305-435" 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#305-441" 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,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 id="default-settings"></script><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!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></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-446" 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-452" 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