Struct components::material::Radio
source · [−]pub struct Radio<T: Default> {Show 16 fields
pub key: Key,
pub value: T,
pub group_value: T,
pub on_changed: Option<ValueChanged<T>>,
pub mouse_cursor: MouseCursor,
pub toggleable: bool,
pub active_color: Color,
pub fill_color: MaterialStateProperty<Color>,
pub focus_color: Color,
pub hover_color: Color,
pub overlay_color: MaterialStateProperty<Color>,
pub splash_radius: f32,
pub material_tap_target_size: MaterialTapTargetSize,
pub visual_density: VisualDensity,
pub focus_node: FocusNode,
pub autofocus: bool,
}
Fields
key: Key
value: T
group_value: T
on_changed: Option<ValueChanged<T>>
mouse_cursor: MouseCursor
toggleable: bool
active_color: Color
fill_color: MaterialStateProperty<Color>
focus_color: Color
hover_color: Color
overlay_color: MaterialStateProperty<Color>
splash_radius: f32
material_tap_target_size: MaterialTapTargetSize
visual_density: VisualDensity
focus_node: FocusNode
autofocus: bool
Trait Implementations
sourceimpl<T: Default> WidgetProperties for Radio<T>
impl<T: Default> WidgetProperties for Radio<T>
sourcefn mouse_input(&self) -> bool
fn mouse_input(&self) -> bool
Whether or not the control responds to mouse input
sourcefn renderable(&self) -> bool
fn renderable(&self) -> bool
Whether or not the control emits render signals from the canvas render call
sourcefn internal_visible(&self) -> bool
fn internal_visible(&self) -> bool
Internal. Internal parent visibility for creating sub controls.
Auto Trait Implementations
impl<T> !RefUnwindSafe for Radio<T>
impl<T> !Send for Radio<T>
impl<T> !Sync for Radio<T>
impl<T> Unpin for Radio<T> where
T: Unpin,
impl<T> !UnwindSafe for Radio<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.