mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-26 07:52:05 +03:00
42 lines
35 KiB
HTML
42 lines
35 KiB
HTML
<!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 `StyledButtons` trait in crate `widgetry`."><meta name="keywords" content="rust, rustlang, rust-lang, StyledButtons"><title>widgetry::StyledButtons - 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 trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../widgetry/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Trait StyledButtons</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.btn_hotkey_light">btn_hotkey_light</a><a href="#tymethod.btn_plain_dark">btn_plain_dark</a><a href="#tymethod.btn_plain_light">btn_plain_light</a><a href="#tymethod.btn_primary_dark">btn_primary_dark</a><a href="#tymethod.btn_primary_light">btn_primary_light</a><a href="#tymethod.btn_secondary_dark">btn_secondary_dark</a><a href="#tymethod.btn_secondary_light">btn_secondary_light</a></div><a class="sidebar-title" href="#provided-methods">Provided Methods</a><div class="sidebar-links"><a href="#method.btn_back_dark">btn_back_dark</a><a href="#method.btn_back_light">btn_back_light</a><a href="#method.btn_close_widget">btn_close_widget</a><a href="#method.btn_plain_dark_icon">btn_plain_dark_icon</a><a href="#method.btn_plain_dark_text">btn_plain_dark_text</a><a href="#method.btn_plain_light_icon">btn_plain_light_icon</a><a href="#method.btn_plain_light_text">btn_plain_light_text</a><a href="#method.btn_popup_dark">btn_popup_dark</a><a href="#method.btn_popup_light">btn_popup_light</a><a href="#method.btn_primary_dark_dropdown">btn_primary_dark_dropdown</a><a href="#method.btn_primary_dark_icon">btn_primary_dark_icon</a><a href="#method.btn_primary_dark_icon_text">btn_primary_dark_icon_text</a><a href="#method.btn_primary_dark_text">btn_primary_dark_text</a><a href="#method.btn_primary_light_dropdown">btn_primary_light_dropdown</a><a href="#method.btn_primary_light_icon">btn_primary_light_icon</a><a href="#method.btn_primary_light_icon_text">btn_primary_light_icon_text</a><a href="#method.btn_primary_light_text">btn_primary_light_text</a><a href="#method.btn_secondary_dark_dropdown">btn_secondary_dark_dropdown</a><a href="#method.btn_secondary_dark_icon">btn_secondary_dark_icon</a><a href="#method.btn_secondary_dark_icon_text">btn_secondary_dark_icon_text</a><a href="#method.btn_secondary_dark_text">btn_secondary_dark_text</a><a href="#method.btn_secondary_light_dropdown">btn_secondary_light_dropdown</a><a href="#method.btn_secondary_light_icon">btn_secondary_light_icon</a><a href="#method.btn_secondary_light_icon_text">btn_secondary_light_icon_text</a><a href="#method.btn_secondary_light_text">btn_secondary_light_text</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class="location"><a href="index.html">widgetry</a></p><script>window.sidebarCurrent = {name: "StyledButtons", ty: "trait", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" 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/style/buttons.rs.html#4-131" title="goto source code">[src]</a></span><span class="in-band">Trait <a href="index.html">widgetry</a>::<wbr><a class="trait" href="">StyledButtons</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust trait">pub trait StyledButtons<'a> {
|
||
fn <a href="#tymethod.btn_primary_dark" class="fnname">btn_primary_dark</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a>;
|
||
<div class="item-spacer"></div> fn <a href="#tymethod.btn_secondary_dark" class="fnname">btn_secondary_dark</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a>;
|
||
<div class="item-spacer"></div> fn <a href="#tymethod.btn_primary_light" class="fnname">btn_primary_light</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a>;
|
||
<div class="item-spacer"></div> fn <a href="#tymethod.btn_secondary_light" class="fnname">btn_secondary_light</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a>;
|
||
<div class="item-spacer"></div> fn <a href="#tymethod.btn_plain_dark" class="fnname">btn_plain_dark</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a>;
|
||
<div class="item-spacer"></div> fn <a href="#tymethod.btn_plain_light" class="fnname">btn_plain_light</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a>;
|
||
<div class="item-spacer"></div> fn <a href="#tymethod.btn_hotkey_light" class="fnname">btn_hotkey_light</a>(&self, label: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, key: <a class="enum" href="../widgetry/enum.Key.html" title="enum widgetry::Key">Key</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a>;
|
||
|
||
fn <a href="#method.btn_primary_dark_text" class="fnname">btn_primary_dark_text</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_primary_dark_icon" class="fnname">btn_primary_dark_icon</a>(&self, image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_primary_dark_icon_text" class="fnname">btn_primary_dark_icon_text</a>(<br> &self, <br> image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br> ) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_secondary_dark_text" class="fnname">btn_secondary_dark_text</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_secondary_dark_icon" class="fnname">btn_secondary_dark_icon</a>(&self, image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_secondary_dark_icon_text" class="fnname">btn_secondary_dark_icon_text</a>(<br> &self, <br> image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br> ) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_primary_light_text" class="fnname">btn_primary_light_text</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_primary_light_icon" class="fnname">btn_primary_light_icon</a>(&self, image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_primary_light_icon_text" class="fnname">btn_primary_light_icon_text</a>(<br> &self, <br> image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br> ) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_secondary_light_text" class="fnname">btn_secondary_light_text</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_secondary_light_icon" class="fnname">btn_secondary_light_icon</a>(&self, image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_secondary_light_icon_text" class="fnname">btn_secondary_light_icon_text</a>(<br> &self, <br> image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br> ) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_plain_dark_text" class="fnname">btn_plain_dark_text</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_plain_dark_icon" class="fnname">btn_plain_dark_icon</a>(&self, image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_plain_light_text" class="fnname">btn_plain_light_text</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_plain_light_icon" class="fnname">btn_plain_light_icon</a>(&self, image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_back_light" class="fnname">btn_back_light</a>(&self, title: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_back_dark" class="fnname">btn_back_dark</a>(&self, title: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_primary_light_dropdown" class="fnname">btn_primary_light_dropdown</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_secondary_light_dropdown" class="fnname">btn_secondary_light_dropdown</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_primary_dark_dropdown" class="fnname">btn_primary_dark_dropdown</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_secondary_dark_dropdown" class="fnname">btn_secondary_dark_dropdown</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_popup_light" class="fnname">btn_popup_light</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_popup_dark" class="fnname">btn_popup_dark</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a> { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.btn_close_widget" class="fnname">btn_close_widget</a>(&self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a> { ... }
|
||
}</pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><h3 id="tymethod.btn_primary_dark" class="method"><code>fn <a href="#tymethod.btn_primary_dark" class="fnname">btn_primary_dark</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="tymethod.btn_secondary_dark" class="method"><code>fn <a href="#tymethod.btn_secondary_dark" class="fnname">btn_secondary_dark</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="tymethod.btn_primary_light" class="method"><code>fn <a href="#tymethod.btn_primary_light" class="fnname">btn_primary_light</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="tymethod.btn_secondary_light" class="method"><code>fn <a href="#tymethod.btn_secondary_light" class="fnname">btn_secondary_light</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="tymethod.btn_plain_dark" class="method"><code>fn <a href="#tymethod.btn_plain_dark" class="fnname">btn_plain_dark</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="tymethod.btn_plain_light" class="method"><code>fn <a href="#tymethod.btn_plain_light" class="fnname">btn_plain_light</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="tymethod.btn_hotkey_light" class="method"><code>fn <a href="#tymethod.btn_hotkey_light" class="fnname">btn_hotkey_light</a>(&self, label: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, key: <a class="enum" href="../widgetry/enum.Key.html" title="enum widgetry::Key">Key</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3></div><span class="loading-content">Loading content...</span><h2 id="provided-methods" class="small-section-header">Provided methods<a href="#provided-methods" class="anchor"></a></h2><div class="methods"><h3 id="method.btn_primary_dark_text" class="method"><code>fn <a href="#method.btn_primary_dark_text" class="fnname">btn_primary_dark_text</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_primary_dark_icon" class="method"><code>fn <a href="#method.btn_primary_dark_icon" class="fnname">btn_primary_dark_icon</a>(&self, image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_primary_dark_icon_text" class="method"><code>fn <a href="#method.btn_primary_dark_icon_text" class="fnname">btn_primary_dark_icon_text</a>(<br> &self, <br> image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_secondary_dark_text" class="method"><code>fn <a href="#method.btn_secondary_dark_text" class="fnname">btn_secondary_dark_text</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_secondary_dark_icon" class="method"><code>fn <a href="#method.btn_secondary_dark_icon" class="fnname">btn_secondary_dark_icon</a>(&self, image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_secondary_dark_icon_text" class="method"><code>fn <a href="#method.btn_secondary_dark_icon_text" class="fnname">btn_secondary_dark_icon_text</a>(<br> &self, <br> image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_primary_light_text" class="method"><code>fn <a href="#method.btn_primary_light_text" class="fnname">btn_primary_light_text</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_primary_light_icon" class="method"><code>fn <a href="#method.btn_primary_light_icon" class="fnname">btn_primary_light_icon</a>(&self, image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_primary_light_icon_text" class="method"><code>fn <a href="#method.btn_primary_light_icon_text" class="fnname">btn_primary_light_icon_text</a>(<br> &self, <br> image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_secondary_light_text" class="method"><code>fn <a href="#method.btn_secondary_light_text" class="fnname">btn_secondary_light_text</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_secondary_light_icon" class="method"><code>fn <a href="#method.btn_secondary_light_icon" class="fnname">btn_secondary_light_icon</a>(&self, image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_secondary_light_icon_text" class="method"><code>fn <a href="#method.btn_secondary_light_icon_text" class="fnname">btn_secondary_light_icon_text</a>(<br> &self, <br> image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_plain_dark_text" class="method"><code>fn <a href="#method.btn_plain_dark_text" class="fnname">btn_plain_dark_text</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_plain_dark_icon" class="method"><code>fn <a href="#method.btn_plain_dark_icon" class="fnname">btn_plain_dark_icon</a>(&self, image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_plain_light_text" class="method"><code>fn <a href="#method.btn_plain_light_text" class="fnname">btn_plain_light_text</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_plain_light_icon" class="method"><code>fn <a href="#method.btn_plain_light_icon" class="fnname">btn_plain_light_icon</a>(&self, image_path: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_back_light" class="method"><code>fn <a href="#method.btn_back_light" class="fnname">btn_back_light</a>(&self, title: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><div class="docblock"><p>title: name of previous screen, which you'll return to</p>
|
||
</div><h3 id="method.btn_back_dark" class="method"><code>fn <a href="#method.btn_back_dark" class="fnname">btn_back_dark</a>(&self, title: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><div class="docblock"><p>title: name of previous screen, which you'll return to</p>
|
||
</div><h3 id="method.btn_primary_light_dropdown" class="method"><code>fn <a href="#method.btn_primary_light_dropdown" class="fnname">btn_primary_light_dropdown</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_secondary_light_dropdown" class="method"><code>fn <a href="#method.btn_secondary_light_dropdown" class="fnname">btn_secondary_light_dropdown</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_primary_dark_dropdown" class="method"><code>fn <a href="#method.btn_primary_dark_dropdown" class="fnname">btn_primary_dark_dropdown</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_secondary_dark_dropdown" class="method"><code>fn <a href="#method.btn_secondary_dark_dropdown" class="fnname">btn_secondary_dark_dropdown</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_popup_light" class="method"><code>fn <a href="#method.btn_popup_light" class="fnname">btn_popup_light</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_popup_dark" class="method"><code>fn <a href="#method.btn_popup_dark" class="fnname">btn_popup_dark</a>(&self, text: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code></h3><h3 id="method.btn_close_widget" class="method"><code>fn <a href="#method.btn_close_widget" class="fnname">btn_close_widget</a>(&self, ctx: &<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a><'_>) -> <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code></h3><div class="docblock"><p>An "X" button to close the current state. Bound to the escape key and aligned to the right,
|
||
usually after a title.</p>
|
||
</div></div><span class="loading-content">Loading content...</span><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><h3 id="impl-StyledButtons%3C%27a%3E" class="impl"><code class="in-band">impl<'a> StyledButtons<'a> for <a class="struct" href="../widgetry/struct.Style.html" title="struct widgetry::Style">Style</a></code><a href="#impl-StyledButtons%3C%27a%3E" class="anchor"></a><a class="srclink" href="../src/widgetry/style/buttons.rs.html#134-189" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.btn_hotkey_light" class="method hidden"><code>fn <a href="#method.btn_hotkey_light" class="fnname">btn_hotkey_light</a>(&self, label: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, key: <a class="enum" href="../widgetry/enum.Key.html" title="enum widgetry::Key">Key</a>) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#135-158" title="goto source code">[src]</a></h4><h4 id="method.btn_primary_dark" class="method hidden"><code>fn <a href="#method.btn_primary_dark" class="fnname">btn_primary_dark</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#160-163" title="goto source code">[src]</a></h4><h4 id="method.btn_secondary_dark" class="method hidden"><code>fn <a href="#method.btn_secondary_dark" class="fnname">btn_secondary_dark</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#165-168" title="goto source code">[src]</a></h4><h4 id="method.btn_plain_dark" class="method hidden"><code>fn <a href="#method.btn_plain_dark" class="fnname">btn_plain_dark</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#170-173" title="goto source code">[src]</a></h4><h4 id="method.btn_primary_light" class="method hidden"><code>fn <a href="#method.btn_primary_light" class="fnname">btn_primary_light</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#175-178" title="goto source code">[src]</a></h4><h4 id="method.btn_secondary_light" class="method hidden"><code>fn <a href="#method.btn_secondary_light" class="fnname">btn_secondary_light</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#180-183" title="goto source code">[src]</a></h4><h4 id="method.btn_plain_light" class="method hidden"><code>fn <a href="#method.btn_plain_light" class="fnname">btn_plain_light</a>(&self) -> <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a><'a></code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#185-188" title="goto source code">[src]</a></h4></div></div><span class="loading-content">Loading content...</span><script type="text/javascript" src="../implementors/widgetry/trait.StyledButtons.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "widgetry";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html> |