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: void (* create) ( PurpleWhiteboard* wb )

Create whiteboard.

destroy: void (* destroy) ( PurpleWhiteboard* wb )

Destroy whiteboard.

set_dimensions: void (* set_dimensions) ( PurpleWhiteboard* wb, int width, int height )

Set whiteboard dimensions.

set_brush: void (* set_brush) ( PurpleWhiteboard* wb, int size, int color )

Set the size and color of the brush.

draw_point: void (* draw_point) ( PurpleWhiteboard* wb, int x, int y, int color, int size )

Draw a point.

draw_line: void (* draw_line) ( PurpleWhiteboard* wb, int x1, int y1, int x2, int y2, int color, int size )

Draw a line.

clear: void (* clear) ( PurpleWhiteboard* wb )

Clear whiteboard.

Available since: 2.0