Struct winsafe::gui::RadioButtonOpts[][src]

pub struct RadioButtonOpts {
    pub text: String,
    pub position: POINT,
    pub size: SIZE,
    pub button_style: BS,
    pub window_style: WS,
    pub window_ex_style: WS_EX,
    pub ctrl_id: u16,
    pub selected: bool,
}
Expand description

Options to create a RadioButton programmatically with RadioGroup::new.

Fields

text: String

Text of the control to be created.

Defaults to empty string.

position: POINT

Control position within parent client area, in pixels, to be created.

Will be adjusted to match current system DPI.

Defaults to 0 x 0.

size: SIZE

Control size, in pixels, to be created.

Will be adjusted to match current system DPI.

Defaults to the size needed to fit the text.

button_style: BS

Radio button styles to be created.

Defaults to BS::AUTORADIOBUTTON.

window_style: WS

Window styles to be created.

Defaults to WS::CHILD | WS::VISIBLE.

The first RadioButton of a group should also have WS::TABSTOP | WS::GROUP. If this object being passed to a RadioGroup, this will be automatically set.

window_ex_style: WS_EX

Extended window styles to be created.

Defaults to WS_EX::LEFT.

ctrl_id: u16

The control ID.

Defaults to an auto-generated ID.

selected: bool

Initial selection state.

Defaults to false.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.