wxTreeEvent(3erl)
π NAME π
okay bestie, welcome to wxTreeEvent β this is the Erlang Module Definition manual page (3erl), and the official name line is wxTreeEvent - Functions for wxTreeEvent class. We're folding that manual-name goodness right up here so you never lose the plot. β¨
β¨ DESCRIPTION β¨
A tree event is the little info packet that holds details about events tied to wxTreeCtrl objects. It's giving "I was there, I know what happened in the tree." π³
To process input from a tree control, use these event handler macros to direct input to member functions that take a wxTreeEvent argument. That's the whole routing situation, fr fr.
See: wxTreeCtrl
This class is derived (and can use functions) from: wxNotifyEvent wxCommandEvent wxEvent
wxWidgets docs: wxTreeEvent
π EVENTS π
Use wxEvtHandler:connect/3 with wxTreeEventType to subscribe to events of this type. That's your subscription era. ποΈ
π¦ DATA TYPES π¦
wxTreeEvent() = wx:wx_object()
wxTree() =
#wxTree{type = wxTreeEvent:wxTreeEventType(),
item = integer(),
itemOld = integer(),
pointDrag = {X :: integer(), Y :: integer()}}
wxTreeEventType() =
command_tree_begin_drag | command_tree_begin_rdrag |
command_tree_begin_label_edit | command_tree_end_label_edit |
command_tree_delete_item | command_tree_get_info |
command_tree_set_info | command_tree_item_expanded |
command_tree_item_expanding | command_tree_item_collapsed |
command_tree_item_collapsing | command_tree_sel_changed |
command_tree_sel_changing | command_tree_key_down |
command_tree_item_activated | command_tree_item_right_click |
command_tree_item_middle_click | command_tree_end_drag |
command_tree_state_image_click |
command_tree_item_gettooltip | command_tree_item_menu |
dirctrl_selectionchanged | dirctrl_fileactivated
π EXPORTS π
getKeyCode(This) -> integer()
Types:
This = wxTreeEvent()
If this is a key event, it gives you the key code. Wanna know the modifier keys for this event (i.e. Shift or Ctrl)? Use getKeyEvent/1 for those values. π
getItem(This) -> integer()
Types:
This = wxTreeEvent()
Hands you the item β valid for all events. No cap. π
getKeyEvent(This) -> wxKeyEvent:wxKeyEvent()
Types:
This = wxTreeEvent()
Gives you the key event for EVT_TREE_KEY_DOWN events. β¨οΈ
getLabel(This) -> unicode:charlist()
Types:
This = wxTreeEvent()
If the event is a begin or end edit label event, this returns the label. Label girlies rise. π·οΈ
getOldItem(This) -> integer()
Types:
This = wxTreeEvent()
Returns the old item index β valid for EVT_TREE_SEL_CHANGING and EVT_TREE_SEL_CHANGED events. π°οΈ
getPoint(This) -> {X :: integer(), Y :: integer()}
Types:
This = wxTreeEvent()
If the event is a drag or menu-context event, this returns the position of the mouse pointer.
In both cases the position is in client coordinates - i.e. relative to the wxTreeCtrl window (so that you can pass it directly to e.g. wxWindow:popupMenu/4). π±οΈ
isEditCancelled(This) -> boolean()
Types:
This = wxTreeEvent()
Returns true if the label edit was cancelled.
This should be called from within an EVT_TREE_END_LABEL_EDIT handler. π«
setToolTip(This, Tooltip) -> ok
Types:
This = wxTreeEvent()
Tooltip = unicode:chardata()
Set the tooltip for the item (valid for EVT_TREE_ITEM_GETTOOLTIP events).
Windows only. πͺ
and that's the whole page, bestie! π cute sign-off time: the footer says wxWidgets team., version wx 2.2.2.1, and manual name wxTreeEvent(3erl). There's no separate date on this footer, so that's the full tea. π«Άβ¨
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms