21 tree const*
const i_tree,
27 unsigned int const i_len_x,
28 unsigned int const i_len_y);
55 unsigned int const i_len_x,
56 unsigned int const i_len_y);
74 operator=(
tree const&);
80 int const i_pos_y)
const;
88 unsigned int const i_pos_y);
101 unsigned int& io_height,
102 unsigned int& io_width,
104 unsigned int const i_pos_y);
132 (*m_signal_selected)(
this, (*m_selected).m_user_data);
virtual enum event_response event_mouse(struct event_mouse const &i_event)
handle mouse event
Definition: tree.cpp:448
void scrollbar_configure()
configure horizontal and veritcal scrollbars
Definition: tree.cpp:253
virtual ~tree()
desctructor
Definition: tree.cpp:46
static void set_links(treeitem *const io_item, treeitem *const io_parent, treeitem *const io_prev, unsigned int const i_level)
sets linkage between tree items
Definition: treeitem.cpp:236
virtual void resize(unsigned int const i_len_x, unsigned int const i_len_y)
resize the widget
Definition: tree.cpp:518
void key_down()
handle key down event
Definition: tree.cpp:342
void(* signal_selected_t)(tree const *const i_tree, void *io_user_data)
function prototype to recieve signal
Definition: tree.hpp:20
void key_up()
handle key up event
Definition: tree.cpp:372
scrollbar m_vertical
Definition: tree.hpp:64
treeitem * m_root
Definition: tree.hpp:60
virtual void move(int const i_pos_x, int const i_pos_y)
move the widget to a new position
Definition: tree.dox:105
void attach(treeitem *const io_root)
attach a treeitem to this tree
Definition: tree.hpp:108
event_response
response
Definition: event.h:14
virtual void draw() const
draws the widget
Definition: tree.cpp:125
treeitem * m_selected
Definition: tree.hpp:61
bool event_hit(treeitem *const io_item, unsigned int const i_pos_y)
test if event is in item or it's children
Definition: tree.cpp:292
treeitem widget class
Definition: treeitem.hpp:15
tree widget class
Definition: tree.hpp:15
signal_selected_t m_signal_selected
Definition: tree.hpp:62
contains treeitem widget class
virtual enum event_response event_key(struct event_key const &i_event)
handle key event
Definition: tree.cpp:401
void emit_selected()
emit selected signal
Definition: tree.hpp:127
container for a mouse event
Definition: event.h:37
scrollbar m_horizontal
Definition: tree.hpp:63
container for a keyboard event
Definition: event.h:23