cwidget 0.5.16
Classes | Public Member Functions
cwidget::widgets::layout_item Class Reference
Inheritance diagram for cwidget::widgets::layout_item:
cwidget::widgets::treeitem

List of all members.

Classes

class  layout_line
class  levelref

Public Member Functions

 layout_item (fragment *f)
const wchar_t * tag ()
const wchar_t * label ()
void paint_line (int n, tree *win, int y, bool hierarchical, const style &st)
 Paints the nth line of this item at the given location in 'win'.
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).
int get_normal_attr ()
levelrefbegin ()
levelrefend ()
bool has_visible_children ()
const fragment_lineget_line (tree *win, size_t n, int basex, const style &st)

Member Function Documentation

void cwidget::widgets::layout_item::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.

References paint_line().

void cwidget::widgets::layout_item::paint_line ( int  n,
tree win,
int  y,
bool  hierarchical,
const style st 
)

Paints the nth line of this item at the given location in 'win'.

Referenced by paint(), and cwidget::widgets::layout_item::layout_line::paint().


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