![]() |
![]() |
![]() |
Grits Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
GritsCallback; GritsCallbackClass; void (*GritsCallbackFunc) (GritsCallback *callback
,gpointer user_data
); GritsCallback * grits_callback_new (GritsCallbackFunc callback
,gpointer user_data
);
GritsCallback objects are used for custom drawing functions. A common example of this would be to render something which does not easily fit into a normal object. For instance, a Heads-Up-Display overlay.
void (*GritsCallbackFunc) (GritsCallback *callback
,gpointer user_data
);
A function to be called when the callback object is being rendered
|
the callback object to be drawn |
|
the user data associated with the callback |
GritsCallback * grits_callback_new (GritsCallbackFunc callback
,gpointer user_data
);
Create a GritsCallback object with an associated function and user data.
|
the function to call to draw the object |
|
user data to pass to the drawing function |
Returns : |
the new GritsCallback |