[−][src]Trait widgetry::StyledButtons
Required methods
fn btn_solid_dark(&self) -> ButtonBuilder<'a>
fn btn_outline_dark(&self) -> ButtonBuilder<'a>
fn btn_solid_light(&self) -> ButtonBuilder<'a>
fn btn_outline_light(&self) -> ButtonBuilder<'a>
fn btn_plain_dark(&self) -> ButtonBuilder<'a>
fn btn_plain_light(&self) -> ButtonBuilder<'a>
fn btn_plain_destructive(&self) -> ButtonBuilder<'a>
fn btn_solid_destructive(&self) -> ButtonBuilder<'a>
fn btn_outline_destructive(&self) -> ButtonBuilder<'a>
fn btn_solid_light_hotkey(&self, label: &str, key: Key) -> ButtonBuilder<'a>
A button which renders its hotkey for discoverability along with its label.
fn btn_solid_dark_hotkey(&self, label: &str, key: Key) -> ButtonBuilder<'a>
A button which renders its hotkey for discoverability along with its label.
Provided methods
fn btn_solid_dark_text(&self, text: &'a str) -> ButtonBuilder<'a>
fn btn_solid_dark_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
fn btn_solid_dark_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_outline_dark_text(&self, text: &'a str) -> ButtonBuilder<'a>
fn btn_outline_dark_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
fn btn_outline_dark_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_solid_light_text(&self, text: &'a str) -> ButtonBuilder<'a>
fn btn_solid_light_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
fn btn_solid_light_icon_bytes(
&self,
labeled_bytes: (&'a str, &'a [u8])
) -> ButtonBuilder<'a>
&self,
labeled_bytes: (&'a str, &'a [u8])
) -> ButtonBuilder<'a>
fn btn_solid_light_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_outline_light_text(&self, text: &'a str) -> ButtonBuilder<'a>
fn btn_outline_light_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
fn btn_outline_light_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_plain_dark_text(&self, text: &'a str) -> ButtonBuilder<'a>
fn btn_plain_dark_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
fn btn_plain_dark_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_plain_light_text(&self, text: &'a str) -> ButtonBuilder<'a>
fn btn_plain_light_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
fn btn_plain_light_icon_bytes(
&self,
labeled_bytes: (&'a str, &'a [u8])
) -> ButtonBuilder<'a>
&self,
labeled_bytes: (&'a str, &'a [u8])
) -> ButtonBuilder<'a>
fn btn_plain_light_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_plain_destructive_text(&self, text: &'a str) -> ButtonBuilder<'a>
fn btn_plain_destructive_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
fn btn_solid_destructive_text(&self, text: &'a str) -> ButtonBuilder<'a>
fn btn_solid_destructive_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
fn btn_solid_destructive_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_outline_destructive_text(&self, text: &'a str) -> ButtonBuilder<'a>
fn btn_outline_destructive_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
fn btn_outline_destructive_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_light_back(&self, title: &'a str) -> ButtonBuilder<'a>
title: name of previous screen, which you'll return to
fn btn_dark_back(&self, title: &'a str) -> ButtonBuilder<'a>
title: name of previous screen, which you'll return to
fn btn_solid_light_dropdown(&self) -> ButtonBuilder<'a>
fn btn_outline_light_dropdown(&self) -> ButtonBuilder<'a>
fn btn_solid_dark_dropdown(&self) -> ButtonBuilder<'a>
fn btn_outline_dark_dropdown(&self) -> ButtonBuilder<'a>
fn btn_outline_light_popup(&self, text: &'a str) -> ButtonBuilder<'a>
fn btn_outline_dark_popup(&self, text: &'a str) -> ButtonBuilder<'a>
fn btn_next(&self) -> ButtonBuilder<'a>
A right facing caret, like ">", suitable for paging to the "next" set of results
fn btn_prev(&self) -> ButtonBuilder<'a>
A left facing caret, like "<", suitable for paging to the "next" set of results
fn btn_close(&self) -> ButtonBuilder<'a>
An "X" button to close the current state. Bound to the escape key.
fn btn_close_widget(&self, ctx: &EventCtx<'_>) -> Widget
An "X" button to close the current state. Bound to the escape key and aligned to the right, usually after a title.