Loading...
Searching...
No Matches
gtkwhiteboard.h
Go to the documentation of this file.
/* pidgin
*
* Pidgin is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
#ifndef _PIDGINWHITEBOARD_H_
#define _PIDGINWHITEBOARD_H_
#include "pidgin.h"
#include "whiteboard.h"
#define FULL_CIRCLE_DEGREES 23040
/* TODO: Make into an enum. */
#define BRUSH_STATE_UP 0
#define BRUSH_STATE_DOWN 1
#define BRUSH_STATE_MOTION 2
#define PALETTE_NUM_COLORS 7
typedef struct _PidginWhiteboard
{
PurpleWhiteboard *wb;
GtkWidget *window;
GtkWidget *drawing_area;
GdkPixmap *pixmap;
int width;
int height;
int brush_color;
int brush_size;
} PidginWhiteboard;
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/*****************************************************************************/
/*****************************************************************************/
PurpleWhiteboardUiOps *pidgin_whiteboard_get_ui_ops( void );
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* _PIDGINWHITEBOARD_H_ */
pidgin_whiteboard_get_ui_ops
PurpleWhiteboardUiOps * pidgin_whiteboard_get_ui_ops(void)
Gets the GtkWhiteboard UI Operations.
PidginWhiteboard
struct _PidginWhiteboard PidginWhiteboard
A PidginWhiteboard.
pidgin.h
UI definitions and includes.
_PidginWhiteboard
A PidginWhiteboard.
Definition gtkwhiteboard.h:46
_PidginWhiteboard::wb
PurpleWhiteboard * wb
backend data for this whiteboard
Definition gtkwhiteboard.h:47
_PidginWhiteboard::drawing_area
GtkWidget * drawing_area
Drawing area.
Definition gtkwhiteboard.h:50
_PidginWhiteboard::brush_color
int brush_color
Foreground color.
Definition gtkwhiteboard.h:56
_PidginWhiteboard::pixmap
GdkPixmap * pixmap
Memory for drawing area.
Definition gtkwhiteboard.h:52
_PidginWhiteboard::window
GtkWidget * window
Window for the Doodle session.
Definition gtkwhiteboard.h:49
_PidginWhiteboard::brush_size
int brush_size
Brush size.
Definition gtkwhiteboard.h:57
_PidginWhiteboard::width
int width
Canvas width.
Definition gtkwhiteboard.h:54
_PidginWhiteboard::height
int height
Canvas height.
Definition gtkwhiteboard.h:55
whiteboard.h
The PurpleWhiteboard core object.
PurpleWhiteboardUiOps
struct _PurpleWhiteboardUiOps PurpleWhiteboardUiOps
The PurpleWhiteboard UI Operations.
PurpleWhiteboard
struct _PurpleWhiteboard PurpleWhiteboard
A PurpleWhiteboard.