Struct
PurpleWhiteboardUiOps
since: 2.0
Description [src]
struct PurpleWhiteboardUiOps {
void (* create) (
PurpleWhiteboard* wb
);;
void (* destroy) (
PurpleWhiteboard* wb
);;
void (* set_dimensions) (
PurpleWhiteboard* wb,
int width,
int height
);;
void (* set_brush) (
PurpleWhiteboard* wb,
int size,
int color
);;
void (* draw_point) (
PurpleWhiteboard* wb,
int x,
int y,
int color,
int size
);;
void (* draw_line) (
PurpleWhiteboard* wb,
int x1,
int y1,
int x2,
int y2,
int color,
int size
);;
void (* clear) (
PurpleWhiteboard* wb
);;
}
The PurpleWhiteboard UI Operations.
Structure members
createCreate whiteboard.
destroyDestroy whiteboard.
set_dimensionsSet whiteboard dimensions.
set_brushSet the size and color of the brush.
draw_pointDraw a point.
draw_lineDraw a line.
clearClear whiteboard.
Available since: 2.0