[][src]Struct khalas::el::control::spin_entry::Style

pub struct Style {
    pub container: Style,
    pub input: Style,
    pub buttons_container: Style,
    pub increment_item: ItemStyle,
    pub decrement_item: ItemStyle,
    pub increment_button: Style,
    pub decrement_button: Style,
    pub increment_icon: Icon<Msg>,
    pub decrement_icon: Icon<Msg>,
}

This style returned by the Theme and consumed by render function, thus the icons must be returned by the theme

Fields

container: Styleinput: Stylebuttons_container: Styleincrement_item: ItemStyledecrement_item: ItemStyleincrement_button: Styledecrement_button: Styleincrement_icon: Icon<Msg>decrement_icon: Icon<Msg>

Methods

impl Style[src]

pub fn container(
    &mut self,
    set_value: impl Fn(&mut Style) -> &mut Style
) -> &mut Self
[src]

pub fn input(
    &mut self,
    set_value: impl Fn(&mut Style) -> &mut Style
) -> &mut Self
[src]

pub fn buttons_container(
    &mut self,
    set_value: impl Fn(&mut Style) -> &mut Style
) -> &mut Self
[src]

pub fn increment_item(
    &mut self,
    set_value: impl Fn(&mut ItemStyle) -> &mut ItemStyle
) -> &mut Self
[src]

pub fn decrement_item(
    &mut self,
    set_value: impl Fn(&mut ItemStyle) -> &mut ItemStyle
) -> &mut Self
[src]

pub fn increment_button(
    &mut self,
    set_value: impl Fn(&mut Style) -> &mut Style
) -> &mut Self
[src]

pub fn decrement_button(
    &mut self,
    set_value: impl Fn(&mut Style) -> &mut Style
) -> &mut Self
[src]

pub fn increment_icon(&mut self, value: impl Into<Icon<Msg>>) -> &mut Self[src]

pub fn decrement_icon(&mut self, value: impl Into<Icon<Msg>>) -> &mut Self[src]

Trait Implementations

impl Clone for Style[src]

Auto Trait Implementations

impl !RefUnwindSafe for Style

impl !Send for Style

impl !Sync for Style

impl Unpin for Style

impl !UnwindSafe for Style

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.