#include <DrawingArea.H>
|  | 
|  | DrawingArea (void) | 
|  | 
|  | DrawingArea (int width, int height) | 
|  | 
| virtual | ~DrawingArea (void) | 
|  | 
| void | connectDrawEvent (GCallback callBack, gpointer data) | 
|  | 
|  | Surface () | 
|  | 
|  | Surface (int width, int height) | 
|  | 
| virtual | ~Surface (void) | 
|  | 
| GtkWidget * | getWidget (void) | 
|  | 
| cairo_surface_t * | getSurface (void) | 
|  | 
| void | setSurface (cairo_surface_t *surface_) | 
|  | 
| void | clear () | 
|  | 
|  | Widget () | 
|  | Construcotr.  More... 
 | 
|  | 
|  | Widget (GtkWidget *w) | 
|  | 
| virtual | ~Widget () | 
|  | Destructor.  More... 
 | 
|  | 
| GtkWidget * | ref (void) | 
|  | 
| void | unref (void) | 
|  | 
| GtkWidget * | show (void) | 
|  | 
| GtkWidget * | hide (void) | 
|  | 
| bool | getVisible (void) | 
|  | 
| GtkWidget * | getWidget (void) | 
|  | 
| bool | getSensitive (void) | 
|  | 
| void | setSensitive (bool sens) | 
|  | 
| void | getSize (int &width, int &height) | 
|  | 
| virtual void | setSize (int width, int height) | 
|  | 
| void | getLocationSize (int &x, int &y, int &width, int &height) | 
|  | 
| void | queueDraw () | 
|  | 
| GdkWindow * | getWindow () | 
|  | 
| void | connect (const char *event, GCallback callback, gpointer data) | 
|  | 
| void | connectAfter (const char *event, GCallback callback, gpointer data) | 
|  | 
| void | connectExposeEventCallback (GCallback callback, void *data) | 
|  | 
| void | connectExposeEventCallback (GtkWidget *w, GCallback callback, void *data) | 
|  | 
| void | connectConfigureEventCallback (GCallback callback, void *data) | 
|  | 
| void | connectConfigureEventCallback (GtkWidget *w, GCallback callback, void *data) | 
|  | 
| Widget & | operator<< (DragNDrop &dnd) | 
|  | 
| Widget & | operator>> (DragNDrop &dnd) | 
|  | 
|  | 
| virtual gboolean | configureEvent (GdkEventConfigure *event) | 
|  | 
| virtual bool | exposeEvent () | 
|  | 
| void | destroySurface (void) | 
|  | 
| void | init (int width, int height) | 
|  | 
| void | connectDamagedCallback (GCallback callback, void *data) | 
|  | 
| virtual bool | checkDropValidity (GtkWidget *w, GtkWidget *sourceWidget, int info, const unsigned char *selectionStoredData) | 
|  | 
| virtual bool | dragDataReceived (GtkWidget *w, GtkWidget *sourceWidget, int info, const unsigned char *selectionStoredData, int length) | 
|  | 
| virtual void | dragLeave (GtkWidget *w, GtkWidget *sourceWidget) | 
|  | 
| virtual bool | dragMotion (GtkWidget *w, GtkWidget *sourceWidget, int x, int y) | 
|  | 
| virtual int | chooseTheTargetToUse (GtkWidget *w, GtkWidget *sourceWidget, DragNDrop &dnd) | 
|  | 
| virtual void | dragDataGet (GtkWidget *w, GtkSelectionData *selectionData, guint info) | 
|  | 
| virtual void | dragDataDelete (GtkWidget *w) | 
|  | 
| virtual void | dragBegin (GtkWidget *w) | 
|  | 
| virtual void | dragEnd (GtkWidget *w) | 
|  | 
| static gboolean | configureEventStatic (GtkWidget *widget, GdkEventConfigure *event, gpointer data) | 
|  | 
| static gboolean | exposeEventStatic (GtkWidget *widget, GdkEventExpose *event, gpointer data) | 
|  | 
| cairo_surface_t * | surface | 
|  | The backing surface for the drawing area.  More... 
 | 
|  | 
| GtkWidget * | widget | 
|  | The container based widget.  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. 
 - Examples: 
- DrawingAreaTest.C.
Definition at line 29 of file DrawingArea.H.
◆ DrawingArea() [1/2]
  
  | 
        
          | DrawingArea::DrawingArea | ( | void |  | ) |  |  | inline | 
 
Constructor Create a drawing of default size (200 by 200) 
Definition at line 152 of file DrawingArea.H.
 
 
◆ DrawingArea() [2/2]
  
  | 
        
          | DrawingArea::DrawingArea | ( | int | width, |  
          |  |  | int | height |  
          |  | ) |  |  |  | inline | 
 
Constructor Create a drawing area of particular size 
Definition at line 159 of file DrawingArea.H.
 
 
◆ ~DrawingArea()
  
  | 
        
          | virtual DrawingArea::~DrawingArea | ( | void |  | ) |  |  | inlinevirtual | 
 
 
◆ buttonPressEvent()
  
  | 
        
          | static gint DrawingArea::buttonPressEvent | ( | GtkWidget * | widget, |  
          |  |  | GdkEventButton * | event, |  
          |  |  | gpointer | data |  
          |  | ) |  |  |  | inlinestaticprivate | 
 
Handler for when the button is pressed 
- Parameters
- 
  
    | widget | Which widget the button is pressed in. |  | event | The event to handle |  | data | The user data which is a pointer to this class. |  
 
- Returns
- TRUE to continue processing the event 
Definition at line 37 of file DrawingArea.H.
 
 
◆ connectDrawEvent()
  
  | 
        
          | void DrawingArea::connectDrawEvent | ( | GCallback | callBack, |  
          |  |  | gpointer | data |  
          |  | ) |  |  |  | inline | 
 
 
◆ draw()
  
  | 
        
          | virtual void DrawingArea::draw | ( | GtkWidget * | widget, |  
          |  |  | gdouble | x, |  
          |  |  | gdouble | y |  
          |  | ) |  |  |  | inlineprivatevirtual | 
 
Draw a rectangle on the screen 
- Parameters
- 
  
    | widget | The widget to draw on. |  | x | The ordinate to draw to. |  | y | The coordinate to draw to. |  
 
Reimplemented in SelectionArea.
Definition at line 110 of file DrawingArea.H.
 
 
◆ erase()
  
  | 
        
          | virtual void DrawingArea::erase | ( | GtkWidget * | widget, |  
          |  |  | gdouble | x, |  
          |  |  | gdouble | y |  
          |  | ) |  |  |  | inlineprivatevirtual | 
 
Erase a rectangle on the screen 
- Parameters
- 
  
    | widget | The widget to draw on. |  | x | The ordinate to draw to. |  | y | The coordinate to draw to. |  
 
Reimplemented in SelectionArea.
Definition at line 133 of file DrawingArea.H.
 
 
◆ init()
  
  | 
        
          | void DrawingArea::init | ( | void |  | ) |  |  | inlineprivate | 
 
Create a valid drawing area of particular size 
Definition at line 81 of file DrawingArea.H.
 
 
◆ leaveEvent()
  
  | 
        
          | virtual void DrawingArea::leaveEvent | ( |  | ) |  |  | inlineprivatevirtual | 
 
 
◆ leaveEventStatic()
  
  | 
        
          | static gint DrawingArea::leaveEventStatic | ( | GtkWidget * | widget, |  
          |  |  | GdkEventMotion * | event, |  
          |  |  | gpointer | data |  
          |  | ) |  |  |  | inlinestaticprivate | 
 
Notifies when the mouse has left the widget. 
Definition at line 72 of file DrawingArea.H.
 
 
◆ motionNotifyEvent()
  
  | 
        
          | static gint DrawingArea::motionNotifyEvent | ( | GtkWidget * | widget, |  
          |  |  | GdkEventMotion * | event, |  
          |  |  | gpointer | data |  
          |  | ) |  |  |  | inlinestaticprivate | 
 
 
◆ move()
  
  | 
        
          | virtual void DrawingArea::move | ( | GtkWidget * | widget, |  
          |  |  | gdouble | x, |  
          |  |  | gdouble | y |  
          |  | ) |  |  |  | inlineprivatevirtual | 
 
Move the brush. Moves the brush without drawing. 
- Parameters
- 
  
    | widget | The widget to move the brush on. |  | x | The ordinate to draw to. |  | y | The coordinate to draw to. |  
 
Reimplemented in SelectionArea.
Definition at line 94 of file DrawingArea.H.
 
 
The documentation for this class was generated from the following file: