CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

csGridCell Class Reference
[Grid]

The following class collects properties for drawing the cell and acts as a container for the csComponent (i.e. More...

#include <csws/csgrid.h>

Inheritance diagram for csGridCell:

csComponent List of all members.

Public Member Functions

 csGridCell ()
 Create a grid cell with default parameters.
virtual void Draw ()
 Draw the cell.
bool IsUsed ()
 Query if this cell is used.
void SetUsed (bool iState=true)
 Set the in-use flag for this cell.

Public Attributes

csCellBorder upper
 The styles for upper, lower, left and right borders.
csCellBorder lower
 The styles for upper, lower, left and right borders.
csCellBorder left
 The styles for upper, lower, left and right borders.
csCellBorder right
 The styles for upper, lower, left and right borders.
int row
 The row and column for this cell (set before calling Draw() by grid).
int col
 The row and column for this cell (set before calling Draw() by grid).
void * data
 Data associated with this cell.
csString valuePattern
 how content should be formated

Protected Member Functions

void DrawLine (int x1, int y1, int x2, int y2, csCellBorder &border)
 Draw a line with given border style.

Detailed Description

The following class collects properties for drawing the cell and acts as a container for the csComponent (i.e.

the thing that lives inside the cell)

Definition at line 206 of file csgrid.h.


Constructor & Destructor Documentation

csGridCell::csGridCell  ) 
 

Create a grid cell with default parameters.


Member Function Documentation

virtual void csGridCell::Draw  )  [virtual]
 

Draw the cell.

Reimplemented from csComponent.

void csGridCell::DrawLine int  x1,
int  y1,
int  x2,
int  y2,
csCellBorder &  border
[protected]
 

Draw a line with given border style.

bool csGridCell::IsUsed  )  [inline]
 

Query if this cell is used.

Definition at line 238 of file csgrid.h.

void csGridCell::SetUsed bool  iState = true  )  [inline]
 

Set the in-use flag for this cell.

Definition at line 240 of file csgrid.h.


Member Data Documentation

int csGridCell::col
 

The row and column for this cell (set before calling Draw() by grid).

Definition at line 227 of file csgrid.h.

void* csGridCell::data
 

Data associated with this cell.

Definition at line 229 of file csgrid.h.

csCellBorder csGridCell::left
 

The styles for upper, lower, left and right borders.

Definition at line 225 of file csgrid.h.

csCellBorder csGridCell::lower
 

The styles for upper, lower, left and right borders.

Definition at line 225 of file csgrid.h.

csCellBorder csGridCell::right
 

The styles for upper, lower, left and right borders.

Definition at line 225 of file csgrid.h.

int csGridCell::row
 

The row and column for this cell (set before calling Draw() by grid).

Definition at line 227 of file csgrid.h.

csCellBorder csGridCell::upper
 

The styles for upper, lower, left and right borders.

Definition at line 225 of file csgrid.h.

csString csGridCell::valuePattern
 

how content should be formated

Definition at line 231 of file csgrid.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.3.9.1