libpurple/whiteboard.h

Sat, 07 Sep 2013 01:13:49 +0530

author
Ankit Vani <a@nevitus.org>
date
Sat, 07 Sep 2013 01:13:49 +0530
branch
soc.2013.gobjectification
changeset 34937
ca1dab25bd7a
parent 34936
3c03564af436
child 34939
e093c956c5e5
permissions
-rw-r--r--

Removed purple_whiteboard_destroy(). Renamed purple_whiteboard_create() to purple_whiteboard_new().

11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /**
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
2 * @file whiteboard.h The PurpleWhiteboard core object
20147
66f05a854eee applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents: 19859
diff changeset
3 */
66f05a854eee applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents: 19859
diff changeset
4
66f05a854eee applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents: 19859
diff changeset
5 /* purple
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 *
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
7 * Purple is the legal property of its developers, whose names are too numerous
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 * to list here. Please refer to the COPYRIGHT file distributed with this
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 * source distribution.
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 *
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 * This program is free software; you can redistribute it and/or modify
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * it under the terms of the GNU General Public License as published by
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 * the Free Software Foundation; either version 2 of the License, or
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 * (at your option) any later version.
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 *
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 * This program is distributed in the hope that it will be useful,
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 * GNU General Public License for more details.
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 *
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 * You should have received a copy of the GNU General Public License
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22 * along with this program; if not, write to the Free Software
19859
71d37b57eff2 The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 16743
diff changeset
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 */
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
26 #ifndef _PURPLE_WHITEBOARD_H_
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
27 #define _PURPLE_WHITEBOARD_H_
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28
34936
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
29 #define PURPLE_TYPE_WHITEBOARD (purple_whiteboard_get_type())
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
30 #define PURPLE_WHITEBOARD(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_WHITEBOARD, PurpleWhiteboard))
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
31 #define PURPLE_WHITEBOARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_WHITEBOARD, PurpleWhiteboardClass))
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
32 #define PURPLE_IS_WHITEBOARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_WHITEBOARD))
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
33 #define PURPLE_IS_WHITEBOARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_WHITEBOARD))
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
34 #define PURPLE_WHITEBOARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_WHITEBOARD, PurpleWhiteboardClass))
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
35
32708
e275f5e7b257 Hide struct PurpleWhiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32554
diff changeset
36 /** @copydoc _PurpleWhiteboard */
e275f5e7b257 Hide struct PurpleWhiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32554
diff changeset
37 typedef struct _PurpleWhiteboard PurpleWhiteboard;
34936
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
38 /** @copydoc _PurpleWhiteboardClass */
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
39 typedef struct _PurpleWhiteboardClass PurpleWhiteboardClass;
32708
e275f5e7b257 Hide struct PurpleWhiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32554
diff changeset
40
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
41 /**
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
42 * Whiteboard PRPL Operations
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
43 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
44 typedef struct _PurpleWhiteboardPrplOps PurpleWhiteboardPrplOps;
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46 #include "account.h"
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
48 /**
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
49 * The PurpleWhiteboard UI Operations
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
50 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
51 typedef struct _PurpleWhiteboardUiOps
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
53 void (*create)(PurpleWhiteboard *wb); /**< create function */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
54 void (*destroy)(PurpleWhiteboard *wb); /**< destory function */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
55 void (*set_dimensions)(PurpleWhiteboard *wb, int width, int height); /**< set_dimensions function */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
56 void (*set_brush) (PurpleWhiteboard *wb, int size, int color); /**< set the size and color of the brush */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
57 void (*draw_point)(PurpleWhiteboard *wb, int x, int y,
11914
81ac838f3824 [gaim-migrate @ 14205]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11802
diff changeset
58 int color, int size); /**< draw_point function */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
59 void (*draw_line)(PurpleWhiteboard *wb, int x1, int y1,
11914
81ac838f3824 [gaim-migrate @ 14205]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11802
diff changeset
60 int x2, int y2,
81ac838f3824 [gaim-migrate @ 14205]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11802
diff changeset
61 int color, int size); /**< draw_line function */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
62 void (*clear)(PurpleWhiteboard *wb); /**< clear function */
16743
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
63
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
64 void (*_purple_reserved1)(void);
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
65 void (*_purple_reserved2)(void);
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
66 void (*_purple_reserved3)(void);
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
67 void (*_purple_reserved4)(void);
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
68 } PurpleWhiteboardUiOps;
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
69
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
70 /**
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
71 * PurpleWhiteboard PRPL Operations
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
72 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
73 struct _PurpleWhiteboardPrplOps
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
74 {
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
75 void (*start)(PurpleWhiteboard *wb); /**< start function */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
76 void (*end)(PurpleWhiteboard *wb); /**< end function */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
77 void (*get_dimensions)(const PurpleWhiteboard *wb, int *width, int *height); /**< get_dimensions function */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
78 void (*set_dimensions)(PurpleWhiteboard *wb, int width, int height); /**< set_dimensions function */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
79 void (*get_brush) (const PurpleWhiteboard *wb, int *size, int *color); /**< get the brush size and color */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
80 void (*set_brush) (PurpleWhiteboard *wb, int size, int color); /**< set the brush size and color */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
81 void (*send_draw_list)(PurpleWhiteboard *wb, GList *draw_list); /**< send_draw_list function */
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
82 void (*clear)(PurpleWhiteboard *wb); /**< clear function */
16743
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
83
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
84 void (*_purple_reserved1)(void);
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
85 void (*_purple_reserved2)(void);
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
86 void (*_purple_reserved3)(void);
1ce5ffe12e2a Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents: 15884
diff changeset
87 void (*_purple_reserved4)(void);
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
88 };
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
89
34936
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
90 /**
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
91 * A PurpleWhiteboard
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
92 */
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
93 struct _PurpleWhiteboard
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
94 {
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
95 /*< private >*/
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
96 GObject gparent;
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
97
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
98 /** The UI data associated with this whiteboard. This is a convenience
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
99 * field provided to the UIs -- it is not used by the libpurple core.
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
100 */
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
101 gpointer ui_data;
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
102 };
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
103
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
104 /** Base class for all #PurpleWhiteboard's */
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
105 struct _PurpleWhiteboardClass {
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
106 /*< private >*/
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
107 GObjectClass parent_class;
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
108
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
109 void (*_purple_reserved1)(void);
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
110 void (*_purple_reserved2)(void);
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
111 void (*_purple_reserved3)(void);
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
112 void (*_purple_reserved4)(void);
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
113 };
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
114
32787
7072f190d6ad Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32708
diff changeset
115 G_BEGIN_DECLS
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
116
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
117 /******************************************************************************/
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
118 /** @name PurpleWhiteboard API */
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
119 /******************************************************************************/
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
120 /*@{*/
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
121
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
122 /**
34936
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
123 * Returns the GType for the PurpleWhiteboard object.
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
124 */
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
125 GType purple_whiteboard_get_type(void);
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
126
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
127 /**
12400
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
128 * Sets the UI operations
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
129 *
12400
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
130 * @param ops The UI operations to set
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
131 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
132 void purple_whiteboard_set_ui_ops(PurpleWhiteboardUiOps *ops);
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
133
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
134 /**
12400
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
135 * Sets the prpl operations for a whiteboard
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
136 *
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
137 * @param wb The whiteboard for which to set the prpl operations
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
138 * @param ops The prpl operations to set
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
139 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
140 void purple_whiteboard_set_prpl_ops(PurpleWhiteboard *wb, PurpleWhiteboardPrplOps *ops);
12400
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
141
47c1252e6f84 [gaim-migrate @ 14707]
Richard Laager <rlaager@pidgin.im>
parents: 12022
diff changeset
142 /**
34936
3c03564af436 Started GObjectification of PurpleWhiteboard
Ankit Vani <a@nevitus.org>
parents: 32787
diff changeset
143 * Creates a new whiteboard
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
144 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
145 * @param account The account.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
146 * @param who Who you're drawing with.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
147 * @param state The state.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
148 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
149 * @return The new whiteboard
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
150 */
34937
ca1dab25bd7a Removed purple_whiteboard_destroy(). Renamed purple_whiteboard_create() to purple_whiteboard_new().
Ankit Vani <a@nevitus.org>
parents: 34936
diff changeset
151 PurpleWhiteboard *purple_whiteboard_new(PurpleAccount *account, const char *who, int state);
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
152
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
153 /**
32285
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
154 * Returns the whiteboard's account.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
155 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
156 * @param wb The whiteboard.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
157 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
158 * @return The whiteboard's account.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
159 */
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
160 PurpleAccount *purple_whiteboard_get_account(const PurpleWhiteboard *wb);
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
161
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
162 /**
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
163 * Return who you're drawing with.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
164 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
165 * @param wb The whiteboard
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
166 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
167 * @return Who you're drawing with.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
168 */
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
169 const char *purple_whiteboard_get_who(const PurpleWhiteboard *wb);
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
170
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
171 /**
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
172 * Set the state of the whiteboard.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
173 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
174 * @param wb The whiteboard.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
175 * @param state The state
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
176 */
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
177 void purple_whiteboard_set_state(PurpleWhiteboard *wb, int state);
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
178
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
179 /**
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
180 * Return the state of the whiteboard.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
181 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
182 * @param wb The whiteboard.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
183 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
184 * @return The state of the whiteboard.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
185 */
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
186 int purple_whiteboard_get_state(const PurpleWhiteboard *wb);
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
187
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
188 /**
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
189 * Starts a whiteboard
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
190 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
191 * @param wb The whiteboard.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
192 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
193 void purple_whiteboard_start(PurpleWhiteboard *wb);
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
194
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
195 /**
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
196 * Finds a whiteboard from an account and user.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
197 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
198 * @param account The account.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
199 * @param who The user.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
200 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
201 * @return The whiteboard if found, otherwise @c NULL.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
202 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
203 PurpleWhiteboard *purple_whiteboard_get_session(const PurpleAccount *account, const char *who);
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
204
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
205 /**
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
206 * Destorys a drawing list for a whiteboard
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
207 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
208 * @param draw_list The drawing list.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
209 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
210 void purple_whiteboard_draw_list_destroy(GList *draw_list);
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
211
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
212 /**
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
213 * Gets the dimension of a whiteboard.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
214 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
215 * @param wb The whiteboard.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
216 * @param width The width to be set.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
217 * @param height The height to be set.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
218 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
219 * @return TRUE if the values of width and height were set.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
220 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
221 gboolean purple_whiteboard_get_dimensions(const PurpleWhiteboard *wb, int *width, int *height);
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
222
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
223 /**
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
224 * Sets the dimensions for a whiteboard.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
225 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
226 * @param wb The whiteboard.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
227 * @param width The width.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
228 * @param height The height.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
229 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
230 void purple_whiteboard_set_dimensions(PurpleWhiteboard *wb, int width, int height);
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
231
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
232 /**
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
233 * Draws a point on a whiteboard.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
234 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
235 * @param wb The whiteboard.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
236 * @param x The x coordinate.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
237 * @param y The y coordinate.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
238 * @param color The color to use.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
239 * @param size The brush size.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
240 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
241 void purple_whiteboard_draw_point(PurpleWhiteboard *wb, int x, int y, int color, int size);
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
242
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
243 /**
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
244 * Send a list of points to draw to the buddy.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
245 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
246 * @param wb The whiteboard
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
247 * @param list A GList of points
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
248 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
249 void purple_whiteboard_send_draw_list(PurpleWhiteboard *wb, GList *list);
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
250
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
251 /**
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
252 * Draws a line on a whiteboard
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
253 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
254 * @param wb The whiteboard.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
255 * @param x1 The top-left x coordinate.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
256 * @param y1 The top-left y coordinate.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
257 * @param x2 The bottom-right x coordinate.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
258 * @param y2 The bottom-right y coordinate.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
259 * @param color The color to use.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
260 * @param size The brush size.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
261 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
262 void purple_whiteboard_draw_line(PurpleWhiteboard *wb, int x1, int y1, int x2, int y2, int color, int size);
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
263
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
264 /**
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
265 * Clears a whiteboard
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
266 *
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
267 * @param wb The whiteboard.
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
268 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
269 void purple_whiteboard_clear(PurpleWhiteboard *wb);
11475
1e222e6e52a0 [gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
270
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
271 /**
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
272 * Sends a request to the buddy to clear the whiteboard.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
273 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
274 * @param wb The whiteboard
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
275 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
276 void purple_whiteboard_send_clear(PurpleWhiteboard *wb);
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
277
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
278 /**
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
279 * Sends a request to change the size and color of the brush.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
280 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
281 * @param wb The whiteboard
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
282 * @param size The size of the brush
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
283 * @param color The color of the brush
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
284 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
285 void purple_whiteboard_send_brush(PurpleWhiteboard *wb, int size, int color);
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
286
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
287 /**
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
288 * Gets the size and color of the brush.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
289 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
290 * @param wb The whiteboard
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
291 * @param size The size of the brush
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
292 * @param color The color of the brush
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
293 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
294 * @return TRUE if the size and color were set.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
295 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
296 gboolean purple_whiteboard_get_brush(const PurpleWhiteboard *wb, int *size, int *color);
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
297
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
298 /**
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
299 * Sets the size and color of the brush.
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
300 *
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
301 * @param wb The whiteboard
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
302 * @param size The size of the brush
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
303 * @param color The color of the brush
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
304 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
305 void purple_whiteboard_set_brush(PurpleWhiteboard *wb, int size, int color);
12022
c03fe7e2cd1d [gaim-migrate @ 14315]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 11914
diff changeset
306
32282
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
307 /**
32285
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
308 * Return the drawing list.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
309 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
310 * @param wb The whiteboard.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
311 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
312 * @return The drawing list
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
313 */
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
314 GList *purple_whiteboard_get_draw_list(const PurpleWhiteboard *wb);
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
315
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
316 /**
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
317 * Set the drawing list.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
318 *
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
319 * @param wb The whiteboard
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
320 * @param draw_list The drawing list.
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
321 */
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
322 void purple_whiteboard_set_draw_list(PurpleWhiteboard *wb, GList* draw_list);
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
323
b5ea2ea68c8c Add additional accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 32282
diff changeset
324 /**
32282
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
325 * Sets the protocol data for a whiteboard.
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
326 *
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
327 * @param wb The whiteboard.
32554
0d844fac6679 Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <markdoliner@pidgin.im>
parents: 32285
diff changeset
328 * @param proto_data The protocol data to set for the whiteboard.
32282
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
329 */
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
330 void purple_whiteboard_set_protocol_data(PurpleWhiteboard *wb, gpointer proto_data);
32554
0d844fac6679 Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <markdoliner@pidgin.im>
parents: 32285
diff changeset
331
32282
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
332 /**
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
333 * Gets the protocol data for a whiteboard.
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
334 *
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
335 * @param wb The whiteboard.
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
336 *
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
337 * @return The protocol data for the whiteboard.
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
338 */
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
339 gpointer purple_whiteboard_get_protocol_data(const PurpleWhiteboard *wb);
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
340
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
341 /**
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
342 * Set the UI data associated with this whiteboard.
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
343 *
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
344 * @param wb The whiteboard.
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
345 * @param ui_data A pointer to associate with this whiteboard.
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
346 */
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
347 void purple_whiteboard_set_ui_data(PurpleWhiteboard *wb, gpointer ui_data);
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
348
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
349 /**
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
350 * Get the UI data associated with this whiteboard.
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
351 *
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
352 * @param wb The whiteboard..
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
353 *
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
354 * @return The UI data associated with this whiteboard. This is a
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
355 * convenience field provided to the UIs--it is not
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
356 * used by the libpurple core.
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
357 */
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
358 gpointer purple_whiteboard_get_ui_data(const PurpleWhiteboard *wb);
c3df9b7a5160 Added protocol_data and ui_data accessor functions for Whiteboard.
Andrew Victor <andrew.victor@mxit.com>
parents: 20147
diff changeset
359
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
360 /*@}*/
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
361
32787
7072f190d6ad Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32708
diff changeset
362 G_END_DECLS
11802
b97b3fea95ce [gaim-migrate @ 14093]
Gary Kramlich <grim@reaperworld.com>
parents: 11475
diff changeset
363
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15609
diff changeset
364 #endif /* _PURPLE_WHITEBOARD_H_ */

mercurial