Struct winsafe::gui::RadioGroup [−][src]
pub struct RadioGroup(_);
Expand description
A group of native RadioButton
controls.
Implementations
Instantiates a new RadioGroup
object, each RadioButton
to be created
on the parent window with
HWND::CreateWindowEx
.
Panics
Panics if no options are passed.
Instantiates a new RadioGroup
object, to be loaded from a dialog
resource with HWND::GetDlgItem
.
Panics
Panics if no control IDs are passed.
Exposes the radio group events.
These event methods are just proxies to the
WindowEvents
of the parent window,
who is the real responsible for the child event handling.
Panics
Panics if the control or the parent window are already created. Events must be set before control and parent window creation.
Returns an iterator over the internal
RadioButton
slice.
Example
Changing the text of all radio buttons to "One"
:
use winsafe::gui::RadioGroup;
let radio_group: RadioGroup; // initialized somewhere
for single_radio in me.rads.iter() {
single_radio.hwnd().SetWindowText("One")?;
}
Returns the RadioButton
controls as a Vec
of Child
.
Returns the currently checked RadioButton
of
this group, if any.
Returns the index of the currently selected
RadioButton
of this group, if any.
Returns the number of RadioButton
controls
in this group.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more