|
DUECA/DUSIME
|
This class provides feedback from keypresses and mouse movements on a Gtk widget. More...
#include <DuecaGtkInteraction.hxx>

Public Member Functions | |
| void | newSize (int w, int h) |
| Specify a new size. | |
| DuecaGtkInteraction (GtkWidget *widget=NULL, int w=0, int h=0) | |
| Constructor. | |
| ~DuecaGtkInteraction () | |
| Destructor. | |
| int | getWidth () |
| Information function, retrieve width. | |
| int | getHeight () |
| Information function, retrieve height. | |
| int | getXOffset () |
| Retrieve x position. | |
| int | getYOffset () |
| Retrieve y position. | |
| void | passShape () |
| pass a previous/default shape. | |
| virtual void | reshape (int x, int y) |
| callback function, override to get notified of shape changes | |
| virtual void | keyboard (char c, int x, int y) |
| callback function, override to get notified of keypresses | |
| virtual void | special (int c, int x, int y) |
| callback function, override to get notified of special key presses | |
| virtual void | motion (int x, int y) |
| mouse motion, with pressed key | |
| virtual void | passive (int x, int y) |
| mouse motion, nothing pressed | |
| virtual void | mouse (int button, int state, int x, int y) |
| mouse button press actions | |
Protected Member Functions | |
| void | init (GtkWidget *widget=NULL) |
| Helper function, initialization. | |
This class provides feedback from keypresses and mouse movements on a Gtk widget.
It is normally used in combination with GL widgets.