pub struct CheckboxGroup { /* fields omitted */ }
Represents a group of checkboxes that can be managed like they were radio buttons.
This allows you to make a CheckboxGroup of ie. 3 checkboxes and only one of them will be selected at a time,
unless force one selected is toggled on, in which case the index given with it will be selected at first, and the group will disallow having none selected.
Updating this CheckboxGroup with the given Checkboxes will ensure that the functionality explained above will be enforced.
Creates a new CheckboxGroup with no selection.
Some forces something to be always checked, None (default) allows everything to be unchecked.
Put an index that should be checked as default, if given index doesn't exist 0 is used.
Selected index will result to None only if no checkboxes are given.
Update this CheckboxGroup with the given Checkboxes, this will ensure that only one of the given Checkboxes will remain checked.
Return the index that is currently selected, if any.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static