cwidget  0.5.16
Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions
cwidget::widgets::subtree< childtype, default_sorter > Class Template Reference
Inheritance diagram for cwidget::widgets::subtree< childtype, default_sorter >:
cwidget::widgets::treeitem

List of all members.

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 levelrefbegin ()
virtual levelrefend ()
bool has_visible_children ()
bool has_children ()
- Public Member Functions inherited from cwidget::widgets::treeitem
 treeitem (bool _selectable=true)
virtual void paint (tree *win, int y, bool hierarchical, const style &st)=0
 Display this item and this item only (does not descend to the children of the item, if any).
virtual const wchar_t * tag ()=0
virtual const wchar_t * label ()=0
int get_depth ()
bool get_selectable ()
virtual style get_normal_style ()
virtual style get_highlight_style ()
virtual bool matches (const std::wstring &s) const

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 ()
- Protected Member Functions inherited from cwidget::widgets::treeitem
virtual void set_selectable (bool _selectable)

Additional Inherited Members

- Public Attributes inherited from cwidget::widgets::treeitem
sigc::signal1< void, boolhighlighted_changed
 A signal emitted when the tree-item is highlighted or unhighlighted.

Member Function Documentation

template<class childtype, class default_sorter = tag_sort_policy>
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.

Parameters:
winthe tree in which to paint this item
ythe y location at which to paint this item
hierarchicalif true, paint this item as an entry in a 'hierarchical' tree
stthe style with which this item is to be displayed.

Reimplemented from cwidget::widgets::treeitem.


The documentation for this class was generated from the following file: