[][src]Trait widgetry::StyledButtons

pub trait StyledButtons<'a> {
    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>;
fn btn_solid_dark_hotkey(&self, label: &str, key: Key) -> ButtonBuilder<'a>; 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> { ... }
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> { ... }
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> { ... }
fn btn_solid_light_icon_text(
        &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> { ... }
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> { ... }
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> { ... }
fn btn_plain_light_icon_text(
        &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> { ... }
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> { ... }
fn btn_light_back(&self, title: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_dark_back(&self, title: &'a str) -> ButtonBuilder<'a> { ... }
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> { ... }
fn btn_prev(&self) -> ButtonBuilder<'a> { ... }
fn btn_close(&self) -> ButtonBuilder<'a> { ... }
fn btn_close_widget(&self, ctx: &EventCtx<'_>) -> Widget { ... } }

Required methods

fn btn_solid_dark(&self) -> ButtonBuilder<'a>[src]

fn btn_outline_dark(&self) -> ButtonBuilder<'a>[src]

fn btn_solid_light(&self) -> ButtonBuilder<'a>[src]

fn btn_outline_light(&self) -> ButtonBuilder<'a>[src]

fn btn_plain_dark(&self) -> ButtonBuilder<'a>[src]

fn btn_plain_light(&self) -> ButtonBuilder<'a>[src]

fn btn_plain_destructive(&self) -> ButtonBuilder<'a>[src]

fn btn_solid_destructive(&self) -> ButtonBuilder<'a>[src]

fn btn_outline_destructive(&self) -> ButtonBuilder<'a>[src]

fn btn_solid_light_hotkey(&self, label: &str, key: Key) -> ButtonBuilder<'a>[src]

A button which renders its hotkey for discoverability along with its label.

fn btn_solid_dark_hotkey(&self, label: &str, key: Key) -> ButtonBuilder<'a>[src]

A button which renders its hotkey for discoverability along with its label.

Loading content...

Provided methods

fn btn_solid_dark_text(&self, text: &'a str) -> ButtonBuilder<'a>[src]

fn btn_solid_dark_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>[src]

fn btn_solid_dark_icon_text(
    &self,
    image_path: &'a str,
    text: &'a str
) -> ButtonBuilder<'a>
[src]

fn btn_outline_dark_text(&self, text: &'a str) -> ButtonBuilder<'a>[src]

fn btn_outline_dark_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>[src]

fn btn_outline_dark_icon_text(
    &self,
    image_path: &'a str,
    text: &'a str
) -> ButtonBuilder<'a>
[src]

fn btn_solid_light_text(&self, text: &'a str) -> ButtonBuilder<'a>[src]

fn btn_solid_light_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>[src]

fn btn_solid_light_icon_bytes(
    &self,
    labeled_bytes: (&'a str, &'a [u8])
) -> ButtonBuilder<'a>
[src]

fn btn_solid_light_icon_text(
    &self,
    image_path: &'a str,
    text: &'a str
) -> ButtonBuilder<'a>
[src]

fn btn_outline_light_text(&self, text: &'a str) -> ButtonBuilder<'a>[src]

fn btn_outline_light_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>[src]

fn btn_outline_light_icon_text(
    &self,
    image_path: &'a str,
    text: &'a str
) -> ButtonBuilder<'a>
[src]

fn btn_plain_dark_text(&self, text: &'a str) -> ButtonBuilder<'a>[src]

fn btn_plain_dark_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>[src]

fn btn_plain_dark_icon_text(
    &self,
    image_path: &'a str,
    text: &'a str
) -> ButtonBuilder<'a>
[src]

fn btn_plain_light_text(&self, text: &'a str) -> ButtonBuilder<'a>[src]

fn btn_plain_light_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>[src]

fn btn_plain_light_icon_bytes(
    &self,
    labeled_bytes: (&'a str, &'a [u8])
) -> ButtonBuilder<'a>
[src]

fn btn_plain_light_icon_text(
    &self,
    image_path: &'a str,
    text: &'a str
) -> ButtonBuilder<'a>
[src]

fn btn_plain_destructive_text(&self, text: &'a str) -> ButtonBuilder<'a>[src]

fn btn_plain_destructive_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>[src]

fn btn_solid_destructive_text(&self, text: &'a str) -> ButtonBuilder<'a>[src]

fn btn_solid_destructive_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>[src]

fn btn_solid_destructive_icon_text(
    &self,
    image_path: &'a str,
    text: &'a str
) -> ButtonBuilder<'a>
[src]

fn btn_outline_destructive_text(&self, text: &'a str) -> ButtonBuilder<'a>[src]

fn btn_outline_destructive_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>[src]

fn btn_outline_destructive_icon_text(
    &self,
    image_path: &'a str,
    text: &'a str
) -> ButtonBuilder<'a>
[src]

fn btn_light_back(&self, title: &'a str) -> ButtonBuilder<'a>[src]

title: name of previous screen, which you'll return to

fn btn_dark_back(&self, title: &'a str) -> ButtonBuilder<'a>[src]

title: name of previous screen, which you'll return to

fn btn_solid_light_dropdown(&self) -> ButtonBuilder<'a>[src]

fn btn_outline_light_dropdown(&self) -> ButtonBuilder<'a>[src]

fn btn_solid_dark_dropdown(&self) -> ButtonBuilder<'a>[src]

fn btn_outline_dark_dropdown(&self) -> ButtonBuilder<'a>[src]

fn btn_outline_light_popup(&self, text: &'a str) -> ButtonBuilder<'a>[src]

fn btn_outline_dark_popup(&self, text: &'a str) -> ButtonBuilder<'a>[src]

fn btn_next(&self) -> ButtonBuilder<'a>[src]

A right facing caret, like ">", suitable for paging to the "next" set of results

fn btn_prev(&self) -> ButtonBuilder<'a>[src]

A left facing caret, like "<", suitable for paging to the "next" set of results

fn btn_close(&self) -> ButtonBuilder<'a>[src]

An "X" button to close the current state. Bound to the escape key.

fn btn_close_widget(&self, ctx: &EventCtx<'_>) -> Widget[src]

An "X" button to close the current state. Bound to the escape key and aligned to the right, usually after a title.

Loading content...

Implementors

impl<'a> StyledButtons<'a> for Style[src]

Loading content...