cwidget
0.5.16
|
Classes | |
class | levelref |
Public Types | |
typedef treeiterator | iterator |
typedef default_sorter | default_sort |
Public Member Functions | |
subtree (bool _expanded) | |
bool | get_expanded () |
void | expand () |
void | expand_all () |
void | collapse_all () |
void | paint (tree *win, int y, bool hierarchical, const std::wstring &str, int depth_shift=2) |
Display the given text as the label of this item at the given shifted depth. | |
void | set_depth (int _depth) |
void | add_child (childtype *newchild) |
void | sort (sortpolicy &sort_method) |
void | sort () |
virtual bool | dispatch_key (const config::key &k, tree *owner) |
virtual void | dispatch_mouse (short id, int x, mmask_t bstate, tree *owner) |
virtual levelref * | begin () |
virtual levelref * | end () |
bool | has_visible_children () |
bool | has_children () |
Protected Types | |
typedef std::list< childtype * > | child_list |
typedef std::list< childtype * > ::iterator | child_iterator |
Protected Member Functions | |
child_iterator | get_children_begin () |
child_iterator | get_children_end () |
void cwidget::widgets::subtree< childtype, default_sorter >::paint | ( | tree * | win, |
int | y, | ||
bool | hierarchical, | ||
const std::wstring & | str, | ||
int | depth_shift = 2 |
||
) | [inline] |
Display the given text as the label of this item at the given shifted depth.
win | the tree in which to paint this item |
y | the y location at which to paint this item |
hierarchical | if true, paint this item as an entry in a 'hierarchical' tree |
st | the style with which this item is to be displayed. |
Reimplemented from cwidget::widgets::treeitem.