gtkwhiteboard.h
Go to the documentation of this file.
1
5 /* pidgin
6 *
7 * Pidgin is the legal property of its developers, whose names are too numerous
8 * to list here. Please refer to the COPYRIGHT file distributed with this
9 * source distribution.
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
24 */
25
26 #ifndef _PIDGINWHITEBOARD_H_
27 #define _PIDGINWHITEBOARD_H_
28
29 #include "pidgin.h"
30
31 #include "whiteboard.h"
32
33 #define FULL_CIRCLE_DEGREES 23040
34
35 /* TODO: Make into an enum. */
36 #define BRUSH_STATE_UP 0
37 #define BRUSH_STATE_DOWN 1
38 #define BRUSH_STATE_MOTION 2
39
40 #define PALETTE_NUM_COLORS 7
41
45 typedef struct _PidginWhiteboard
46 {
47 PurpleWhiteboard *wb;
49 GtkWidget *window;
50 GtkWidget *drawing_area;
52 GdkPixmap *pixmap;
54 int width;
55 int height;
56 int brush_color;
57 int brush_size;
58 } PidginWhiteboard;
59
60 #ifdef __cplusplus
61 extern "C" {
62 #endif /* __cplusplus */
63
64 /*****************************************************************************/
66 /*****************************************************************************/
74 PurpleWhiteboardUiOps *pidgin_whiteboard_get_ui_ops( void );
75
78 #ifdef __cplusplus
79 }
80 #endif /* __cplusplus */
81
82 #endif /* _PIDGINWHITEBOARD_H_ */
_PidginWhiteboard::brush_size
int brush_size
Brush size.
Definition: gtkwhiteboard.h:57
_PidginWhiteboard::window
GtkWidget * window
Window for the Doodle session.
Definition: gtkwhiteboard.h:49
_PidginWhiteboard::width
int width
Canvas width.
Definition: gtkwhiteboard.h:54
_PidginWhiteboard::drawing_area
GtkWidget * drawing_area
Drawing area.
Definition: gtkwhiteboard.h:50
_PidginWhiteboard::height
int height
Canvas height.
Definition: gtkwhiteboard.h:55
_PurpleWhiteboard
A PurpleWhiteboard.
Definition: whiteboard.h:39
_PidginWhiteboard::wb
PurpleWhiteboard * wb
backend data for this whiteboard
Definition: gtkwhiteboard.h:47
pidgin.h
UI definitions and includes.
_PidginWhiteboard
A PidginWhiteboard.
Definition: gtkwhiteboard.h:45
_PurpleWhiteboardUiOps
The PurpleWhiteboard UI Operations.
Definition: whiteboard.h:56
_PidginWhiteboard::brush_color
int brush_color
Foreground color.
Definition: gtkwhiteboard.h:56
whiteboard.h
The PurpleWhiteboard core object.
pidgin_whiteboard_get_ui_ops
PurpleWhiteboardUiOps * pidgin_whiteboard_get_ui_ops(void)
Gets the GtkWhiteboard UI Operations.
PidginWhiteboard
struct _PidginWhiteboard PidginWhiteboard
A PidginWhiteboard.
_PidginWhiteboard::pixmap
GdkPixmap * pixmap
Memory for drawing area.
Definition: gtkwhiteboard.h:52