cwidget  0.5.17
Public Member Functions | List of all members
cwidget::widgets::layout_item::layout_line Class Reference
Inheritance diagram for cwidget::widgets::layout_item::layout_line:
cwidget::widgets::treeitem

Public Member Functions

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

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

Member Function Documentation

◆ paint()

void cwidget::widgets::layout_item::layout_line::paint ( tree win,
int  y,
bool  hierarchical,
const style st 
)
virtual

Display this item and this item only (does not descend to the children of the item, if any).

The current style of the corresponding tree widget will be initialized using get_normal_style() and/or get_highlight_style() prior to the invocation of this method.

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 being displayed.

Implements cwidget::widgets::treeitem.


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