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
create

Create whiteboard.

destroy

Destroy whiteboard.

set_dimensions

Set whiteboard dimensions.

set_brush

Set the size and color of the brush.

draw_point

Draw a point.

draw_line

Draw a line.

clear

Clear whiteboard.

Available since: 2.0