gtkwhiteboard.h

Go to the documentation of this file.
00001 
00025 #ifndef _PIDGINWHITEBOARD_H_
00026 #define _PIDGINWHITEBOARD_H_
00027 
00028 #include "pidgin.h"
00029 
00030 #include "whiteboard.h"
00031 
00032 #define FULL_CIRCLE_DEGREES 23040
00033 
00034 /* TODO: Make into an enum. */
00035 #define BRUSH_STATE_UP      0
00036 #define BRUSH_STATE_DOWN    1
00037 #define BRUSH_STATE_MOTION  2
00038 
00039 /* XXX: This seems duplicated with the Yahoo! Doodle prpl code.
00040  * XXX: How should they work together? */
00041 #define PALETTE_NUM_COLORS  7
00042 
00046 typedef struct _PidginWhiteboard
00047 {
00048     PurpleWhiteboard *wb;      
00050     GtkWidget *window;       
00051     GtkWidget *drawing_area; 
00053     GdkPixmap *pixmap;       
00055     int  width;              
00056     int  height;             
00057     int brush_color;         
00058     int brush_size;          
00059 } PidginWhiteboard;
00060 
00061 #ifdef __cplusplus
00062 extern "C" {
00063 #endif /* __cplusplus */
00064 
00065 /*****************************************************************************/
00067 /*****************************************************************************/
00075 PurpleWhiteboardUiOps *pidgin_whiteboard_get_ui_ops( void );
00076 
00079 #ifdef __cplusplus
00080 }
00081 #endif /* __cplusplus */
00082 
00083 #endif /* _PIDGINWHITEBOARD_H_ */