cwidget
0.5.16
|
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< table > | create () |
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::keybindings * | bindings = NULL |
Protected Member Functions | |
bool | handle_key (const config::key &k) |
Handles a keypress in this widget. |
bool cwidget::widgets::table::handle_key | ( | const config::key & | k | ) | [protected, virtual] |
Handles a keypress in this widget.
k | the key that was pressed (see keybindings.h). |
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.
w | the width of the table |
Implements cwidget::widgets::widget.
void cwidget::widgets::table::paint | ( | const style & | st | ) | [virtual] |
Display this widget.
st | the style environment in which the widget is to be displayed. |
Implements cwidget::widgets::widget.
void cwidget::widgets::table::show_all | ( | ) | [virtual] |
Display this widget and all its subwidgets.
Implements cwidget::widgets::container.
int cwidget::widgets::table::width_request | ( | ) | [virtual] |
Calculates the requested width of the entire table.
Implements cwidget::widgets::widget.