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 #define PALETTE_NUM_COLORS  7
00041 
00045 typedef struct _PidginWhiteboard
00046 {
00047     PurpleWhiteboard *wb;      
00049     GtkWidget *window;       
00050     GtkWidget *drawing_area; 
00052     GdkPixmap *pixmap;       
00054     int  width;              
00055     int  height;             
00056     int brush_color;         
00057     int brush_size;          
00058 } PidginWhiteboard;
00059 
00060 #ifdef __cplusplus
00061 extern "C" {
00062 #endif /* __cplusplus */
00063 
00064 /*****************************************************************************/
00066 /*****************************************************************************/
00074 PurpleWhiteboardUiOps *pidgin_whiteboard_get_ui_ops( void );
00075 
00078 #ifdef __cplusplus
00079 }
00080 #endif /* __cplusplus */
00081 
00082 #endif /* _PIDGINWHITEBOARD_H_ */