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

pub trait StyledButtons<'a> {
    fn btn_plain(&self) -> ButtonBuilder<'a>;
fn btn_outline(&self) -> ButtonBuilder<'a>;
fn btn_solid(&self) -> ButtonBuilder<'a>;
fn btn_solid_floating(&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_plain_primary(&self) -> ButtonBuilder<'a>;
fn btn_solid_primary(&self) -> ButtonBuilder<'a>;
fn btn_outline_primary(&self) -> ButtonBuilder<'a>; fn btn_plain_text(&self, text: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_plain_icon(&self, image_path: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_plain_icon_bytes(
        &self,
        labeled_bytes: (&'a str, &'a [u8])
    ) -> ButtonBuilder<'a> { ... }
fn btn_plain_icon_text(
        &self,
        image_path: &'a str,
        text: &'a str
    ) -> ButtonBuilder<'a> { ... }
fn btn_outline_text(&self, text: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_outline_icon(&self, image_path: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_outline_icon_text(
        &self,
        image_path: &'a str,
        text: &'a str
    ) -> ButtonBuilder<'a> { ... }
fn btn_solid_text(&self, text: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_solid_icon(&self, image_path: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_solid_icon_bytes(
        &self,
        labeled_bytes: (&'a str, &'a [u8])
    ) -> ButtonBuilder<'a> { ... }
fn btn_solid_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_plain_primary_text(&self, text: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_plain_primary_icon(&self, image_path: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_solid_primary_text(&self, text: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_solid_primary_icon(&self, image_path: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_solid_primary_icon_text(
        &self,
        image_path: &'a str,
        text: &'a str
    ) -> ButtonBuilder<'a> { ... }
fn btn_outline_primary_text(&self, text: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_outline_primary_icon(&self, image_path: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_outline_primary_icon_text(
        &self,
        image_path: &'a str,
        text: &'a str
    ) -> ButtonBuilder<'a> { ... }
fn btn_back(&self, title: &'a str) -> ButtonBuilder<'a> { ... }
fn btn_outline_dropdown(&self) -> ButtonBuilder<'a> { ... }
fn btn_solid_dropdown(&self) -> ButtonBuilder<'a> { ... }
fn btn_outline_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_plain(&self) -> ButtonBuilder<'a>[src]

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

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

fn btn_solid_floating(&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_plain_primary(&self) -> ButtonBuilder<'a>[src]

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

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

Loading content...

Provided methods

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

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

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

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

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

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

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

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

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

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

fn btn_solid_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_plain_primary_text(&self, text: &'a str) -> ButtonBuilder<'a>[src]

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

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

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

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

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

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

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

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

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

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

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

fn btn_outline_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...