[][src]Trait widgetry::style::buttons::StyledButtons

pub trait StyledButtons<'a> {
    fn btn_primary_dark(&self) -> ButtonBuilder<'a>;
fn btn_secondary_dark(&self) -> ButtonBuilder<'a>;
fn btn_primary_light(&self) -> ButtonBuilder<'a>;
fn btn_secondary_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_primary_destructive(&self) -> ButtonBuilder<'a>;
fn btn_secondary_destructive(&self) -> ButtonBuilder<'a>;
fn btn_hotkey_light(&self, label: &str, key: Key) -> ButtonBuilder<'a>; fn btn_primary_dark_text(&self, text: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_primary_dark_icon(&self, image_path: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_primary_dark_icon_text(
        &self,
        image_path: &'a str,
        text: &'a str
    ) -> ButtonBuilder<'a> { ... }
fn btn_secondary_dark_text(&self, text: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_secondary_dark_icon(&self, image_path: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_secondary_dark_icon_text(
        &self,
        image_path: &'a str,
        text: &'a str
    ) -> ButtonBuilder<'a> { ... }
fn btn_primary_light_text(&self, text: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_primary_light_icon(&self, image_path: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_primary_light_icon_text(
        &self,
        image_path: &'a str,
        text: &'a str
    ) -> ButtonBuilder<'a> { ... }
fn btn_secondary_light_text(&self, text: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_secondary_light_icon(&self, image_path: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_secondary_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_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_primary_destructive_text(&self, text: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_primary_destructive_icon(
        &self,
        image_path: &'a str
    ) -> ButtonBuilder<'a> { ... }
fn btn_primary_destructive_icon_text(
        &self,
        image_path: &'a str,
        text: &'a str
    ) -> ButtonBuilder<'a> { ... }
fn btn_secondary_destructive_text(&self, text: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_secondary_destructive_icon(
        &self,
        image_path: &'a str
    ) -> ButtonBuilder<'a> { ... }
fn btn_secondary_destructive_icon_text(
        &self,
        image_path: &'a str,
        text: &'a str
    ) -> ButtonBuilder<'a> { ... }
fn btn_back_light(&self, title: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_back_dark(&self, title: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_primary_light_dropdown(&self) -> ButtonBuilder<'a> { ... }
fn btn_secondary_light_dropdown(&self) -> ButtonBuilder<'a> { ... }
fn btn_primary_dark_dropdown(&self) -> ButtonBuilder<'a> { ... }
fn btn_secondary_dark_dropdown(&self) -> ButtonBuilder<'a> { ... }
fn btn_popup_light(&self, text: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_popup_dark(&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_primary_dark(&self) -> ButtonBuilder<'a>

fn btn_secondary_dark(&self) -> ButtonBuilder<'a>

fn btn_primary_light(&self) -> ButtonBuilder<'a>

fn btn_secondary_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_primary_destructive(&self) -> ButtonBuilder<'a>

fn btn_secondary_destructive(&self) -> ButtonBuilder<'a>

fn btn_hotkey_light(&self, label: &str, key: Key) -> ButtonBuilder<'a>

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

Loading content...

Provided methods

fn btn_primary_dark_text(&self, text: &'a str) -> ButtonBuilder<'a>

fn btn_primary_dark_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>

fn btn_primary_dark_icon_text(
    &self,
    image_path: &'a str,
    text: &'a str
) -> ButtonBuilder<'a>

fn btn_secondary_dark_text(&self, text: &'a str) -> ButtonBuilder<'a>

fn btn_secondary_dark_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>

fn btn_secondary_dark_icon_text(
    &self,
    image_path: &'a str,
    text: &'a str
) -> ButtonBuilder<'a>

fn btn_primary_light_text(&self, text: &'a str) -> ButtonBuilder<'a>

fn btn_primary_light_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>

fn btn_primary_light_icon_text(
    &self,
    image_path: &'a str,
    text: &'a str
) -> ButtonBuilder<'a>

fn btn_secondary_light_text(&self, text: &'a str) -> ButtonBuilder<'a>

fn btn_secondary_light_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>

fn btn_secondary_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_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_primary_destructive_text(&self, text: &'a str) -> ButtonBuilder<'a>

fn btn_primary_destructive_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>

fn btn_primary_destructive_icon_text(
    &self,
    image_path: &'a str,
    text: &'a str
) -> ButtonBuilder<'a>

fn btn_secondary_destructive_text(&self, text: &'a str) -> ButtonBuilder<'a>

fn btn_secondary_destructive_icon(
    &self,
    image_path: &'a str
) -> ButtonBuilder<'a>

fn btn_secondary_destructive_icon_text(
    &self,
    image_path: &'a str,
    text: &'a str
) -> ButtonBuilder<'a>

fn btn_back_light(&self, title: &'a str) -> ButtonBuilder<'a>

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

fn btn_back_dark(&self, title: &'a str) -> ButtonBuilder<'a>

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

fn btn_primary_light_dropdown(&self) -> ButtonBuilder<'a>

fn btn_secondary_light_dropdown(&self) -> ButtonBuilder<'a>

fn btn_primary_dark_dropdown(&self) -> ButtonBuilder<'a>

fn btn_secondary_dark_dropdown(&self) -> ButtonBuilder<'a>

fn btn_popup_light(&self, text: &'a str) -> ButtonBuilder<'a>

fn btn_popup_dark(&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.

Loading content...

Implementors

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

Loading content...