[][src]Trait widgetry::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_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_light_text(&self, text: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_plain_light_icon(&self, image_path: &'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_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_hotkey_light(&self, label: &str, key: Key) -> ButtonBuilder<'a>

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_light_text(&self, text: &'a str) -> ButtonBuilder<'a>

fn btn_plain_light_icon(&self, image_path: &'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_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...