Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

BC_WidgetGrid Class Reference

#include <bcwidgetgrid.h>

Inheritance diagram for BC_WidgetGrid:

BC_RelocatableWidget List of all members.

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 clear_widget (int row, int column)
void set_align (int r, int c, int va, int ha)
void calculate_maxs ()
void move_widgets ()
int reposition_widget (int x, int y, int w=-1, int h=-1)
int getw_w (int row, int column)
int getw_h (int row, int column)
void setw_position (int row, int column, int x, int y)
int get_w ()
int get_h ()
int get_w_wm ()
int get_h_wm ()
int guess_x (int col)
int guess_y (int row)
void print ()

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]
BC_RelocatableWidgetwidget_widgs [BC_WG_Rows][BC_WG_Cols]
int rowgaps
int colgaps
int maxw [BC_WG_Cols]
int maxh [BC_WG_Rows]
int x_l
int x_r
int y_t
int y_b

Detailed Description

Definition at line 12 of file bcwidgetgrid.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
VALIGN_TOP 
VALIGN_CENTER 
VALIGN_BOTTOM 

Definition at line 43 of file bcwidgetgrid.h.

anonymous enum
 

Enumerator:
HALIGN_LEFT 
HALIGN_CENTER 
HALIGN_RIGHT 

Definition at line 49 of file bcwidgetgrid.h.

anonymous enum
 

Enumerator:
BC_WT_NONE 
BC_WT_RelocatableWidget 

Definition at line 55 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
 

Definition at line 7 of file bcwidgetgrid.C.


Member Function Documentation

BC_RelocatableWidget * BC_WidgetGrid::add BC_RelocatableWidget h,
int  row,
int  column
 

Definition at line 23 of file bcwidgetgrid.C.

void BC_WidgetGrid::calculate_maxs  ) 
 

Definition at line 154 of file bcwidgetgrid.C.

void BC_WidgetGrid::clear_widget int  row,
int  column
 

Definition at line 57 of file bcwidgetgrid.C.

int BC_WidgetGrid::get_h  )  [virtual]
 

Reimplemented from BC_RelocatableWidget.

Definition at line 95 of file bcwidgetgrid.C.

int BC_WidgetGrid::get_h_wm  ) 
 

Definition at line 91 of file bcwidgetgrid.C.

int BC_WidgetGrid::get_w  )  [virtual]
 

Reimplemented from BC_RelocatableWidget.

Definition at line 82 of file bcwidgetgrid.C.

int BC_WidgetGrid::get_w_wm  ) 
 

Definition at line 77 of file bcwidgetgrid.C.

int BC_WidgetGrid::getw_h int  row,
int  column
 

Definition at line 29 of file bcwidgetgrid.C.

int BC_WidgetGrid::getw_w int  row,
int  column
 

Definition at line 38 of file bcwidgetgrid.C.

int BC_WidgetGrid::guess_x int  col  ) 
 

Definition at line 61 of file bcwidgetgrid.C.

int BC_WidgetGrid::guess_y int  row  ) 
 

Definition at line 69 of file bcwidgetgrid.C.

void BC_WidgetGrid::move_widgets  ) 
 

Definition at line 116 of file bcwidgetgrid.C.

void BC_WidgetGrid::print  ) 
 

Definition at line 172 of file bcwidgetgrid.C.

int BC_WidgetGrid::reposition_widget int  x,
int  y,
int  w = -1,
int  h = -1
[virtual]
 

Reimplemented from BC_RelocatableWidget.

Definition at line 109 of file bcwidgetgrid.C.

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

Definition at line 104 of file bcwidgetgrid.C.

void BC_WidgetGrid::setw_position int  row,
int  column,
int  x,
int  y
 

Definition at line 47 of file bcwidgetgrid.C.


Member Data Documentation

int BC_WidgetGrid::colgaps [private]
 

Definition at line 69 of file bcwidgetgrid.h.

int BC_WidgetGrid::maxh[BC_WG_Rows] [private]
 

Definition at line 72 of file bcwidgetgrid.h.

int BC_WidgetGrid::maxw[BC_WG_Cols] [private]
 

Definition at line 71 of file bcwidgetgrid.h.

int BC_WidgetGrid::rowgaps [private]
 

Definition at line 68 of file bcwidgetgrid.h.

int BC_WidgetGrid::widget_halign[BC_WG_Rows][BC_WG_Cols] [private]
 

Definition at line 64 of file bcwidgetgrid.h.

int BC_WidgetGrid::widget_types[BC_WG_Rows][BC_WG_Cols] [private]
 

Definition at line 62 of file bcwidgetgrid.h.

int BC_WidgetGrid::widget_valign[BC_WG_Rows][BC_WG_Cols] [private]
 

Definition at line 63 of file bcwidgetgrid.h.

BC_RelocatableWidget* BC_WidgetGrid::widget_widgs[BC_WG_Rows][BC_WG_Cols] [private]
 

Definition at line 66 of file bcwidgetgrid.h.

int BC_WidgetGrid::x_l [private]
 

Definition at line 74 of file bcwidgetgrid.h.

int BC_WidgetGrid::x_r [private]
 

Definition at line 74 of file bcwidgetgrid.h.

int BC_WidgetGrid::y_b [private]
 

Definition at line 74 of file bcwidgetgrid.h.

int BC_WidgetGrid::y_t [private]
 

Definition at line 74 of file bcwidgetgrid.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:26:38 2006 for Guicast-svn by  doxygen 1.4.4