Struct winsafe::gui::LabelOpts [−][src]
pub struct LabelOpts {
pub text: String,
pub position: POINT,
pub size: SIZE,
pub label_style: SS,
pub window_style: WS,
pub window_ex_style: WS_EX,
pub ctrl_id: u16,
}
Expand description
Options to create a Label
programmatically with
label::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.
label_style: SS
label styles to be created.
Defaults to SS::LEFT | SS:NOTIFY
.
window_style: WS
Window styles to be created.
Defaults to WS::CHILD | WS::VISIBLE
.
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.