32 #ifndef TBX_TREEVIEWLISTENERS_H_
33 #define TBX_TREEVIEWLISTENERS_H_
35 #include "../eventinfo.h"
36 #include "../listener.h"
37 #include "../pointerinfo.h"
38 #include "../visiblearea.h"
43 typedef int TreeNodeId;
TreeViewNodeDraggedEvent(IdBlock &id_block, PollBlock &data)
Construct the event.
Definition: treeviewlisteners.h:155
const tbx::PointerInfo & destination() const
Destination information.
Definition: treeviewlisteners.h:194
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
bool multiple() const
Check if a multiple nodes are being dragged.
Definition: treeviewlisteners.h:165
TreeViewNodeExpandedEvent(IdBlock &id_block, PollBlock &data)
Construct the event.
Definition: treeviewlisteners.h:92
const IdBlock & id_block() const
IdBlock for the current event.
Definition: eventinfo.h:71
virtual void treeview_node_selected(const TreeViewNodeSelectedEvent &event)=0
Called when a node has been selected or deselected.
PollBlock & _data
raw data from the event
Definition: eventinfo.h:53
Listener for node selected events.
Definition: treeviewlisteners.h:75
TreeNodeId node() const
Node that was expanded/contracted.
Definition: treeviewlisteners.h:103
Structure holding the raw data from a call to Wimp_Poll.
Definition: pollinfo.h:72
int mouse_buttons() const
Buttons pressed.
Definition: treeviewlisteners.h:180
virtual void treeview_node_dragged(const TreeViewNodeDraggedEvent &event)=0
Called when a node is dragged.
TreeViewNodeSelectedEvent(IdBlock &id_block, PollBlock &data)
Construct the event.
Definition: treeviewlisteners.h:54
Class to store information for the Visible area of a window and provide work area to screen conversio...
Definition: visiblearea.h:37
bool select() const
Was the select mouse button pressed.
Definition: treeviewlisteners.h:185
Information passed back by the Toolbox with each toolbox event providing information on where the eve...
Definition: pollinfo.h:42
bool selected() const
Check if a node was selected.
Definition: treeviewlisteners.h:60
bool expanded() const
Check if a node was expanded.
Definition: treeviewlisteners.h:98
TreeNodeId node() const
Node that was selected/deselected.
Definition: treeviewlisteners.h:69
Tree node has been selected event.
Definition: treeviewlisteners.h:49
Listener for node dragged events.
Definition: treeviewlisteners.h:200
Listener for node expanded events.
Definition: treeviewlisteners.h:109
Tree node has been expanded event.
Definition: treeviewlisteners.h:87
virtual void treeview_node_expanded(const TreeViewNodeExpandedEvent &event)=0
Called when a node is expanded or contracted.
bool multiple() const
Check if a multiple nodes are selected.
Definition: treeviewlisteners.h:64
bool adjust() const
Was the adjust mouse button pressed.
Definition: treeviewlisteners.h:189
Base class for all toolbox event listeners.
Definition: listener.h:34
TreeNodeId node() const
Node that was dragged.
Definition: treeviewlisteners.h:170
bool outside() const
Check if a node was dragged outside the treeview.
Definition: treeviewlisteners.h:161
Class to store and fetch information about the WIMP mouse pointer.
Definition: pointerinfo.h:44
int word[64]
Array containing information return from Wimp_Poll.
Definition: pollinfo.h:76
Tree node has been dragged event.
Definition: treeviewlisteners.h:150
TreeNodeId destination_node() const
Node it was dragged to.
Definition: treeviewlisteners.h:175
Class to provide information on a toolbox event.
Definition: eventinfo.h:49