Struct kas_widgets::RadioGroup
source · pub struct RadioGroup(_);
Expand description
A group used by RadioButton
and RadioBox
This type can (and likely should) be default constructed.
Implementations§
source§impl RadioGroup
impl RadioGroup
sourcepub fn id(&self) -> UpdateId
pub fn id(&self) -> UpdateId
Access update identifier
Data updates via this RadioGroup
are triggered using this UpdateId
.
sourcepub fn get(&self) -> Option<WidgetId>
pub fn get(&self) -> Option<WidgetId>
Get the active RadioBox
, if any
Note: this is never equal to a RadioButton
’s WidgetId
, but may
be a descendant (test with WidgetExt::is_ancestor_of
).
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§
§impl<S, T> Cast<T> for Swhere
T: Conv<S>,
impl<S, T> Cast<T> for Swhere T: Conv<S>,
§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere T: ConvApprox<S>,
§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
§fn cast_approx(self) -> T
fn cast_approx(self) -> T
§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere T: ConvFloat<S>,
§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
§fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
§fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
§fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
§fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more