pub struct TreeView(_);Available on crate feature 
gui only.Expand description
Native tree view control.
Implementations§
source§impl TreeView
 
impl TreeView
sourcepub fn new(parent: &impl GuiParent, opts: TreeViewOpts) -> TreeView
 
pub fn new(parent: &impl GuiParent, opts: TreeViewOpts) -> TreeView
Instantiates a new TreeView object, to be created on the parent window
with
HWND::CreateWindowEx.
Panics
Panics if the parent window was already created – that is, you cannot
dynamically create a TreeView in an event closure.
sourcepub fn new_dlg(
    parent: &impl GuiParent,
    ctrl_id: u16,
    resize_behavior: (Horz, Vert)
) -> TreeView
 
pub fn new_dlg(
    parent: &impl GuiParent,
    ctrl_id: u16,
    resize_behavior: (Horz, Vert)
) -> TreeView
Instantiates a new TreeView object, to be loaded from a dialog
resource with
HWND::GetDlgItem.
Panics
Panics if the parent dialog was already created – that is, you cannot
dynamically create a TreeView in an event closure.
sourcepub const fn items(&self) -> TreeViewItems<'_>
 
pub const fn items(&self) -> TreeViewItems<'_>
Exposes the item methods.
sourcepub fn set_extended_style(&self, set: bool, ex_style: TVS_EX)
 
pub fn set_extended_style(&self, set: bool, ex_style: TVS_EX)
Sets or unsets the given extended list view styles by sending a
tvm::SetExtendedStyle message.
Trait Implementations§
source§impl GuiChildFocus for TreeView
 
impl GuiChildFocus for TreeView
source§fn focus(&self)
 
fn focus(&self)
In a raw, ordinary window, simply calls
HWND:SetFocus. Read moresource§impl GuiNativeControl for TreeView
 
impl GuiNativeControl for TreeView
source§fn on_subclass(&self) -> &WindowEvents
 
fn on_subclass(&self) -> &WindowEvents
Exposes the subclass events. If at least one event exists, the control
will be
subclassed. Read more
source§impl GuiNativeControlEvents<TreeViewEvents> for TreeView
 
impl GuiNativeControlEvents<TreeViewEvents> for TreeView
source§fn on(&self) -> &TreeViewEvents
 
fn on(&self) -> &TreeViewEvents
Exposes the specific control events. Read more