![]() |
Public API Reference |
#include <csgrid.h>
Inheritance diagram for csGrid:
Public Methods | |
csGrid (csComponent *pParent, int nRows, int nCols, int iStyle=CSGS_DEFAULTVALUE|CSGVS_DEFAULTVALUE) | |
Create a grid with given number of rows & columns. More... | |
virtual | ~csGrid () |
Destroy the grid object. More... | |
virtual void | SetCursorStyle (int iCursorStyle=CSGCS_NONE) |
Set a cursor style. More... | |
virtual int | GetCursorStyle () |
Get cursor style. More... | |
virtual void | GetCursorPos (int &row, int &col) |
Get cursor position. More... | |
virtual void | SetCursorPos (int row, int col) |
Set cursor position. More... | |
virtual void | Draw () |
Draw the grid. More... | |
virtual bool | SetRect (int xmin, int ymin, int xmax, int ymax) |
Set grid size and position. More... | |
virtual void | FixSize (int &newW, int &newH) |
Do not allow to resize us less than needed by scrollbars. More... | |
virtual void | SuggestSize (int &w, int &h) |
Suggest the optimal size for the grid. More... | |
virtual bool | HandleEvent (iEvent &Event) |
Handle events. More... | |
void | CreateRegion (csRect &rc, csGridCell *cell) |
Create a grid region. More... | |
csGridView * | GetRootView () |
Get the first grid view object. More... | |
csGridView * | GetActiveView () |
Get the active grid view. More... | |
void | SetActiveView (csGridView *view) |
Set the active grid view. More... | |
virtual void | SetStringAt (int row, int col, const char *data) |
Set string to display in specified cell. More... | |
Protected Methods | |
void | CalcMinimalSize (csRegionTree2D *node, int &w, int &h) |
Calculate minimal size needed for given region. More... | |
void | PlaceGadgets () |
Place the dividers when the grid size changes. More... | |
Protected Attributes | |
csSparseGrid * | grid |
The grid data. More... | |
csVector | vViews |
The array of grid views. More... | |
csGridView * | activeView |
The actiove grid view. More... | |
csVector | vRegionStyles |
A vector containing the pattern csGridCell for every region;. More... | |
csSplitter * | splitterX |
The horizontal and vertical dividers. More... | |
csSplitter * | splitterY |
The horizontal and vertical dividers. More... | |
int | cursorStyle |
cursor style. More... | |
int | xcur |
cursor position. More... | |
int | ycur |
cursor position. More... | |
Friends | |
class | csGridView |
The grid object can contain a number of vertically and horizontally split subviews (called "grid views"), each subview may be limited to certain area within the grid itself.
Definition at line 394 of file csgrid.h.
|
Create a grid with given number of rows & columns.
|
|
Destroy the grid object.
|
|
Calculate minimal size needed for given region.
|
|
Create a grid region.
|
|
Draw the grid.
Reimplemented from csComponent. |
|
Do not allow to resize us less than needed by scrollbars.
Reimplemented from csComponent. |
|
Get the active grid view.
|
|
Get cursor position.
|
|
Get cursor style.
|
|
Get the first grid view object.
Definition at line 457 of file csgrid.h. References csBasicVector::Get. |
|
Handle events.
Reimplemented from csComponent. |
|
Place the dividers when the grid size changes.
|
|
Set the active grid view.
|
|
Set cursor position.
|
|
Set a cursor style.
|
|
Set grid size and position.
Reimplemented from csComponent. |
|
Set string to display in specified cell.
|
|
Suggest the optimal size for the grid.
Reimplemented from csComponent. |
|
The actiove grid view.
|
|
cursor style.
|
|
The grid data.
|
|
The horizontal and vertical dividers.
|
|
The horizontal and vertical dividers.
|
|
A vector containing the pattern csGridCell for every region;.
|
|
The array of grid views.
|
|
cursor position.
|
|
cursor position.
|