Replace strcmp() with purple_strequal()
[pidgin-git.git] / pidgin / gtkwhiteboard.h
blobe2189c05250590fa92c86186ca9aaebc90bde5ca
1 /**
2 * @file gtkwhiteboard.h The PidginWhiteboard frontend object
3 */
5 /* pidgin
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.
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.
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.
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
26 #ifndef _PIDGINWHITEBOARD_H_
27 #define _PIDGINWHITEBOARD_H_
29 #include "pidgin.h"
31 #include "whiteboard.h"
33 #define FULL_CIRCLE_DEGREES 23040
35 /* TODO: Make into an enum. */
36 #define BRUSH_STATE_UP 0
37 #define BRUSH_STATE_DOWN 1
38 #define BRUSH_STATE_MOTION 2
40 #define PALETTE_NUM_COLORS 7
42 /**
43 * A PidginWhiteboard
45 typedef struct _PidginWhiteboard
47 PurpleWhiteboard *wb; /**< backend data for this whiteboard */
49 GtkWidget *window; /**< Window for the Doodle session */
50 GtkWidget *drawing_area; /**< Drawing area */
52 GdkPixmap *pixmap; /**< Memory for drawing area */
54 int width; /**< Canvas width */
55 int height; /**< Canvas height */
56 int brush_color; /**< Foreground color */
57 int brush_size; /**< Brush size */
58 } PidginWhiteboard;
60 #ifdef __cplusplus
61 extern "C" {
62 #endif /* __cplusplus */
64 /*****************************************************************************/
65 /** @name PidginWhiteboard API */
66 /*****************************************************************************/
67 /*@{*/
69 /**
70 * Gets the GtkWhiteboard UI Operations.
72 * @return The GtkWhiteboard UI Operations.
74 PurpleWhiteboardUiOps *pidgin_whiteboard_get_ui_ops( void );
76 /*@}*/
78 #ifdef __cplusplus
80 #endif /* __cplusplus */
82 #endif /* _PIDGINWHITEBOARD_H_ */