Struct savory_elements::element::button::Config [−][src]
Fields
id: Option<Id>
text: Option<Cow<'static, str>>
icon: Option<Svg<Msg>>
disabled: bool
color: Option<Hsl>
text_color: Option<Hsl>
action_type: ActionType
kind: 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]
self,
set_value: impl FnOnce(Option<Id>) -> Option<Id>
) -> Self
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]
self,
set_value: impl FnOnce(Option<Cow<'static, str>>) -> Option<Cow<'static, str>>
) -> Self
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]
self,
set_value: impl FnOnce(Option<Svg<Msg>>) -> Option<Svg<Msg>>
) -> Self
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]
self,
set_value: impl FnOnce(Option<Hsl>) -> Option<Hsl>
) -> Self
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]
self,
set_value: impl FnOnce(Option<Hsl>) -> Option<Hsl>
) -> Self
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]
self,
set_value: impl FnOnce(ActionType) -> ActionType
) -> Self
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]
self,
orders: &mut impl Orders<<Button as Element>::Message>
) -> Button
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 link_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]
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
pub fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
pub fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
pub fn convert_into(self) -> U
[src]
pub fn convert_unclamped_into(self) -> U
[src]
pub fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,