[−][src]Struct khalas::el::control::radio::Radio
Fields
label: Option<Cow<'static, str>>
style: Style
disabled: 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]
&mut self,
set_value: impl Fn(&mut Events<PMsg>) -> &mut Events<PMsg>
) -> &mut Self
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]
&mut self,
set_value: impl Fn(&mut Style) -> &mut Style
) -> &mut Self
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
fn update(&mut self, msg: Msg, _: &mut impl Orders<PMsg, GMsg>)
[src]
fn sink(&mut self, _: GMsg, _: &mut impl Orders<PMsg, GMsg>)
[src]
impl<PMsg: 'static> Render<PMsg> for Radio<PMsg>
[src]
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]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
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,
fn borrow_mut(&mut self) -> &mut T
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,