gtkwhiteboard.h

Go to the documentation of this file.
00001 
00005 /* pidgin
00006  *
00007  * Pidgin is the legal property of its developers, whose names are too numerous
00008  * to list here.  Please refer to the COPYRIGHT file distributed with this
00009  * source distribution.
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
00024  */
00025 
00026 #ifndef _PIDGINWHITEBOARD_H_
00027 #define _PIDGINWHITEBOARD_H_
00028 
00029 #include "pidgin.h"
00030 
00031 #include "whiteboard.h"
00032 
00033 #define FULL_CIRCLE_DEGREES 23040
00034 
00035 /* TODO: Make into an enum. */
00036 #define BRUSH_STATE_UP      0
00037 #define BRUSH_STATE_DOWN    1
00038 #define BRUSH_STATE_MOTION  2
00039 
00040 /* XXX: This seems duplicated with the Yahoo! Doodle prpl code.
00041  * XXX: How should they work together? */
00042 #define PALETTE_NUM_COLORS  7
00043 
00047 typedef struct _PidginWhiteboard
00048 {
00049     PurpleWhiteboard *wb;      
00051     GtkWidget *window;       
00052     GtkWidget *drawing_area; 
00054     GdkPixmap *pixmap;       
00056     int  width;              
00057     int  height;             
00058     int brush_color;         
00059     int brush_size;          
00060 } PidginWhiteboard;
00061 
00062 #ifdef __cplusplus
00063 extern "C" {
00064 #endif /* __cplusplus */
00065 
00066 /*****************************************************************************/
00068 /*****************************************************************************/
00076 PurpleWhiteboardUiOps *pidgin_whiteboard_get_ui_ops( void );
00077 
00080 #ifdef __cplusplus
00081 }
00082 #endif /* __cplusplus */
00083 
00084 #endif /* _PIDGINWHITEBOARD_H_ */