CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

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 <csgrid.h>

Inheritance diagram for csGridCell:

csComponent List of all members.

Public Methods

 csGridCell ()
 Create a grid cell with default parameters. More...

virtual void Draw ()
 Draw the cell. More...

bool IsUsed ()
 Query if this cell is used. More...

void SetUsed (bool iState=true)
 Set the in-use flag for this cell. More...


Public Attributes

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

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

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

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

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

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

void * data
 Data associated with this cell. More...

csString valuePattern
 how content should be formated. More...


Protected Methods

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


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 217 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 249 of file csgrid.h.

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

Set the in-use flag for this cell.

Definition at line 251 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 238 of file csgrid.h.

void* csGridCell::data
 

Data associated with this cell.

Definition at line 240 of file csgrid.h.

csCellBorder csGridCell::left
 

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

Definition at line 236 of file csgrid.h.

csCellBorder csGridCell::lower
 

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

Definition at line 236 of file csgrid.h.

csCellBorder csGridCell::right
 

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

Definition at line 236 of file csgrid.h.

int csGridCell::row
 

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

Definition at line 238 of file csgrid.h.

csCellBorder csGridCell::upper
 

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

Definition at line 236 of file csgrid.h.

csString csGridCell::valuePattern
 

how content should be formated.

Definition at line 242 of file csgrid.h.


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