[][src]Struct khalas::el::control::radio::Radio

pub struct Radio<PMsg> {
    pub label: Option<Cow<'static, str>>,
    pub style: Style,
    pub disabled: bool,
    // some fields omitted
}

Fields

label: Option<Cow<'static, str>>style: Styledisabled: bool

Methods

impl<PMsg> Radio<PMsg>[src]

pub fn events(
    &mut self,
    set_value: impl Fn(&mut Events<PMsg>) -> &mut Events<PMsg>
) -> &mut Self
[src]

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

pub fn unset_label(&mut self) -> &mut Self[src]

Set None to self.label

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

pub fn is_disabled(&self) -> bool[src]

pub fn disable(&mut self) -> &mut Self[src]

pub fn enable(&mut self) -> &mut Self[src]

pub fn is_focused(&self) -> bool[src]

pub fn is_mouse_over(&self) -> bool[src]

pub fn is_toggled(&self) -> bool[src]

pub fn toggle_on(&mut self) -> &mut Self[src]

pub fn toggle_off(&mut self) -> &mut Self[src]

impl<PMsg> Radio<PMsg>[src]

pub fn new(msg_mapper: impl FnOnce(Msg) -> PMsg + Clone + 'static) -> Self[src]

pub fn toggle(&mut self) -> &mut Self[src]

pub fn handle_toggle_msg(&mut self)[src]

Trait Implementations

impl<PMsg: Clone> Clone for Radio<PMsg>[src]

impl<GMsg, PMsg: 'static> Model<PMsg, GMsg> for Radio<PMsg>[src]

type Message = Msg

impl<PMsg: 'static> Render<PMsg> for Radio<PMsg>[src]

type View = Node<PMsg>

the returne type from render function

type Style = Style

Auto Trait Implementations

impl<PMsg> !RefUnwindSafe for Radio<PMsg>

impl<PMsg> !Send for Radio<PMsg>

impl<PMsg> !Sync for Radio<PMsg>

impl<PMsg> Unpin for Radio<PMsg>

impl<PMsg> !UnwindSafe for Radio<PMsg>

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.