GTK+ IOStream
Beta
<< GTK+ >> add C++ IOStream operators to GTK+. Now with extra abilities ... like network serialisation
|
#include <DrawingArea.H>
Public Member Functions | |
DrawingArea (void) | |
DrawingArea (int width, int height) | |
virtual | ~DrawingArea (void) |
void | draw_brush (GtkWidget *widget, gdouble x, gdouble y) |
![]() | |
Pixmap () | |
Pixmap (int width, int height) | |
virtual | ~Pixmap (void) |
GtkWidget * | getWidget (void) |
GdkPixmap * | getPixmap (void) |
void | setPixmap (GdkPixmap *pixmap_) |
Private Member Functions | |
void | init (void) |
Static Private Member Functions | |
static gint | button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer data) |
static gint | motion_notify_event (GtkWidget *widget, GdkEventMotion *event, gpointer data) |
Additional Inherited Members | |
![]() | |
GtkWidget * | show (void) |
GtkWidget * | hide (void) |
void | destroyPixmap (void) |
void | init (int width, int height) |
![]() | |
static gboolean | configure_event (GtkWidget *widget, GdkEventConfigure *event, gpointer data) |
static gboolean | expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer data) |
![]() | |
GtkWidget * | widget |
The drawing area widget. More... | |
GdkPixmap * | pixmap |
Backing pixmap for drawing area. More... | |
DrawingArea
This class allows the user to draw within a window by moving the mouse. It uses a backing pixmap to store drawing strokes.
Definition at line 29 of file DrawingArea.H.
|
inline |
Constructor
Create a drawing of default size (200 by 200)
Definition at line 80 of file DrawingArea.H.
Constructor
Create a drawing area of particular size
Definition at line 87 of file DrawingArea.H.
|
inlinevirtual |
Destructor
Definition at line 93 of file DrawingArea.H.
|
inlinestaticprivate |
Handler for when the button is pressed
widget | Which widget the button is pressed in. |
event | The event to handle |
Definition at line 36 of file DrawingArea.H.
|
inline |
Draw a rectangle on the screen
Definition at line 97 of file DrawingArea.H.
|
inlineprivate |
Create a valid drawing area of particular size
width | The width of the area |
height | The height of the area |
Definition at line 68 of file DrawingArea.H.
|
inlinestaticprivate |
Definition at line 45 of file DrawingArea.H.