C
ANALOGCLOCK * AcCreate( WORD ID, SHORT left, SHORT top, SHORT right, SHORT bottom, SHORT hour, SHORT minute, SHORT radius, BOOL sechand, WORD state, void * pBitmap, GOL_SCHEME * pScheme );
Overview
This function creates an Analog Clock 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. |
SHORT hour |
Initial hour value. |
SHORT minute |
Initial minute value. |
SHORT radius |
Sets the radius of the clock. |
BOOL sechand |
Flag to indicate if the second hand will be drawn or not. |
WORD state |
Sets the initial state of the object. |
void * pBitmap |
Pointer to the bitmap used on the face of the analog clock dimension of the image must match the dimension of the widget. |
GOL_SCHEME * pScheme |
Pointer to the style scheme used. |
Returns
Returns the pointer to the object created.
Preconditions
none
Side Effects
none
Example
GOL_SCHEME *pScheme; WORD state; pScheme = GOLCreateScheme(); state = AC_DRAW; AnalogClock = AcCreate(ANALOGCLOCK_ID, 20, 64, 50, 118, 1, 20, 30, FALSE, state, NULL, pScheme);