OpenGLPrakt --> events --> cEvent --> cMousePressEvent
a cEvent with a payload (a mouse button state change)
public cMousePressEvent ( const string & name = "cMousePressEvent" ) ;
constructor w/ initialization
name | string which contains the event's name |
public cMousePressEvent ( const string & name , int button , int state , GLfloat x , GLfloat y , GLfloat z = 0 ) ;
constructor w/ initialization
name | string which contains the event's name |
button | which button was affected |
state | how did it change state (GLUT_UP/GLUT_DOWN) |
x | x-pos of mouse |
y | y-pos of mouse |
z | z-pos of mouse (if any) |
public cMousePressEvent ( const string & name , int button , int state , const cVertex & pos ) ;
constructor w/ initialization
name | string which contains the event's name |
button | which button was affected |
state | how did it change state (GLUT_UP/GLUT_DOWN) |
pos | cVertex pos of mouse |
public cMousePressEvent ( const cMousePressEvent & e ) ;
copy constructor
public virtual ~ cMousePressEvent ( ) ;
destructor
protected int mButton
stored button mask
protected int mStatus
button status
protected cVertex mPos
mouse position
public virtual cMousePressEvent * Clone ( ) const ;
clone function
public virtual void GetButtonState ( int & button , int & state ) const ;
allow accessing the stored mouse status
button | reference to int where the affected buttons are written to |
state | reference to int where the new state is written to |
public virtual const cVertex & GetPos ( ) const ;
allow accessing the stored mouse position
This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.
Click here to return to the top of the page.