DUECA/DUSIME
Loading...
Searching...
No Matches
dueca::DuecaGtkInteraction Class Reference

This class provides feedback from keypresses and mouse movements on a Gtk widget. More...

#include <DuecaGtkInteraction.hxx>

Inheritance diagram for dueca::DuecaGtkInteraction:

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.
 

Protected Attributes

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.
 

Detailed Description

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: