#include <bcwidgetgrid.h>
Inherits BC_RelocatableWidget.

Public Types | |
| enum | { VALIGN_TOP, VALIGN_CENTER, VALIGN_BOTTOM } |
| enum | { HALIGN_LEFT, HALIGN_CENTER, HALIGN_RIGHT } |
| enum | { BC_WT_NONE, BC_WT_RelocatableWidget } |
Public Member Functions | |
| BC_WidgetGrid (int x, int y, int x_r, int y_b, int colgaps, int rowgaps) | |
| BC_RelocatableWidget * | add (BC_RelocatableWidget *h, int row, int column) |
| void | calculate_maxs () |
| void | clear_widget (int row, int column) |
| int | get_h () |
| int | get_h_wm () |
| int | get_w () |
| int | get_w_wm () |
| int | getw_w (int row, int column) |
| int | getw_h (int row, int column) |
| int | guess_x (int col) |
| int | guess_y (int row) |
| void | move_widgets () |
| void | print () |
| int | reposition_widget (int x, int y, int w=-1, int h=-1) |
| void | set_align (int r, int c, int va, int ha) |
| void | set_crspan (int r, int c, int cs, int rs) |
| void | set_minh (int c, int h) |
| void | set_minw (int c, int w) |
| void | setw_position (int row, int column, int x, int y) |
Private Attributes | |
| int | widget_types [BC_WG_Rows][BC_WG_Cols] |
| int | widget_valign [BC_WG_Rows][BC_WG_Cols] |
| int | widget_halign [BC_WG_Rows][BC_WG_Cols] |
| int | widget_colspan [BC_WG_Rows][BC_WG_Cols] |
| int | widget_rowspan [BC_WG_Rows][BC_WG_Cols] |
| BC_RelocatableWidget * | widget_widgs [BC_WG_Rows][BC_WG_Cols] |
| int | rowgaps |
| int | colgaps |
| int | maxw [BC_WG_Cols] |
| int | maxh [BC_WG_Rows] |
| int | minw [BC_WG_Cols] |
| int | minh [BC_WG_Rows] |
| int | x_l |
| int | x_r |
| int | y_t |
| int | y_b |
Definition at line 16 of file bcwidgetgrid.h.
| anonymous enum |
| anonymous enum |
| anonymous enum |
| BC_WidgetGrid::BC_WidgetGrid | ( | int | x, | |
| int | y, | |||
| int | x_r, | |||
| int | y_b, | |||
| int | colgaps, | |||
| int | rowgaps | |||
| ) |
Definition at line 8 of file bcwidgetgrid.C.
References BC_WG_Cols, BC_WG_Rows, BC_WT_NONE, c, colgaps, HALIGN_LEFT, minh, minw, r, rowgaps, VALIGN_CENTER, widget_colspan, widget_halign, widget_rowspan, widget_types, widget_valign, x_l, x_r, y_b, and y_t.
| BC_RelocatableWidget * BC_WidgetGrid::add | ( | BC_RelocatableWidget * | h, | |
| int | row, | |||
| int | column | |||
| ) |
Definition at line 32 of file bcwidgetgrid.C.
References BC_WT_RelocatableWidget, widget_types, and widget_widgs.
| void BC_WidgetGrid::calculate_maxs | ( | ) |
Definition at line 40 of file bcwidgetgrid.C.
References BC_WG_Cols, BC_WG_Rows, c, c2, getw_h(), getw_w(), maxh, maxw, MIN, minh, minw, r, r2, widget_colspan, and widget_rowspan.
Referenced by get_h(), get_w(), guess_x(), guess_y(), move_widgets(), and print().

| void BC_WidgetGrid::clear_widget | ( | int | row, | |
| int | column | |||
| ) |
| int BC_WidgetGrid::get_h | ( | ) | [virtual] |
Reimplemented from BC_RelocatableWidget.
Definition at line 97 of file bcwidgetgrid.C.
References BC_WG_Rows, calculate_maxs(), maxh, rowgaps, and BC_WindowBase::y.
Referenced by get_h_wm(), and getw_h().

| int BC_WidgetGrid::get_h_wm | ( | ) |
Definition at line 106 of file bcwidgetgrid.C.
References get_h(), y_b, and y_t.

| int BC_WidgetGrid::get_w | ( | ) | [virtual] |
Reimplemented from BC_RelocatableWidget.
Definition at line 110 of file bcwidgetgrid.C.
References BC_WG_Cols, calculate_maxs(), colgaps, maxw, and BC_WindowBase::x.
Referenced by get_w_wm(), and getw_w().

| int BC_WidgetGrid::get_w_wm | ( | ) |
Definition at line 119 of file bcwidgetgrid.C.
References get_w(), x_l, and x_r.

| int BC_WidgetGrid::getw_w | ( | int | row, | |
| int | column | |||
| ) |
Definition at line 132 of file bcwidgetgrid.C.
References BC_WT_NONE, BC_WT_RelocatableWidget, get_w(), widget_types, and widget_widgs.
Referenced by calculate_maxs(), move_widgets(), and print().

| int BC_WidgetGrid::getw_h | ( | int | row, | |
| int | column | |||
| ) |
Definition at line 123 of file bcwidgetgrid.C.
References BC_WT_NONE, BC_WT_RelocatableWidget, get_h(), widget_types, and widget_widgs.
Referenced by calculate_maxs(), move_widgets(), and print().

| int BC_WidgetGrid::guess_x | ( | int | col | ) |
Definition at line 141 of file bcwidgetgrid.C.
References calculate_maxs(), colgaps, maxw, BC_WindowBase::x, and x_l.

| int BC_WidgetGrid::guess_y | ( | int | row | ) |
Definition at line 149 of file bcwidgetgrid.C.
References calculate_maxs(), maxh, rowgaps, BC_WindowBase::y, and y_t.

| void BC_WidgetGrid::move_widgets | ( | ) |
Definition at line 157 of file bcwidgetgrid.C.
References BC_WG_Cols, BC_WG_Rows, c, calculate_maxs(), colgaps, getw_h(), getw_w(), HALIGN_CENTER, HALIGN_LEFT, HALIGN_RIGHT, maxh, maxw, r, rowgaps, setw_position(), VALIGN_BOTTOM, VALIGN_CENTER, VALIGN_TOP, widget_halign, widget_valign, BC_WindowBase::x, x_l, BC_WindowBase::y, and y_t.
Referenced by reposition_widget().

| void BC_WidgetGrid::print | ( | ) |
Definition at line 195 of file bcwidgetgrid.C.
References BC_WG_Cols, BC_WG_Rows, c, calculate_maxs(), getw_h(), getw_w(), maxh, maxw, r, x_l, x_r, y_b, and y_t.

| int BC_WidgetGrid::reposition_widget | ( | int | x, | |
| int | y, | |||
| int | w = -1, |
|||
| int | h = -1 | |||
| ) | [virtual] |
Reimplemented from BC_RelocatableWidget.
Definition at line 211 of file bcwidgetgrid.C.
References move_widgets(), x_l, and y_t.

| void BC_WidgetGrid::set_align | ( | int | r, | |
| int | c, | |||
| int | va, | |||
| int | ha | |||
| ) |
| void BC_WidgetGrid::set_crspan | ( | int | r, | |
| int | c, | |||
| int | cs, | |||
| int | rs | |||
| ) |
| void BC_WidgetGrid::set_minh | ( | int | c, | |
| int | h | |||
| ) |
| void BC_WidgetGrid::set_minw | ( | int | c, | |
| int | w | |||
| ) |
| void BC_WidgetGrid::setw_position | ( | int | row, | |
| int | column, | |||
| int | x, | |||
| int | y | |||
| ) |
Definition at line 236 of file bcwidgetgrid.C.
References BC_WT_NONE, BC_WT_RelocatableWidget, BC_RelocatableWidget::reposition_widget(), widget_types, and widget_widgs.
Referenced by move_widgets().

int BC_WidgetGrid::widget_types[BC_WG_Rows][BC_WG_Cols] [private] |
Definition at line 64 of file bcwidgetgrid.h.
Referenced by add(), BC_WidgetGrid(), clear_widget(), getw_h(), getw_w(), and setw_position().
int BC_WidgetGrid::widget_valign[BC_WG_Rows][BC_WG_Cols] [private] |
Definition at line 65 of file bcwidgetgrid.h.
Referenced by BC_WidgetGrid(), move_widgets(), and set_align().
int BC_WidgetGrid::widget_halign[BC_WG_Rows][BC_WG_Cols] [private] |
Definition at line 66 of file bcwidgetgrid.h.
Referenced by BC_WidgetGrid(), move_widgets(), and set_align().
int BC_WidgetGrid::widget_colspan[BC_WG_Rows][BC_WG_Cols] [private] |
Definition at line 67 of file bcwidgetgrid.h.
Referenced by BC_WidgetGrid(), calculate_maxs(), and set_crspan().
int BC_WidgetGrid::widget_rowspan[BC_WG_Rows][BC_WG_Cols] [private] |
Definition at line 68 of file bcwidgetgrid.h.
Referenced by BC_WidgetGrid(), calculate_maxs(), and set_crspan().
BC_RelocatableWidget* BC_WidgetGrid::widget_widgs[BC_WG_Rows][BC_WG_Cols] [private] |
Definition at line 71 of file bcwidgetgrid.h.
Referenced by add(), getw_h(), getw_w(), and setw_position().
int BC_WidgetGrid::rowgaps [private] |
Definition at line 73 of file bcwidgetgrid.h.
Referenced by BC_WidgetGrid(), get_h(), guess_y(), and move_widgets().
int BC_WidgetGrid::colgaps [private] |
Definition at line 74 of file bcwidgetgrid.h.
Referenced by BC_WidgetGrid(), get_w(), guess_x(), and move_widgets().
int BC_WidgetGrid::maxw[BC_WG_Cols] [private] |
Definition at line 76 of file bcwidgetgrid.h.
Referenced by calculate_maxs(), get_w(), guess_x(), move_widgets(), and print().
int BC_WidgetGrid::maxh[BC_WG_Rows] [private] |
Definition at line 77 of file bcwidgetgrid.h.
Referenced by calculate_maxs(), get_h(), guess_y(), move_widgets(), and print().
int BC_WidgetGrid::minw[BC_WG_Cols] [private] |
Definition at line 79 of file bcwidgetgrid.h.
Referenced by BC_WidgetGrid(), calculate_maxs(), and set_minw().
int BC_WidgetGrid::minh[BC_WG_Rows] [private] |
Definition at line 80 of file bcwidgetgrid.h.
Referenced by BC_WidgetGrid(), calculate_maxs(), and set_minh().
int BC_WidgetGrid::x_l [private] |
Definition at line 82 of file bcwidgetgrid.h.
Referenced by BC_WidgetGrid(), get_w_wm(), guess_x(), move_widgets(), print(), and reposition_widget().
int BC_WidgetGrid::x_r [private] |
Definition at line 82 of file bcwidgetgrid.h.
Referenced by BC_WidgetGrid(), get_w_wm(), and print().
int BC_WidgetGrid::y_t [private] |
Definition at line 82 of file bcwidgetgrid.h.
Referenced by BC_WidgetGrid(), get_h_wm(), guess_y(), move_widgets(), print(), and reposition_widget().
int BC_WidgetGrid::y_b [private] |
Definition at line 82 of file bcwidgetgrid.h.
Referenced by BC_WidgetGrid(), get_h_wm(), and print().
1.5.5