Mercurial > pidgin
annotate libpurple/whiteboard.h @ 32443:16925948a003
Use accessor functions where available.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 04 Jan 2012 02:34:24 +0000 |
parents | 98520ee78f12 |
children |
rev | line source |
---|---|
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
1 /** |
15822 | 2 * @file whiteboard.h The PurpleWhiteboard core object |
20074
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19681
diff
changeset
|
3 */ |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19681
diff
changeset
|
4 |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19681
diff
changeset
|
5 /* purple |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
6 * |
15822 | 7 * Purple is the legal property of its developers, whose names are too numerous |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
8 * to list here. Please refer to the COPYRIGHT file distributed with this |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
9 * source distribution. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
10 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
11 * This program is free software; you can redistribute it and/or modify |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
12 * it under the terms of the GNU General Public License as published by |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
13 * the Free Software Foundation; either version 2 of the License, or |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
14 * (at your option) any later version. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
15 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
16 * This program is distributed in the hope that it will be useful, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
19 * GNU General Public License for more details. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
20 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
21 * You should have received a copy of the GNU General Public License |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
22 * along with this program; if not, write to the Free Software |
19681
44b4e8bd759b
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16664
diff
changeset
|
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
24 */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
25 |
15822 | 26 #ifndef _PURPLE_WHITEBOARD_H_ |
27 #define _PURPLE_WHITEBOARD_H_ | |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
28 |
32338 | 29 /** @copydoc _PurpleWhiteboard */ |
30 typedef struct _PurpleWhiteboard PurpleWhiteboard; | |
31 | |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
32 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
33 * Whiteboard PRPL Operations |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
34 */ |
15822 | 35 typedef struct _PurpleWhiteboardPrplOps PurpleWhiteboardPrplOps; |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
36 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
37 #include "account.h" |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
38 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
39 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
40 /** |
15822 | 41 * The PurpleWhiteboard UI Operations |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
42 */ |
15822 | 43 typedef struct _PurpleWhiteboardUiOps |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
44 { |
15822 | 45 void (*create)(PurpleWhiteboard *wb); /**< create function */ |
46 void (*destroy)(PurpleWhiteboard *wb); /**< destory function */ | |
47 void (*set_dimensions)(PurpleWhiteboard *wb, int width, int height); /**< set_dimensions function */ | |
48 void (*set_brush) (PurpleWhiteboard *wb, int size, int color); /**< set the size and color of the brush */ | |
49 void (*draw_point)(PurpleWhiteboard *wb, int x, int y, | |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
50 int color, int size); /**< draw_point function */ |
15822 | 51 void (*draw_line)(PurpleWhiteboard *wb, int x1, int y1, |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
52 int x2, int y2, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
53 int color, int size); /**< draw_line function */ |
15822 | 54 void (*clear)(PurpleWhiteboard *wb); /**< clear function */ |
16664
516f14bef90e
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15822
diff
changeset
|
55 |
516f14bef90e
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15822
diff
changeset
|
56 void (*_purple_reserved1)(void); |
516f14bef90e
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15822
diff
changeset
|
57 void (*_purple_reserved2)(void); |
516f14bef90e
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15822
diff
changeset
|
58 void (*_purple_reserved3)(void); |
516f14bef90e
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15822
diff
changeset
|
59 void (*_purple_reserved4)(void); |
15822 | 60 } PurpleWhiteboardUiOps; |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
61 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
62 /** |
15822 | 63 * PurpleWhiteboard PRPL Operations |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
64 */ |
15822 | 65 struct _PurpleWhiteboardPrplOps |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
66 { |
15822 | 67 void (*start)(PurpleWhiteboard *wb); /**< start function */ |
68 void (*end)(PurpleWhiteboard *wb); /**< end function */ | |
69 void (*get_dimensions)(const PurpleWhiteboard *wb, int *width, int *height); /**< get_dimensions function */ | |
70 void (*set_dimensions)(PurpleWhiteboard *wb, int width, int height); /**< set_dimensions function */ | |
71 void (*get_brush) (const PurpleWhiteboard *wb, int *size, int *color); /**< get the brush size and color */ | |
72 void (*set_brush) (PurpleWhiteboard *wb, int size, int color); /**< set the brush size and color */ | |
73 void (*send_draw_list)(PurpleWhiteboard *wb, GList *draw_list); /**< send_draw_list function */ | |
74 void (*clear)(PurpleWhiteboard *wb); /**< clear function */ | |
16664
516f14bef90e
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15822
diff
changeset
|
75 |
516f14bef90e
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15822
diff
changeset
|
76 void (*_purple_reserved1)(void); |
516f14bef90e
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15822
diff
changeset
|
77 void (*_purple_reserved2)(void); |
516f14bef90e
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15822
diff
changeset
|
78 void (*_purple_reserved3)(void); |
516f14bef90e
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15822
diff
changeset
|
79 void (*_purple_reserved4)(void); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
80 }; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
81 |
32433
98520ee78f12
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32338
diff
changeset
|
82 G_BEGIN_DECLS |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
83 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
84 /******************************************************************************/ |
15822 | 85 /** @name PurpleWhiteboard API */ |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
86 /******************************************************************************/ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
87 /*@{*/ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
88 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
89 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
90 * Sets the UI operations |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
91 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
92 * @param ops The UI operations to set |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
93 */ |
15822 | 94 void purple_whiteboard_set_ui_ops(PurpleWhiteboardUiOps *ops); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
95 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
96 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
97 * Sets the prpl operations for a whiteboard |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
98 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
99 * @param wb The whiteboard for which to set the prpl operations |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
100 * @param ops The prpl operations to set |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
101 */ |
15822 | 102 void purple_whiteboard_set_prpl_ops(PurpleWhiteboard *wb, PurpleWhiteboardPrplOps *ops); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
103 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
104 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
105 * Creates a whiteboard |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
106 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
107 * @param account The account. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
108 * @param who Who you're drawing with. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
109 * @param state The state. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
110 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
111 * @return The new whiteboard |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
112 */ |
15822 | 113 PurpleWhiteboard *purple_whiteboard_create(PurpleAccount *account, const char *who, int state); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
114 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
115 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
116 * Destroys a whiteboard |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
117 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
118 * @param wb The whiteboard. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
119 */ |
15822 | 120 void purple_whiteboard_destroy(PurpleWhiteboard *wb); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
121 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
122 /** |
32003
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
123 * Returns the whiteboard's account. |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
124 * |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
125 * @param wb The whiteboard. |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
126 * |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
127 * @return The whiteboard's account. |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
128 */ |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
129 PurpleAccount *purple_whiteboard_get_account(const PurpleWhiteboard *wb); |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
130 |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
131 /** |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
132 * Return who you're drawing with. |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
133 * |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
134 * @param wb The whiteboard |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
135 * |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
136 * @return Who you're drawing with. |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
137 */ |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
138 const char *purple_whiteboard_get_who(const PurpleWhiteboard *wb); |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
139 |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
140 /** |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
141 * Set the state of the whiteboard. |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
142 * |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
143 * @param wb The whiteboard. |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
144 * @param state The state |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
145 */ |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
146 void purple_whiteboard_set_state(PurpleWhiteboard *wb, int state); |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
147 |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
148 /** |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
149 * Return the state of the whiteboard. |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
150 * |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
151 * @param wb The whiteboard. |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
152 * |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
153 * @return The state of the whiteboard. |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
154 */ |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
155 int purple_whiteboard_get_state(const PurpleWhiteboard *wb); |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
156 |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
157 /** |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
158 * Starts a whiteboard |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
159 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
160 * @param wb The whiteboard. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
161 */ |
15822 | 162 void purple_whiteboard_start(PurpleWhiteboard *wb); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
163 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
164 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
165 * Finds a whiteboard from an account and user. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
166 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
167 * @param account The account. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
168 * @param who The user. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
169 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
170 * @return The whiteboard if found, otherwise @c NULL. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
171 */ |
15822 | 172 PurpleWhiteboard *purple_whiteboard_get_session(const PurpleAccount *account, const char *who); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
173 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
174 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
175 * Destorys a drawing list for a whiteboard |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
176 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
177 * @param draw_list The drawing list. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
178 */ |
15822 | 179 void purple_whiteboard_draw_list_destroy(GList *draw_list); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
180 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
181 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
182 * Gets the dimension of a whiteboard. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
183 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
184 * @param wb The whiteboard. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
185 * @param width The width to be set. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
186 * @param height The height to be set. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
187 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
188 * @return TRUE if the values of width and height were set. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
189 */ |
15822 | 190 gboolean purple_whiteboard_get_dimensions(const PurpleWhiteboard *wb, int *width, int *height); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
191 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
192 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
193 * Sets the dimensions for a whiteboard. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
194 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
195 * @param wb The whiteboard. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
196 * @param width The width. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
197 * @param height The height. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
198 */ |
15822 | 199 void purple_whiteboard_set_dimensions(PurpleWhiteboard *wb, int width, int height); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
200 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
201 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
202 * Draws a point on a whiteboard. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
203 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
204 * @param wb The whiteboard. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
205 * @param x The x coordinate. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
206 * @param y The y coordinate. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
207 * @param color The color to use. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
208 * @param size The brush size. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
209 */ |
15822 | 210 void purple_whiteboard_draw_point(PurpleWhiteboard *wb, int x, int y, int color, int size); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
211 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
212 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
213 * Send a list of points to draw to the buddy. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
214 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
215 * @param wb The whiteboard |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
216 * @param list A GList of points |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
217 */ |
15822 | 218 void purple_whiteboard_send_draw_list(PurpleWhiteboard *wb, GList *list); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
219 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
220 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
221 * Draws a line on a whiteboard |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
222 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
223 * @param wb The whiteboard. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
224 * @param x1 The top-left x coordinate. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
225 * @param y1 The top-left y coordinate. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
226 * @param x2 The bottom-right x coordinate. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
227 * @param y2 The bottom-right y coordinate. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
228 * @param color The color to use. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
229 * @param size The brush size. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
230 */ |
15822 | 231 void purple_whiteboard_draw_line(PurpleWhiteboard *wb, int x1, int y1, int x2, int y2, int color, int size); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
232 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
233 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
234 * Clears a whiteboard |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
235 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
236 * @param wb The whiteboard. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
237 */ |
15822 | 238 void purple_whiteboard_clear(PurpleWhiteboard *wb); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
239 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
240 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
241 * Sends a request to the buddy to clear the whiteboard. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
242 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
243 * @param wb The whiteboard |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
244 */ |
15822 | 245 void purple_whiteboard_send_clear(PurpleWhiteboard *wb); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
246 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
247 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
248 * Sends a request to change the size and color of the brush. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
249 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
250 * @param wb The whiteboard |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
251 * @param size The size of the brush |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
252 * @param color The color of the brush |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
253 */ |
15822 | 254 void purple_whiteboard_send_brush(PurpleWhiteboard *wb, int size, int color); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
255 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
256 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
257 * Gets the size and color of the brush. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
258 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
259 * @param wb The whiteboard |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
260 * @param size The size of the brush |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
261 * @param color The color of the brush |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
262 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
263 * @return TRUE if the size and color were set. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
264 */ |
15822 | 265 gboolean purple_whiteboard_get_brush(const PurpleWhiteboard *wb, int *size, int *color); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
266 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
267 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
268 * Sets the size and color of the brush. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
269 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
270 * @param wb The whiteboard |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
271 * @param size The size of the brush |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
272 * @param color The color of the brush |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
273 */ |
15822 | 274 void purple_whiteboard_set_brush(PurpleWhiteboard *wb, int size, int color); |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
275 |
32000
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
276 /** |
32003
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
277 * Return the drawing list. |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
278 * |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
279 * @param wb The whiteboard. |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
280 * |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
281 * @return The drawing list |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
282 */ |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
283 GList *purple_whiteboard_get_draw_list(const PurpleWhiteboard *wb); |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
284 |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
285 /** |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
286 * Set the drawing list. |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
287 * |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
288 * @param wb The whiteboard |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
289 * @param draw_list The drawing list. |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
290 */ |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
291 void purple_whiteboard_set_draw_list(PurpleWhiteboard *wb, GList* draw_list); |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
292 |
2bf260b86086
Add additional accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
32000
diff
changeset
|
293 /** |
32000
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
294 * Sets the protocol data for a whiteboard. |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
295 * |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
296 * @param wb The whiteboard. |
32176
5aa171c8776b
Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <mark@kingant.net>
parents:
32003
diff
changeset
|
297 * @param proto_data The protocol data to set for the whiteboard. |
32000
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
298 */ |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
299 void purple_whiteboard_set_protocol_data(PurpleWhiteboard *wb, gpointer proto_data); |
32176
5aa171c8776b
Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <mark@kingant.net>
parents:
32003
diff
changeset
|
300 |
32000
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
301 /** |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
302 * Gets the protocol data for a whiteboard. |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
303 * |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
304 * @param wb The whiteboard. |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
305 * |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
306 * @return The protocol data for the whiteboard. |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
307 */ |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
308 gpointer purple_whiteboard_get_protocol_data(const PurpleWhiteboard *wb); |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
309 |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
310 /** |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
311 * Set the UI data associated with this whiteboard. |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
312 * |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
313 * @param wb The whiteboard. |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
314 * @param ui_data A pointer to associate with this whiteboard. |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
315 */ |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
316 void purple_whiteboard_set_ui_data(PurpleWhiteboard *wb, gpointer ui_data); |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
317 |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
318 /** |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
319 * Get the UI data associated with this whiteboard. |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
320 * |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
321 * @param wb The whiteboard.. |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
322 * |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
323 * @return The UI data associated with this whiteboard. This is a |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
324 * convenience field provided to the UIs--it is not |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
325 * used by the libpurple core. |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
326 */ |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
327 gpointer purple_whiteboard_get_ui_data(const PurpleWhiteboard *wb); |
cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
andrew.victor@mxit.com
parents:
20074
diff
changeset
|
328 |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
329 /*@}*/ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
330 |
32433
98520ee78f12
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32338
diff
changeset
|
331 G_END_DECLS |
15373
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
332 |
15822 | 333 #endif /* _PURPLE_WHITEBOARD_H_ */ |