Struct winsafe::gui::events::TreeViewEvents [−][src]
pub struct TreeViewEvents { /* fields omitted */ }
Expand description
Exposes tree view control notifications.
These event methods are just proxies to the
WindowEvents
of the parent window,
who is the real responsible for the child event handling.
You cannot directly instantiate this object, it is created internally by the control.
Implementations
pub fn tvn_delete_item<F>(&self, func: F) where
F: Fn(&NMTREEVIEW<'_, '_>) -> BoxResult<()> + 'static,
pub fn tvn_delete_item<F>(&self, func: F) where
F: Fn(&NMTREEVIEW<'_, '_>) -> BoxResult<()> + 'static,
TVN_DELETEITEM
notification.
Notifies a tree-view control’s parent window that an item is being deleted.
pub fn tvn_item_changed<F>(&self, func: F) where
F: Fn(&NMTREEVIEW<'_, '_>) -> BoxResult<()> + 'static,
pub fn tvn_item_changed<F>(&self, func: F) where
F: Fn(&NMTREEVIEW<'_, '_>) -> BoxResult<()> + 'static,
TVN_ITEMCHANGED
notification.
Notifies a tree-view control’s parent window that item attributes have changed.
pub fn tvn_item_changing<F>(&self, func: F) where
F: Fn(&NMTREEVIEW<'_, '_>) -> BoxResult<bool> + 'static,
pub fn tvn_item_changing<F>(&self, func: F) where
F: Fn(&NMTREEVIEW<'_, '_>) -> BoxResult<bool> + 'static,
TVN_ITEMCHANGING
notification.
Notifies a tree-view control’s parent window that item attributes are about to change.
pub fn tvn_item_expanded<F>(&self, func: F) where
F: Fn(&NMTREEVIEW<'_, '_>) -> BoxResult<()> + 'static,
pub fn tvn_item_expanded<F>(&self, func: F) where
F: Fn(&NMTREEVIEW<'_, '_>) -> BoxResult<()> + 'static,
TVN_ITEMEXPANDED
notification.
Notifies a tree-view control’s parent window that a parent item’s list of child items has expanded or collapsed.
pub fn tvn_item_expanding<F>(&self, func: F) where
F: Fn(&NMTREEVIEW<'_, '_>) -> BoxResult<bool> + 'static,
pub fn tvn_item_expanding<F>(&self, func: F) where
F: Fn(&NMTREEVIEW<'_, '_>) -> BoxResult<bool> + 'static,
TVN_ITEMEXPANDING
notification.
Notifies a tree-view control’s parent window that a parent item’s list of child items is about to expand or collapse.
pub fn tvn_sel_changed<F>(&self, func: F) where
F: Fn(&NMTREEVIEW<'_, '_>) -> BoxResult<()> + 'static,
pub fn tvn_sel_changed<F>(&self, func: F) where
F: Fn(&NMTREEVIEW<'_, '_>) -> BoxResult<()> + 'static,
TVN_SELCHANGED
notification.
Notifies a tree-view control’s parent window that the selection has changed from one item to another.
pub fn tvn_sel_changing<F>(&self, func: F) where
F: Fn(&NMTREEVIEW<'_, '_>) -> BoxResult<bool> + 'static,
pub fn tvn_sel_changing<F>(&self, func: F) where
F: Fn(&NMTREEVIEW<'_, '_>) -> BoxResult<bool> + 'static,
TVN_SELCHANGING
notification.
Notifies a tree-view control’s parent window that the selection is about to change from one item to another.
NM_CLICK
notification.
Notifies the parent window of a tree-view control that the user has clicked the left mouse button within the control.
pub fn nm_custom_draw<F>(&self, func: F) where
F: Fn(&NMTVCUSTOMDRAW) -> BoxResult<CDRF> + 'static,
pub fn nm_custom_draw<F>(&self, func: F) where
F: Fn(&NMTVCUSTOMDRAW) -> BoxResult<CDRF> + 'static,
NM_CUSTOMDRAW
notification.
Sent by a tree-view control to notify its parent window about drawing operations.
NM_DBLCLK
notification.
Notifies the parent window of a tree-view control that the user has double-clicked the left mouse button within the control.
NM_KILLFOCUS
notification.
Notifies a tree-view control’s parent window that the control has lost the input focus.
NM_RCLICK
notification.
Notifies the parent window of a tree-view control that the user has clicked the right mouse button within the control.
NM_RDBLCLK
notification.
Notifies the parent of a tree-view control that the user has double-clicked the right mouse button within the control.
NM_RETURN
notification.
Notifies a tree-view control’s parent window that the control has the input focus and that the user has pressed the ENTER key.
NM_MOUSE
notification.
Notifies a tree-view control’s parent window that the control is setting the cursor in response to a wm::SetCursor message.
NM_SETFOCUS
notification.
Notifies a tree-view control’s parent window that the control has received the input focus.