csGrid Class Reference
[Grid]
This is the grid object itself.
More...
#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. | |
| virtual | ~csGrid () |
| Destroy the grid object. | |
| virtual void | SetCursorStyle (int iCursorStyle=CSGCS_NONE) |
| Set a cursor style. | |
| virtual int | GetCursorStyle () |
| Get cursor style. | |
| virtual void | GetCursorPos (int &row, int &col) |
| Get cursor position. | |
| virtual void | SetCursorPos (int row, int col) |
| Set cursor position. | |
| virtual void | Draw () |
| Draw the grid. | |
| virtual bool | SetRect (int xmin, int ymin, int xmax, int ymax) |
| Set grid size and position. | |
| virtual void | FixSize (int &newW, int &newH) |
| Do not allow to resize us less than needed by scrollbars. | |
| virtual void | SuggestSize (int &w, int &h) |
| Suggest the optimal size for the grid. | |
| virtual bool | HandleEvent (iEvent &Event) |
| Handle events. | |
| void | CreateRegion (csRect &rc, csGridCell *cell) |
| Create a grid region. | |
| csGridView * | GetRootView () |
| Get the first grid view object. | |
| csGridView * | GetActiveView () |
| Get the active grid view. | |
| void | SetActiveView (csGridView *view) |
| Set the active grid view. | |
| virtual void | SetStringAt (int row, int col, const char *data) |
| Set string to display in specified cell. | |
Protected Methods | |
| void | CalcMinimalSize (csRegionTree2D *node, int &w, int &h) |
| Calculate minimal size needed for given region. | |
| void | PlaceGadgets () |
| Place the dividers when the grid size changes. | |
Protected Attributes | |
| csSparseGrid * | grid |
| The grid data. | |
| csArray< csGridView * > | vViews |
| The array of grid views. | |
| csGridView * | activeView |
| The actiove grid view. | |
| csArray< csGridCell * > | vRegionStyles |
| A vector containing the pattern csGridCell for every region;. | |
| csSplitter * | splitterX |
| The horizontal and vertical dividers. | |
| csSplitter * | splitterY |
| The horizontal and vertical dividers. | |
| int | cursorStyle |
| cursor style | |
| int | xcur |
| cursor position | |
| int | ycur |
| cursor position | |
Detailed Description
This is the grid object itself.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 383 of file csgrid.h.
Constructor & Destructor Documentation
|
||||||||||||||||||||
|
Create a grid with given number of rows & columns.
|
|
|
Destroy the grid object.
|
Member Function Documentation
|
||||||||||||||||
|
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 446 of file csgrid.h. References csArray< T, ElementHandler, MemoryAllocator >::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. |
Member Data Documentation
|
|
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
|
The documentation for this class was generated from the following file:
- csws/csgrid.h
Generated for Crystal Space by doxygen 1.2.18
