2021-01-19 21:27:33 +03:00
<!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" >
2021-02-23 22:59:26 +03:00
< 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_outline" > btn_outline< / a > < a href = "#tymethod.btn_outline_destructive" > btn_outline_destructive< / a > < a href = "#tymethod.btn_plain" > btn_plain< / a > < a href = "#tymethod.btn_plain_destructive" > btn_plain_destructive< / a > < a href = "#tymethod.btn_solid" > btn_solid< / a > < a href = "#tymethod.btn_solid_destructive" > btn_solid_destructive< / a > < a href = "#tymethod.btn_solid_floating" > btn_solid_floating< / a > < / div > < a class = "sidebar-title" href = "#provided-methods" > Provided Methods< / a > < div class = "sidebar-links" > < a href = "#method.btn_back" > btn_back< / a > < a href = "#method.btn_close" > btn_close< / a > < a href = "#method.btn_close_widget" > btn_close_widget< / a > < a href = "#method.btn_next" > btn_next< / 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_dropdown" > btn_outline_dropdown< / a > < a href = "#method.btn_outline_icon" > btn_outline_icon< / a > < a href = "#method.btn_outline_icon_text" > btn_outline_icon_text< / a > < a href = "#method.btn_outline_popup" > btn_outline_popup< / a > < a href = "#method.btn_outline_text" > btn_outline_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_icon" > btn_plain_icon< / a > < a href = "#method.btn_plain_icon_bytes" > btn_plain_icon_bytes< / a > < a href = "#method.btn_plain_icon_text" > btn_plain_icon_text< / a > < a href = "#method.btn_plain_text" > btn_plain_text< / a > < a href = "#method.btn_prev" > btn_prev< / 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_dropdown" > btn_solid_dropdown< / a > < a href = "#method.btn_solid_icon" > btn_solid_icon< / a > < a href = "#method.btn_solid_icon_bytes" > btn_solid_icon_bytes< / a > < a href = "#method.btn_solid_icon_text" > btn_solid_icon_text< / a > < a href = "#method.btn_solid_text" > btn_solid_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 > < button type = "button" class = "help-button" > ?< / button >
< 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#8-143" 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_plain" class = "fnname" > btn_plain< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> ;
< div class = "item-spacer" > < / div > fn < a href = "#tymethod.btn_outline" class = "fnname" > btn_outline< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> ;
< div class = "item-spacer" > < / div > fn < a href = "#tymethod.btn_solid" class = "fnname" > btn_solid< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> ;
< div class = "item-spacer" > < / div > fn < a href = "#tymethod.btn_solid_floating" class = "fnname" > btn_solid_floating< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> ;
2021-02-11 21:43:41 +03:00
< div class = "item-spacer" > < / div > fn < a href = "#tymethod.btn_plain_destructive" class = "fnname" > btn_plain_destructive< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> ;
< div class = "item-spacer" > < / div > fn < a href = "#tymethod.btn_solid_destructive" class = "fnname" > btn_solid_destructive< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> ;
< div class = "item-spacer" > < / div > fn < a href = "#tymethod.btn_outline_destructive" class = "fnname" > btn_outline_destructive< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> ;
2021-01-19 21:27:33 +03:00
2021-02-23 22:59:26 +03:00
fn < a href = "#method.btn_plain_text" class = "fnname" > btn_plain_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_plain_icon" class = "fnname" > btn_plain_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_plain_icon_bytes" class = "fnname" > btn_plain_icon_bytes< / a > (< br > & self, < br > labeled_bytes: < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.tuple.html" > (< / a > & '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" > & '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 > ) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_plain_icon_text" class = "fnname" > btn_plain_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_outline_text" class = "fnname" > btn_outline_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_outline_icon" class = "fnname" > btn_outline_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_outline_icon_text" class = "fnname" > btn_outline_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_solid_text" class = "fnname" > btn_solid_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_solid_icon" class = "fnname" > btn_solid_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_solid_icon_bytes" class = "fnname" > btn_solid_icon_bytes< / a > (< br > & self, < br > labeled_bytes: < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.tuple.html" > (< / a > & '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" > & '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 > ) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_solid_icon_text" class = "fnname" > btn_solid_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
2021-02-11 21:43:41 +03:00
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_plain_destructive_text" class = "fnname" > btn_plain_destructive_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_plain_destructive_icon" class = "fnname" > btn_plain_destructive_icon< / a > (< br > & self, < br > image_path: & 'a < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.str.html" > str< / a > < br > ) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_solid_destructive_text" class = "fnname" > btn_solid_destructive_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_solid_destructive_icon" class = "fnname" > btn_solid_destructive_icon< / a > (< br > & self, < br > image_path: & 'a < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.str.html" > str< / a > < br > ) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_solid_destructive_icon_text" class = "fnname" > btn_solid_destructive_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_outline_destructive_text" class = "fnname" > btn_outline_destructive_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_outline_destructive_icon" class = "fnname" > btn_outline_destructive_icon< / a > (< br > & self, < br > image_path: & 'a < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.str.html" > str< / a > < br > ) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_outline_destructive_icon_text" class = "fnname" > btn_outline_destructive_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
2021-02-23 22:59:26 +03:00
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_back" class = "fnname" > btn_back< / 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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_outline_dropdown" class = "fnname" > btn_outline_dropdown< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_solid_dropdown" class = "fnname" > btn_solid_dropdown< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_outline_popup" class = "fnname" > btn_outline_popup< / 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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
2021-02-11 21:43:41 +03:00
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_next" class = "fnname" > btn_next< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_prev" class = "fnname" > btn_prev< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> { ... }
< div class = "item-spacer" > < / div > fn < a href = "#method.btn_close" class = "fnname" > btn_close< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::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/event_ctx/struct.EventCtx.html" title = "struct widgetry::event_ctx::EventCtx" > EventCtx< / a > < '_> ) -> < a class = "struct" href = "../widgetry/widgets/struct.Widget.html" title = "struct widgetry::widgets::Widget" > Widget< / a > { ... }
2021-02-23 22:59:26 +03:00
}< / 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_plain" class = "method" > < code > fn < a href = "#tymethod.btn_plain" class = "fnname" > btn_plain< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#9" title = "goto source code" > [src]< / a > < / h3 > < h3 id = "tymethod.btn_outline" class = "method" > < code > fn < a href = "#tymethod.btn_outline" class = "fnname" > btn_outline< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#26" title = "goto source code" > [src]< / a > < / h3 > < h3 id = "tymethod.btn_solid" class = "method" > < code > fn < a href = "#tymethod.btn_solid" class = "fnname" > btn_solid< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#40" title = "goto source code" > [src]< / a > < / h3 > < h3 id = "tymethod.btn_solid_floating" class = "method" > < code > fn < a href = "#tymethod.btn_solid_floating" class = "fnname" > btn_solid_floating< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#41" title = "goto source code" > [src]< / a > < / h3 > < h3 id = "tymethod.btn_plain_destructive" class = "method" > < code > fn < a href = "#tymethod.btn_plain_destructive" class = "fnname" > btn_plain_destructive< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#59" title = "goto source code" > [src]< / a > < / h3 > < h3 id = "tymethod.btn_solid_destructive" class = "method" > < code > fn < a href = "#tymethod.btn_solid_destructive" class = "fnname" > btn_solid_destructive< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#67" title = "goto source code" > [src]< / a > < / h3 > < h3 id = "tymethod.btn_outline_destructive" class = "method" > < code > fn < a href = "#tymethod.btn_outline_destructive" class = "fnname" > btn_outline_destructive< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#85" title = "goto source code" > [src]< / a > < / 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_plain_text" class = "method" > < code > fn < a href = "#method.btn_plain_text" class = "fnname" > btn_plain_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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#10-12" title = "goto source code" > [src]< / a > < / h3 > < h3 id = "method.btn_plain_icon" class = "method" > < code > fn < a href = "#method.btn_plain_icon" class = "fnname" > btn_plain_icon< / a > (& self, image_path: & 'a < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.str.html" > str< / a > ) -&
< / div > < h3 id = "method.btn_outline_dropdown" class = "method" > < code > fn < a href = "#method.btn_outline_dropdown" class = "fnname" > btn_outline_dropdown< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#110-112" title = "goto source code" > [src]< / a > < / h3 > < h3 id = "method.btn_solid_dropdown" class = "method" > < code > fn < a href = "#method.btn_solid_dropdown" class = "fnname" > btn_solid_dropdown< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#114-116" title = "goto source code" > [src]< / a > < / h3 > < h3 id = "method.btn_outline_popup" class = "method" > < code > fn < a href = "#method.btn_outline_popup" class = "fnname" > btn_outline_popup< / 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/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#118-120" title = "goto source code" > [src]< / a > < / h3 > < h3 id = "method.btn_next" class = "method" > < code > fn < a href = "#method.btn_next" class = "fnname" > btn_next< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#123-125" title = "goto source code" > [src]< / a > < / h3 > < div class = "docblock" > < p > A right facing caret, like " > " , suitable for paging to the " next" set of results< / p >
< / div > < h3 id = "method.btn_prev" class = "method" > < code > fn < a href = "#method.btn_prev" class = "fnname" > btn_prev< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#128-130" title = "goto source code" > [src]< / a > < / h3 > < div class = "docblock" > < p > A left facing caret, like " < " , suitable for paging to the " next" set of results< / p >
< / div > < h3 id = "method.btn_close" class = "method" > < code > fn < a href = "#method.btn_close" class = "fnname" > btn_close< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#133-136" title = "goto source code" > [src]< / a > < / h3 > < div class = "docblock" > < p > An " X" 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 > (& self, ctx: & < a class = "struct" href = "../widgetry/event_ctx/struct.EventCtx.html" title = "struct widgetry::event_ctx::EventCtx" > EventCtx< / a > < '_> ) -> < a class = "struct" href = "../widgetry/widgets/struct.Widget.html" title = "struct widgetry::widgets::Widget" > Widget< / a > < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#140-142" title = "goto source code" > [src]< / a > < / h3 > < div class = "docblock" > < p > An " X" button to close the current state. Bound to the escape key and aligned to the right,
2021-01-20 03:35:07 +03:00
usually after a title.< / p >
2021-02-23 22:59:26 +03:00
< / 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/style/struct.Style.html" title = "struct widgetry::style::Style" > Style< / a > < / code > < a href = "#impl-StyledButtons%3C%27a%3E" class = "anchor" > < / a > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#145-173" title = "goto source code" > [src]< / a > < / h3 > < div class = "impl-items" > < h4 id = "method.btn_solid" class = "method hidden" > < code > fn < a href = "#method.btn_solid" class = "fnname" > btn_solid< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#146-148" title = "goto source code" > [src]< / a > < / h4 > < h4 id = "method.btn_outline" class = "method hidden" > < code > fn < a href = "#method.btn_outline" class = "fnname" > btn_outline< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#150-152" title = "goto source code" > [src]< / a > < / h4 > < h4 id = "method.btn_solid_floating" class = "method hidden" > < code > fn < a href = "#method.btn_solid_floating" class = "fnname" > btn_solid_floating< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#154-156" title = "goto source code" > [src]< / a > < / h4 > < h4 id = "method.btn_plain" class = "method hidden" > < code > fn < a href = "#method.btn_plain" class = "fnname" > btn_plain< / a > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#158-160" 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 > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#162-164" 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 > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#166-168" 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 > (& self) -> < a class = "struct" href = "../widgetry/widgets/button/struct.ButtonBuilder.html" title = "struct widgetry::widgets::button::ButtonBuilder" > ButtonBuilder< / a > < 'a> < / code > < a class = "srclink" href = "../src/widgetry/style/buttons.rs.html#170-172" 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 > <