Struct winsafe::gui::TreeViewOpts[][src]

pub struct TreeViewOpts {
    pub position: POINT,
    pub size: SIZE,
    pub tree_view_style: TVS,
    pub tree_view_ex_style: TVS_EX,
    pub window_style: WS,
    pub window_ex_style: WS_EX,
    pub ctrl_id: u16,
}
Expand description

Options to create a TreeView programmatically with TreeView::new.

Fields

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 50 x 50.

tree_view_style: TVS

Tree view styles to be created.

Defaults to TVS::HASLINES | TVS::LINESATROOT | TVS::SHOWSELALWAYS | TVS::HASBUTTONS.

tree_view_ex_style: TVS_EX

Extended tree view styles to be created.

Defaults to TVS_EX::NoValue.

window_style: WS

Window styles to be created.

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

window_ex_style: WS_EX

Extended window styles to be created.

Defaults to WS_EX::LEFT | WS_EX::CLIENTEDGE.

ctrl_id: u16

The control ID.

Defaults to an auto-generated ID.

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.