Struct savory_elements::element::button::Config[][src]

pub struct Config {
    pub id: Option<Id>,
    pub text: Option<Cow<'static, str>>,
    pub icon: Option<Svg<Msg>>,
    pub disabled: bool,
    pub color: Option<Hsl>,
    pub text_color: Option<Hsl>,
    pub action_type: ActionType,
    pub kind: Kind,
    // some fields omitted
}

Fields

id: Option<Id>text: Option<Cow<'static, str>>icon: Option<Svg<Msg>>disabled: boolcolor: Option<Hsl>text_color: Option<Hsl>action_type: ActionTypekind: Kind

Implementations

impl Config[src]

pub fn id(self, value: impl Into<Id>) -> Self[src]

pub fn try_id(self, value: Option<impl Into<Id>>) -> Self[src]

pub fn and_try_id(
    self,
    set_value: impl FnOnce(Option<Id>) -> Option<Id>
) -> Self
[src]

pub fn text(self, value: impl Into<Cow<'static, str>>) -> Self[src]

pub fn try_text(self, value: Option<impl Into<Cow<'static, str>>>) -> Self[src]

pub fn and_try_text(
    self,
    set_value: impl FnOnce(Option<Cow<'static, str>>) -> Option<Cow<'static, str>>
) -> Self
[src]

pub fn icon(self, value: impl Into<Svg<Msg>>) -> Self[src]

pub fn try_icon(self, value: Option<impl Into<Svg<Msg>>>) -> Self[src]

pub fn and_try_icon(
    self,
    set_value: impl FnOnce(Option<Svg<Msg>>) -> Option<Svg<Msg>>
) -> Self
[src]

pub fn disabled(self, value: impl Into<bool>) -> Self[src]

pub fn and_disabled(self, set_value: impl FnOnce(bool) -> bool) -> Self[src]

pub fn color(self, value: impl Into<Hsl>) -> Self[src]

pub fn try_color(self, value: Option<impl Into<Hsl>>) -> Self[src]

pub fn and_try_color(
    self,
    set_value: impl FnOnce(Option<Hsl>) -> Option<Hsl>
) -> Self
[src]

pub fn text_color(self, value: impl Into<Hsl>) -> Self[src]

pub fn try_text_color(self, value: Option<impl Into<Hsl>>) -> Self[src]

pub fn and_try_text_color(
    self,
    set_value: impl FnOnce(Option<Hsl>) -> Option<Hsl>
) -> Self
[src]

pub fn action_type(self, value: impl Into<ActionType>) -> Self[src]

pub fn and_action_type(
    self,
    set_value: impl FnOnce(ActionType) -> ActionType
) -> Self
[src]

pub fn kind(self, value: impl Into<Kind>) -> Self[src]

pub fn and_kind(self, set_value: impl FnOnce(Kind) -> Kind) -> Self[src]

impl Config[src]

pub fn new() -> Self[src]

pub fn init(
    self,
    orders: &mut impl Orders<<Button as Element>::Message>
) -> Button
[src]

impl Config[src]

pub fn suggestion(self) -> Self[src]

pub fn destructive(self) -> Self[src]

pub fn dashed(self) -> Self[src]

pub fn text_button(self) -> Self[src]

pub fn ghost(self) -> Self[src]

Auto Trait Implementations

impl !RefUnwindSafe for Config

impl !Send for Config

impl !Sync for Config

impl Unpin for Config

impl !UnwindSafe for Config

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,