pidgin 2.14.14dev
|
The PurpleWhiteboard core object. More...
#include "account.h"
Go to the source code of this file.
Data Structures | |
struct | _PurpleWhiteboard |
A PurpleWhiteboard. More... | |
struct | _PurpleWhiteboardUiOps |
The PurpleWhiteboard UI Operations. More... | |
struct | _PurpleWhiteboardPrplOps |
PurpleWhiteboard PRPL Operations. More... | |
Typedefs | |
typedef struct _PurpleWhiteboardPrplOps | PurpleWhiteboardPrplOps |
Whiteboard PRPL Operations. | |
typedef struct _PurpleWhiteboard | PurpleWhiteboard |
A PurpleWhiteboard. | |
typedef struct _PurpleWhiteboardUiOps | PurpleWhiteboardUiOps |
The PurpleWhiteboard UI Operations. | |
Functions | |
PurpleWhiteboard API <br> | |
void | purple_whiteboard_set_ui_ops (PurpleWhiteboardUiOps *ops) |
Sets the UI operations. | |
void | purple_whiteboard_set_prpl_ops (PurpleWhiteboard *wb, PurpleWhiteboardPrplOps *ops) |
Sets the prpl operations for a whiteboard. | |
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_start (PurpleWhiteboard *wb) |
Starts a whiteboard. | |
PurpleWhiteboard * | purple_whiteboard_get_session (const PurpleAccount *account, const char *who) |
Finds a whiteboard from an account and user. | |
void | purple_whiteboard_draw_list_destroy (GList *draw_list) |
Destorys a drawing list for a whiteboard. | |
gboolean | purple_whiteboard_get_dimensions (const PurpleWhiteboard *wb, int *width, int *height) |
Gets the dimension of a whiteboard. | |
void | purple_whiteboard_set_dimensions (PurpleWhiteboard *wb, int width, int height) |
Sets the dimensions 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_send_draw_list (PurpleWhiteboard *wb, GList *list) |
Send a list of points to draw to the buddy. | |
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. | |
void | purple_whiteboard_clear (PurpleWhiteboard *wb) |
Clears a whiteboard. | |
void | purple_whiteboard_send_clear (PurpleWhiteboard *wb) |
Sends a request to the buddy to clear the whiteboard. | |
void | purple_whiteboard_send_brush (PurpleWhiteboard *wb, int size, int color) |
Sends a request to change the size and color of the brush. | |
gboolean | purple_whiteboard_get_brush (const PurpleWhiteboard *wb, int *size, int *color) |
Gets the size and color of the brush. | |
void | purple_whiteboard_set_brush (PurpleWhiteboard *wb, int size, int color) |
Sets the size and color of the brush. | |
The PurpleWhiteboard core object.
Definition in file whiteboard.h.
typedef struct _PurpleWhiteboardPrplOps PurpleWhiteboardPrplOps |
Whiteboard PRPL Operations.
Definition at line 32 of file whiteboard.h.
void purple_whiteboard_clear | ( | PurpleWhiteboard * | wb | ) |
Clears a whiteboard.
wb | The whiteboard. |
PurpleWhiteboard * purple_whiteboard_create | ( | PurpleAccount * | account, |
const char * | who, | ||
int | state | ||
) |
Creates a whiteboard.
account | The account. |
who | Who you're drawing with. |
state | The state. |
void purple_whiteboard_destroy | ( | PurpleWhiteboard * | wb | ) |
Destroys a whiteboard.
wb | The 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.
wb | The whiteboard. |
x1 | The top-left x coordinate. |
y1 | The top-left y coordinate. |
x2 | The bottom-right x coordinate. |
y2 | The bottom-right y coordinate. |
color | The color to use. |
size | The brush size. |
void purple_whiteboard_draw_list_destroy | ( | GList * | draw_list | ) |
Destorys a drawing list for a whiteboard.
draw_list | The drawing list. |
void purple_whiteboard_draw_point | ( | PurpleWhiteboard * | wb, |
int | x, | ||
int | y, | ||
int | color, | ||
int | size | ||
) |
Draws a point on a whiteboard.
wb | The whiteboard. |
x | The x coordinate. |
y | The y coordinate. |
color | The color to use. |
size | The brush size. |
gboolean purple_whiteboard_get_brush | ( | const PurpleWhiteboard * | wb, |
int * | size, | ||
int * | color | ||
) |
Gets the size and color of the brush.
wb | The whiteboard |
size | The size of the brush |
color | The color of the brush |
gboolean purple_whiteboard_get_dimensions | ( | const PurpleWhiteboard * | wb, |
int * | width, | ||
int * | height | ||
) |
Gets the dimension of a whiteboard.
wb | The whiteboard. |
width | The width to be set. |
height | The height to be set. |
PurpleWhiteboard * purple_whiteboard_get_session | ( | const PurpleAccount * | account, |
const char * | who | ||
) |
Finds a whiteboard from an account and user.
account | The account. |
who | The user. |
NULL
. void purple_whiteboard_send_brush | ( | PurpleWhiteboard * | wb, |
int | size, | ||
int | color | ||
) |
Sends a request to change the size and color of the brush.
wb | The whiteboard |
size | The size of the brush |
color | The color of the brush |
void purple_whiteboard_send_clear | ( | PurpleWhiteboard * | wb | ) |
Sends a request to the buddy to clear the whiteboard.
wb | The whiteboard |
void purple_whiteboard_send_draw_list | ( | PurpleWhiteboard * | wb, |
GList * | list | ||
) |
Send a list of points to draw to the buddy.
wb | The whiteboard |
list | A GList of points |
void purple_whiteboard_set_brush | ( | PurpleWhiteboard * | wb, |
int | size, | ||
int | color | ||
) |
Sets the size and color of the brush.
wb | The whiteboard |
size | The size of the brush |
color | The color of the brush |
void purple_whiteboard_set_dimensions | ( | PurpleWhiteboard * | wb, |
int | width, | ||
int | height | ||
) |
Sets the dimensions for a whiteboard.
wb | The whiteboard. |
width | The width. |
height | The height. |
void purple_whiteboard_set_prpl_ops | ( | PurpleWhiteboard * | wb, |
PurpleWhiteboardPrplOps * | ops | ||
) |
Sets the prpl operations for a whiteboard.
wb | The whiteboard for which to set the prpl operations |
ops | The prpl operations to set |
void purple_whiteboard_set_ui_ops | ( | PurpleWhiteboardUiOps * | ops | ) |
Sets the UI operations.
ops | The UI operations to set |
void purple_whiteboard_start | ( | PurpleWhiteboard * | wb | ) |
Starts a whiteboard.
wb | The whiteboard. |