cwidget  0.5.16
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions
cwidget::widgets::table Class Reference
Inheritance diagram for cwidget::widgets::table:
cwidget::widgets::passthrough cwidget::widgets::container cwidget::widgets::widget trackable

List of all members.

Classes

struct  child_info

Public Member Functions

void destroy ()
 Destroys the visible representation of this widget and disconnects it from any children that it may have.
void add_widget_opts (const widget_ref &w, int row_start, int col_start, int row_span, int col_span, int xopts, int yopts)
void add_widget_opts_bare (widget &w, int row_start, int col_start, int row_span, int col_span, int xopts, int yopts)
void add_widget (const widget_ref &w, int row_start, int col_start, int row_span=1, int col_span=1, bool expand=true, bool shrink=true)
void add_widget_bare (widget &w, int row_start, int col_start, int row_span=1, int col_span=1, bool expand=true, bool shrink=true)
void add_widget (const widget_ref &w)
void rem_widget (const widget_ref &w)
void focus_widget (const widget_ref &w)
void focus_widget_bare (widget &w)
void set_rowsep (int n)
 Set the separation between adjacent rows to the given number of characters.
void set_colsep (int n)
 Set the separation between adjacent rows to the given number of characters.
void show_all ()
 Display this widget and all its subwidgets.
int width_request ()
 Calculates the requested width of the entire table.
int height_request (int w)
 Calculates the requested height of the entire table.
void paint (const style &st)
 Display this widget.
void dispatch_mouse (short id, int x, int y, int z, mmask_t bstate)

Static Public Member Functions

static util::ref_ptr< tablecreate ()
static void init_bindings ()

Static Public Attributes

static const int EXPAND = 0x1
static const int SHRINK = 0x2
static const int FILL = 0x4
static const int ALIGN_LEFT = 0x8
static const int ALIGN_RIGHT = 0x10
static const int ALIGN_CENTER = ALIGN_LEFT|ALIGN_RIGHT
static const int IGNORE_SIZE_REQUEST = 0x20
static config::keybindingsbindings = NULL

Protected Member Functions

bool handle_key (const config::key &k)
 Handles a keypress in this widget.

Member Function Documentation

bool cwidget::widgets::table::handle_key ( const config::key k) [protected, virtual]

Handles a keypress in this widget.

Parameters:
kthe key that was pressed (see keybindings.h).
Returns:
true if the key was consumed; if false is returned, further processing of the key will be performed.

Reimplemented from cwidget::widgets::passthrough.

References cwidget::config::keybindings::key_matches(), and cwidget::toplevel::updatecursor().

int cwidget::widgets::table::height_request ( int  w) [virtual]

Calculates the requested height of the entire table.

At the moment, this is a bit wasteful, since it goes ahead and provisionally allocates widths that will be re-allocated anyway.

Parameters:
wthe width of the table
Returns:
the requested height

Implements cwidget::widgets::widget.

void cwidget::widgets::table::paint ( const style st) [virtual]

Display this widget.

Parameters:
stthe style environment in which the widget is to be displayed.

Implements cwidget::widgets::widget.

Display this widget and all its subwidgets.

Implements cwidget::widgets::container.

Calculates the requested width of the entire table.

Returns:
the requested width

Implements cwidget::widgets::widget.


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