This class provides feedback from keypresses and mouse movements on a Gtk widget.
More...
|
| void | newSize (int w, int h) |
| | Specify a new size. More...
|
| |
|
| 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. More...
|
| |
|
int | getXOffset () |
| | Retrieve x position.
|
| |
|
int | getYOffset () |
| | Retrieve y position.
|
| |
| void | passShape () |
| | pass a previous/default shape. More...
|
| |
|
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
|
| |
This class provides feedback from keypresses and mouse movements on a Gtk widget.
It is normally used in combination with GL widgets.