abstreet/rustdoc/widgetry/trait.StyledButtons.html

66 lines
57 KiB
HTML
Raw Normal View History

<!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">&#9776;</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_outline_dark">btn_outline_dark</a><a href="#tymethod.btn_outline_destructive">btn_outline_destructive</a><a href="#tymethod.btn_outline_light">btn_outline_light</a><a href="#tymethod.btn_plain_dark">btn_plain_dark</a><a href="#tymethod.btn_plain_destructive">btn_plain_destructive</a><a href="#tymethod.btn_plain_light">btn_plain_light</a><a href="#tymethod.btn_solid_dark">btn_solid_dark</a><a href="#tymethod.btn_solid_dark_hotkey">btn_solid_dark_hotkey</a><a href="#tymethod.btn_solid_destructive">btn_solid_destructive</a><a href="#tymethod.btn_solid_light">btn_solid_light</a><a href="#tymethod.btn_solid_light_hotkey">btn_solid_light_hotkey</a></div><a class="sidebar-title" href="#provided-methods">Provided Methods</a><div class="sidebar-links"><a href="#method.btn_close">btn_close</a><a href="#method.btn_close_widget">btn_close_widget</a><a href="#method.btn_dark_back">btn_dark_back</a><a href="#method.btn_light_back">btn_light_back</a><a href="#method.btn_next">btn_next</a><a href="#method.btn_outline_dark_dropdown">btn_outline_dark_dropdown</a><a href="#method.btn_outline_dark_icon">btn_outline_dark_icon</a><a href="#method.btn_outline_dark_icon_text">btn_outline_dark_icon_text</a><a href="#method.btn_outline_dark_popup">btn_outline_dark_popup</a><a href="#method.btn_outline_dark_text">btn_outline_dark_text</a><a href="#method.btn_outline_destructive_icon">btn_outline_destructive_icon</a><a href="#method.btn_outline_destructive_icon_text">btn_outline_destructive_icon_text</a><a href="#method.btn_outline_destructive_text">btn_outline_destructive_text</a><a href="#method.btn_outline_light_dropdown">btn_outline_light_dropdown</a><a href="#method.btn_outline_light_icon">btn_outline_light_icon</a><a href="#method.btn_outline_light_icon_text">btn_outline_light_icon_text</a><a href="#method.btn_outline_light_popup">btn_outline_light_popup</a><a href="#method.btn_outline_light_text">btn_outline_light_text</a><a href="#method.btn_plain_dark_icon">btn_plain_dark_icon</a><a href="#method.btn_plain_dark_icon_text">btn_plain_dark_icon_text</a><a href="#method.btn_plain_dark_text">btn_plain_dark_text</a><a href="#method.btn_plain_destructive_icon">btn_plain_destructive_icon</a><a href="#method.btn_plain_destructive_text">btn_plain_destructive_text</a><a href="#method.btn_plain_light_icon">btn_plain_light_icon</a><a href="#method.btn_plain_light_icon_bytes">btn_plain_light_icon_bytes</a><a href="#method.btn_plain_light_icon_text">btn_plain_light_icon_text</a><a href="#method.btn_plain_light_text">btn_plain_light_text</a><a href="#method.btn_prev">btn_prev</a><a href="#method.btn_solid_dark_dropdown">btn_solid_dark_dropdown</a><a href="#method.btn_solid_dark_icon">btn_solid_dark_icon</a><a href="#method.btn_solid_dark_icon_text">btn_solid_dark_icon_text</a><a href="#method.btn_solid_dark_text">btn_solid_dark_text</a><a href="#method.btn_solid_destructive_icon">btn_solid_destructive_icon</a><a href="#method.btn_solid_destructive_icon_text">btn_solid_destructive_icon_text</a><a href="#method.btn_solid_destructive_text">btn_solid_destructive_text</a><a href="#method.btn_solid_light_dropdown">btn_solid_light_dropdown</a><a href="#method.btn_solid_light_icon">btn_solid_light_icon</a><a href="#method.btn_solid_light_icon_bytes">btn_solid_light_icon_bytes</a><a href="#method.btn_solid_light_icon_text">btn_solid_light_icon_text</a><a h
<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">&#x2212;</span>]</a></span><a class="srclink" href="../src/widgetry/style/buttons.rs.html#8-206" 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&lt;'a&gt; {
fn <a href="#tymethod.btn_solid_dark" class="fnname">btn_solid_dark</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.btn_outline_dark" class="fnname">btn_outline_dark</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.btn_solid_light" class="fnname">btn_solid_light</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.btn_outline_light" class="fnname">btn_outline_light</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.btn_plain_dark" class="fnname">btn_plain_dark</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.btn_plain_light" class="fnname">btn_plain_light</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.btn_plain_destructive" class="fnname">btn_plain_destructive</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.btn_solid_destructive" class="fnname">btn_solid_destructive</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.btn_outline_destructive" class="fnname">btn_outline_destructive</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.btn_solid_light_hotkey" class="fnname">btn_solid_light_hotkey</a>(&amp;self, label: &amp;<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>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.btn_solid_dark_hotkey" class="fnname">btn_solid_dark_hotkey</a>(&amp;self, label: &amp;<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>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;;
fn <a href="#method.btn_solid_dark_text" class="fnname">btn_solid_dark_text</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_solid_dark_icon" class="fnname">btn_solid_dark_icon</a>(&amp;self, image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_solid_dark_icon_text" class="fnname">btn_solid_dark_icon_text</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_outline_dark_text" class="fnname">btn_outline_dark_text</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_outline_dark_icon" class="fnname">btn_outline_dark_icon</a>(&amp;self, image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_outline_dark_icon_text" class="fnname">btn_outline_dark_icon_text</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_solid_light_text" class="fnname">btn_solid_light_text</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_solid_light_icon" class="fnname">btn_solid_light_icon</a>(&amp;self, image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_solid_light_icon_bytes" class="fnname">btn_solid_light_icon_bytes</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;labeled_bytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>&amp;'a <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.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_solid_light_icon_text" class="fnname">btn_solid_light_icon_text</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_outline_light_text" class="fnname">btn_outline_light_text</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_outline_light_icon" class="fnname">btn_outline_light_icon</a>(&amp;self, image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_outline_light_icon_text" class="fnname">btn_outline_light_icon_text</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_plain_dark_text" class="fnname">btn_plain_dark_text</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_plain_dark_icon" class="fnname">btn_plain_dark_icon</a>(&amp;self, image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_plain_dark_icon_text" class="fnname">btn_plain_dark_icon_text</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_plain_light_text" class="fnname">btn_plain_light_text</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_plain_light_icon" class="fnname">btn_plain_light_icon</a>(&amp;self, image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_plain_light_icon_bytes" class="fnname">btn_plain_light_icon_bytes</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;labeled_bytes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>&amp;'a <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.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_plain_light_icon_text" class="fnname">btn_plain_light_icon_text</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_plain_destructive_text" class="fnname">btn_plain_destructive_text</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_plain_destructive_icon" class="fnname">btn_plain_destructive_icon</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_solid_destructive_text" class="fnname">btn_solid_destructive_text</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_solid_destructive_icon" class="fnname">btn_solid_destructive_icon</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_solid_destructive_icon_text" class="fnname">btn_solid_destructive_icon_text</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_outline_destructive_text" class="fnname">btn_outline_destructive_text</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_outline_destructive_icon" class="fnname">btn_outline_destructive_icon</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_outline_destructive_icon_text" class="fnname">btn_outline_destructive_icon_text</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_light_back" class="fnname">btn_light_back</a>(&amp;self, title: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_dark_back" class="fnname">btn_dark_back</a>(&amp;self, title: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_solid_light_dropdown" class="fnname">btn_solid_light_dropdown</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_outline_light_dropdown" class="fnname">btn_outline_light_dropdown</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_solid_dark_dropdown" class="fnname">btn_solid_dark_dropdown</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_outline_dark_dropdown" class="fnname">btn_outline_dark_dropdown</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_outline_light_popup" class="fnname">btn_outline_light_popup</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_outline_dark_popup" class="fnname">btn_outline_dark_popup</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_next" class="fnname">btn_next</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_prev" class="fnname">btn_prev</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_close" class="fnname">btn_close</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.btn_close_widget" class="fnname">btn_close_widget</a>(&amp;self, ctx: &amp;<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a>&lt;'_&gt;) -&gt; <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_solid_dark" class="method"><code>fn <a href="#tymethod.btn_solid_dark" class="fnname">btn_solid_dark</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="tymethod.btn_outline_dark" class="method"><code>fn <a href="#tymethod.btn_outline_dark" class="fnname">btn_outline_dark</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="tymethod.btn_solid_light" class="method"><code>fn <a href="#tymethod.btn_solid_light" class="fnname">btn_solid_light</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="tymethod.btn_outline_light" class="method"><code>fn <a href="#tymethod.btn_outline_light" class="fnname">btn_outline_light</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="tymethod.btn_plain_dark" class="method"><code>fn <a href="#tymethod.btn_plain_dark" class="fnname">btn_plain_dark</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="tymethod.btn_plain_light" class="method"><code>fn <a href="#tymethod.btn_plain_light" class="fnname">btn_plain_light</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="tymethod.btn_plain_destructive" class="method"><code>fn <a href="#tymethod.btn_plain_destructive" class="fnname">btn_plain_destructive</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="tymethod.btn_solid_destructive" class="method"><code>fn <a href="#tymethod.btn_solid_destructive" class="fnname">btn_solid_destructive</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="tymethod.btn_outline_destructive" class="method"><code>fn <a href="#tymethod.btn_outline_destructive" class="fnname">btn_outline_destructive</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="tymethod.btn_solid_light_hotkey" class="method"><code>fn <a href="#tymethod.btn_solid_light_hotkey" class="fnname">btn_solid_light_hotkey</a>(&amp;self, label: &amp;<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>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><div class="docblock"><p>A button which renders its hotkey for discoverability along with its label.</p>
</div><h3 id="tymethod.btn_solid_dark_hotkey" class="method"><code>fn <a href="#tymethod.btn_solid_dark_hotkey" class="fnname">btn_solid_dark_hotkey</a>(&amp;self, label: &amp;<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>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><div class="docblock"><p>A button which renders its hotkey for discoverability along with its label.</p>
</div></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_solid_dark_text" class="method"><code>fn <a href="#method.btn_solid_dark_text" class="fnname">btn_solid_dark_text</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="method.btn_solid_dark_icon" class="method"><code>fn <a href="#method.btn_solid_dark_icon" class="fnname">btn_solid_dark_icon</a>(&amp;self, image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="method.btn_solid_dark_icon_text" class="method"><code>fn <a href="#method.btn_solid_dark_icon_text" class="fnname">btn_solid_dark_icon_text</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="method.btn_outline_dark_text" class="method"><code>fn <a href="#method.btn_outline_dark_text" class="fnname">btn_outline_dark_text</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="method.btn_outline_dark_icon" class="method"><code>fn <a href="#method.btn_outline_dark_icon" class="fnname">btn_outline_dark_icon</a>(&amp;self, image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="method.btn_outline_dark_icon_text" class="method"><code>fn <a href="#method.btn_outline_dark_icon_text" class="fnname">btn_outline_dark_icon_text</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="method.btn_solid_light_text" class="method"><code>fn <a href="#method.btn_solid_light_text" class="fnname">btn_solid_light_text</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="method.btn_solid_light_icon" class="method"><code>fn <a href="#method.btn_solid_light_icon" class="fnname">btn_solid_light_icon</a>(&amp;self, image_path: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="method.btn_solid_light_icon_bytes" class="method"><code>fn <a href="#method.btn_solid_light_icon_bytes" class="fnname">btn_solid_light_icon_bytes</a>(<br>&nbsp;&nbsp;&nbsp;&nbs
</div><h3 id="method.btn_dark_back" class="method"><code>fn <a href="#method.btn_dark_back" class="fnname">btn_dark_back</a>(&amp;self, title: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><div class="docblock"><p>title: name of previous screen, which you'll return to</p>
</div><h3 id="method.btn_solid_light_dropdown" class="method"><code>fn <a href="#method.btn_solid_light_dropdown" class="fnname">btn_solid_light_dropdown</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="method.btn_outline_light_dropdown" class="method"><code>fn <a href="#method.btn_outline_light_dropdown" class="fnname">btn_outline_light_dropdown</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="method.btn_solid_dark_dropdown" class="method"><code>fn <a href="#method.btn_solid_dark_dropdown" class="fnname">btn_solid_dark_dropdown</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="method.btn_outline_dark_dropdown" class="method"><code>fn <a href="#method.btn_outline_dark_dropdown" class="fnname">btn_outline_dark_dropdown</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="method.btn_outline_light_popup" class="method"><code>fn <a href="#method.btn_outline_light_popup" class="fnname">btn_outline_light_popup</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="method.btn_outline_dark_popup" class="method"><code>fn <a href="#method.btn_outline_dark_popup" class="fnname">btn_outline_dark_popup</a>(&amp;self, text: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><h3 id="method.btn_next" class="method"><code>fn <a href="#method.btn_next" class="fnname">btn_next</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><div class="docblock"><p>A right facing caret, like &quot;&gt;&quot;, suitable for paging to the &quot;next&quot; set of results</p>
</div><h3 id="method.btn_prev" class="method"><code>fn <a href="#method.btn_prev" class="fnname">btn_prev</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><div class="docblock"><p>A left facing caret, like &quot;&lt;&quot;, suitable for paging to the &quot;next&quot; set of results</p>
</div><h3 id="method.btn_close" class="method"><code>fn <a href="#method.btn_close" class="fnname">btn_close</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code></h3><div class="docblock"><p>An &quot;X&quot; button to close the current state. Bound to the escape key.</p>
</div><h3 id="method.btn_close_widget" class="method"><code>fn <a href="#method.btn_close_widget" class="fnname">btn_close_widget</a>(&amp;self, ctx: &amp;<a class="struct" href="../widgetry/struct.EventCtx.html" title="struct widgetry::EventCtx">EventCtx</a>&lt;'_&gt;) -&gt; <a class="struct" href="../widgetry/struct.Widget.html" title="struct widgetry::Widget">Widget</a></code></h3><div class="docblock"><p>An &quot;X&quot; 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&lt;'a&gt; StyledButtons&lt;'a&gt; 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#210-254" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.btn_solid_dark" class="method hidden"><code>fn <a href="#method.btn_solid_dark" class="fnname">btn_solid_dark</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#211-213" title="goto source code">[src]</a></h4><h4 id="method.btn_outline_dark" class="method hidden"><code>fn <a href="#method.btn_outline_dark" class="fnname">btn_outline_dark</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#215-217" 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>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#219-221" title="goto source code">[src]</a></h4><h4 id="method.btn_solid_light" class="method hidden"><code>fn <a href="#method.btn_solid_light" class="fnname">btn_solid_light</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#223-225" title="goto source code">[src]</a></h4><h4 id="method.btn_outline_light" class="method hidden"><code>fn <a href="#method.btn_outline_light" class="fnname">btn_outline_light</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#227-229" 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>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#231-233" title="goto source code">[src]</a></h4><h4 id="method.btn_plain_destructive" class="method hidden"><code>fn <a href="#method.btn_plain_destructive" class="fnname">btn_plain_destructive</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#235-237" title="goto source code">[src]</a></h4><h4 id="method.btn_solid_destructive" class="method hidden"><code>fn <a href="#method.btn_solid_destructive" class="fnname">btn_solid_destructive</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct widgetry::ButtonBuilder">ButtonBuilder</a>&lt;'a&gt;</code><a class="srclink" href="../src/widgetry/style/buttons.rs.html#239-241" title="goto source code">[src]</a></h4><h4 id="method.btn_outline_destructive" class="method hidden"><code>fn <a href="#method.btn_outline_destructive" class="fnname">btn_outline_destructive</a>(&amp;self) -&gt; <a class="struct" href="../widgetry/struct.ButtonBuilder.html" title="struct wi