Struct scl_gui_widgets::widgets::RadioGroup
source · pub struct RadioGroup;
Expand description
A group of radio buttons
Implementations§
source§impl RadioGroup
impl RadioGroup
sourcepub fn column<T: Data + PartialEq>(
variants: impl IntoIterator<Item = (impl Into<LabelText<T>> + 'static, T)>
) -> impl Widget<T>
pub fn column<T: Data + PartialEq>( variants: impl IntoIterator<Item = (impl Into<LabelText<T>> + 'static, T)> ) -> impl Widget<T>
Given a vector of (label_text, enum_variant)
tuples, create a group of Radio buttons
along the vertical axis.
sourcepub fn row<T: Data + PartialEq>(
variants: impl IntoIterator<Item = (impl Into<LabelText<T>> + 'static, T)>
) -> impl Widget<T>
pub fn row<T: Data + PartialEq>( variants: impl IntoIterator<Item = (impl Into<LabelText<T>> + 'static, T)> ) -> impl Widget<T>
Given a vector of (label_text, enum_variant)
tuples, create a group of Radio buttons
along the horizontal axis.
sourcepub fn for_axis<T: Data + PartialEq>(
axis: Axis,
variants: impl IntoIterator<Item = (impl Into<LabelText<T>> + 'static, T)>
) -> impl Widget<T>
pub fn for_axis<T: Data + PartialEq>( axis: Axis, variants: impl IntoIterator<Item = (impl Into<LabelText<T>> + 'static, T)> ) -> impl Widget<T>
Given a vector of (label_text, enum_variant)
tuples, create a group of Radio buttons
along the specified axis.
Trait Implementations§
source§impl Clone for RadioGroup
impl Clone for RadioGroup
source§fn clone(&self) -> RadioGroup
fn clone(&self) -> RadioGroup
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for RadioGroup
impl Send for RadioGroup
impl Sync for RadioGroup
impl Unpin for RadioGroup
impl UnwindSafe for RadioGroup
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.