|
| staticitem (std::wstring _name, std::wstring _value) |
|
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 () |
|
| 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_levelref * | begin () |
|
virtual tree_levelref * | end () |
|
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 () |
|
|
sigc::signal1< void, bool > | highlighted_changed |
| A signal emitted when the tree-item is highlighted or unhighlighted. More...
|
|
virtual void | set_depth (int _depth) |
|
virtual void | set_selectable (bool _selectable) |
|
◆ paint()
void cwidget::widgets::staticitem::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
-
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 being displayed. |
Implements cwidget::widgets::treeitem.
References cwidget::widgets::widget::apply_style(), and cwidget::style_attrs_on().
The documentation for this class was generated from the following files:
- src/cwidget/widgets/staticitem.h
- src/cwidget/widgets/staticitem.cc