26#ifndef _PURPLE_WHITEBOARD_H_ 
   27#define _PURPLE_WHITEBOARD_H_ 
   69    void (*_purple_reserved1)(void);
 
   70    void (*_purple_reserved2)(void);
 
   71    void (*_purple_reserved3)(void);
 
   72    void (*_purple_reserved4)(void);
 
 
   89    void (*_purple_reserved1)(void);
 
   90    void (*_purple_reserved2)(void);
 
   91    void (*_purple_reserved3)(void);
 
   92    void (*_purple_reserved4)(void);
 
 
Structure representing an account.
 
PurpleWhiteboard PRPL Operations.
 
void(* start)(PurpleWhiteboard *wb)
start function
 
void(* get_dimensions)(const PurpleWhiteboard *wb, int *width, int *height)
get_dimensions function
 
void(* set_brush)(PurpleWhiteboard *wb, int size, int color)
set the brush size and color
 
void(* clear)(PurpleWhiteboard *wb)
clear function
 
void(* send_draw_list)(PurpleWhiteboard *wb, GList *draw_list)
send_draw_list function
 
void(* end)(PurpleWhiteboard *wb)
end function
 
void(* set_dimensions)(PurpleWhiteboard *wb, int width, int height)
set_dimensions function
 
void(* get_brush)(const PurpleWhiteboard *wb, int *size, int *color)
get the brush size and color
 
The PurpleWhiteboard UI Operations.
 
void(* draw_line)(PurpleWhiteboard *wb, int x1, int y1, int x2, int y2, int color, int size)
draw_line function
 
void(* destroy)(PurpleWhiteboard *wb)
destory function
 
void(* clear)(PurpleWhiteboard *wb)
clear function
 
void(* create)(PurpleWhiteboard *wb)
create function
 
void(* set_dimensions)(PurpleWhiteboard *wb, int width, int height)
set_dimensions function
 
void(* draw_point)(PurpleWhiteboard *wb, int x, int y, int color, int size)
draw_point function
 
void(* set_brush)(PurpleWhiteboard *wb, int size, int color)
set the size and color of the brush
 
void * ui_data
Graphical user-interface data.
 
GList * draw_list
List of drawing elements/deltas to send.
 
PurpleAccount * account
Account associated with this session.
 
void * proto_data
Protocol specific data.
 
char * who
Name of the remote user.
 
PurpleWhiteboardPrplOps * prpl_ops
Protocol-plugin operations.
 
int state
State of whiteboard session.
 
PurpleWhiteboard * purple_whiteboard_get_session(const PurpleAccount *account, const char *who)
Finds a whiteboard from an account and user.
 
struct _PurpleWhiteboardUiOps PurpleWhiteboardUiOps
The PurpleWhiteboard UI Operations.
 
PurpleWhiteboard * purple_whiteboard_create(PurpleAccount *account, const char *who, int state)
Creates a whiteboard.
 
void purple_whiteboard_destroy(PurpleWhiteboard *wb)
Destroys a whiteboard.
 
void purple_whiteboard_draw_line(PurpleWhiteboard *wb, int x1, int y1, int x2, int y2, int color, int size)
Draws a line on a whiteboard.
 
gboolean purple_whiteboard_get_brush(const PurpleWhiteboard *wb, int *size, int *color)
Gets the size and color of the brush.
 
void purple_whiteboard_send_clear(PurpleWhiteboard *wb)
Sends a request to the buddy to clear the whiteboard.
 
void purple_whiteboard_start(PurpleWhiteboard *wb)
Starts a whiteboard.
 
void purple_whiteboard_set_ui_ops(PurpleWhiteboardUiOps *ops)
Sets the UI operations.
 
void purple_whiteboard_set_brush(PurpleWhiteboard *wb, int size, int color)
Sets the size and color of the brush.
 
struct _PurpleWhiteboard PurpleWhiteboard
A PurpleWhiteboard.
 
gboolean purple_whiteboard_get_dimensions(const PurpleWhiteboard *wb, int *width, int *height)
Gets the dimension of a whiteboard.
 
void purple_whiteboard_send_brush(PurpleWhiteboard *wb, int size, int color)
Sends a request to change the size and color of the brush.
 
void purple_whiteboard_set_prpl_ops(PurpleWhiteboard *wb, PurpleWhiteboardPrplOps *ops)
Sets the prpl operations for a whiteboard.
 
void purple_whiteboard_draw_list_destroy(GList *draw_list)
Destorys a drawing list for a whiteboard.
 
void purple_whiteboard_draw_point(PurpleWhiteboard *wb, int x, int y, int color, int size)
Draws a point on a whiteboard.
 
void purple_whiteboard_set_dimensions(PurpleWhiteboard *wb, int width, int height)
Sets the dimensions for a whiteboard.
 
void purple_whiteboard_send_draw_list(PurpleWhiteboard *wb, GList *list)
Send a list of points to draw to the buddy.
 
void purple_whiteboard_clear(PurpleWhiteboard *wb)
Clears a whiteboard.