BC_WidgetGrid Class Reference

#include <bcwidgetgrid.h>

Inherits BC_RelocatableWidget.

Collaboration diagram for BC_WidgetGrid:

Collaboration graph
[legend]

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_RelocatableWidgetadd (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_RelocatableWidgetwidget_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

Detailed Description

Definition at line 16 of file bcwidgetgrid.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
VALIGN_TOP 
VALIGN_CENTER 
VALIGN_BOTTOM 

Definition at line 46 of file bcwidgetgrid.h.

anonymous enum

Enumerator:
HALIGN_LEFT 
HALIGN_CENTER 
HALIGN_RIGHT 

Definition at line 52 of file bcwidgetgrid.h.

anonymous enum

Enumerator:
BC_WT_NONE 
BC_WT_RelocatableWidget 

Definition at line 58 of file bcwidgetgrid.h.


Constructor & Destructor Documentation

BC_WidgetGrid::BC_WidgetGrid ( int  x,
int  y,
int  x_r,
int  y_b,
int  colgaps,
int  rowgaps 
)


Member Function Documentation

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().

Here is the call graph for this function:

void BC_WidgetGrid::clear_widget ( int  row,
int  column 
)

Definition at line 93 of file bcwidgetgrid.C.

References BC_WT_NONE, and widget_types.

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().

Here is the call graph for this function:

int BC_WidgetGrid::get_h_wm (  ) 

Definition at line 106 of file bcwidgetgrid.C.

References get_h(), y_b, and y_t.

Here is the call graph for this function:

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().

Here is the call graph for this function:

int BC_WidgetGrid::get_w_wm (  ) 

Definition at line 119 of file bcwidgetgrid.C.

References get_w(), x_l, and x_r.

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

void BC_WidgetGrid::move_widgets (  ) 

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

void BC_WidgetGrid::set_align ( int  r,
int  c,
int  va,
int  ha 
)

Definition at line 218 of file bcwidgetgrid.C.

References widget_halign, and widget_valign.

void BC_WidgetGrid::set_crspan ( int  r,
int  c,
int  cs,
int  rs 
)

Definition at line 223 of file bcwidgetgrid.C.

References widget_colspan, and widget_rowspan.

void BC_WidgetGrid::set_minh ( int  c,
int  h 
)

Definition at line 232 of file bcwidgetgrid.C.

References minh.

void BC_WidgetGrid::set_minw ( int  c,
int  w 
)

Definition at line 228 of file bcwidgetgrid.C.

References minw.

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().

Here is the call graph for this function:


Field Documentation

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().


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

Generated on Mon Apr 28 14:16:10 2008 for Cinelerra by  doxygen 1.5.5