This class provides feedback from keypresses and mouse movements on a Gtk widget.
More...
#include <DuecaGtkInteraction.hxx>
|
|
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
|
|
|
void | init (GtkWidget *widget=NULL) |
| | Helper function, initialization.
|
|
|
int | width |
| | Width of the GL widget.
|
|
int | height |
| | Height of the GL widget.
|
|
int | x |
| | X position of the GL widget.
|
|
int | y |
| | Y position of the GL widget.
|
|
bool | dopass |
| | Flag to indicate passing events.
|
This class provides feedback from keypresses and mouse movements on a Gtk widget.
It is normally used in combination with GL widgets.
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/dueca-4.2.9-build/dueca-4.2.9/extra/gui/gtk4/DuecaGtkInteraction.hxx