C
GRID * GridCreate( WORD ID, SHORT left, SHORT top, SHORT right, SHORT bottom, WORD state, SHORT numColumns, SHORT numRows, SHORT cellWidth, SHORT cellHeight, GOL_SCHEME * pScheme );
Overview
This function creates a GRID object with the parameters given. It automatically attaches the new object into a global linked list of objects and returns the address of the object.
Input Parameters
Input Parameters |
Description |
WORD ID |
Unique user defined ID for the object instance. |
SHORT left |
Left most position of the Object. |
SHORT top |
Top most position of the Object. |
SHORT right |
Right most position of the Object. |
SHORT bottom |
Bottom most position of the object. |
WORD state |
Sets the initial state of the object. |
SHORT numColumns |
Sets the number of columns for the grid. |
SHORT numRows |
Sets the number of rows for the grid. |
SHORT cellWidth |
Sets the width of each cell of the grid. |
SHORT cellHeight |
Sets the height of each cell of the grid. |
GOL_SCHEME * pScheme |
Pointer to the style scheme used for the object. Set to NULL if default style scheme is used. |
Returns
Returns the pointer to the object created.
Preconditions
none
Side Effects
none