glv::Mouse Class Reference

Holds mouse state. More...

#include <glv_core.h>

List of all members.

Public Types

enum  
 Mouse button enumeration.

Public Member Functions

 Mouse ()
 Constructor.
space_t x () const
 Current x position.
space_t y () const
 Current y position.
space_t x (int button) const
 Get button's last down absolute x position.
space_t y (int button) const
 Get button's last down absolute y position.
space_t w () const
 Current wheel position.
space_t dx () const
 Current x velocity.
space_t dy () const
 Current y velocity.
space_t dw () const
 Current wheel velocity.
space_t ddx () const
 Current x acceleration.
space_t ddy () const
 Current y acceleration.
space_t ddw () const
 Current wheel acceleration.
space_t xRel () const
 Current x position relative to current listener.
space_t yRel () const
 Current y position relative to current listener.
space_t xRel (int button) const
 Get button's last down relative x position.
space_t yRel (int button) const
 Get button's last down relative y position.
int button () const
 Last event button number.
int clicks () const
 Number of sequential clicks of buttons.
bool isDown () const
 Whether last event was button down.
bool isDown (int button) const
 Whether button is currently down.
bool left () const
 Whether left button is currently down.
bool middle () const
 Whether middle button is currently down.
bool right () const
 Whether right button is currently down.
void setContext (View *v)
 Translate relative pos into sub-View.
void unsetContext (View *v)
 Translate relative pos out of sub-View.
void print ()
 Print out information about Mouse to stdout.


Detailed Description

Holds mouse state.
The documentation for this class was generated from the following files:

Generated on Thu Aug 12 23:55:16 2010 for GLV by  doxygen 1.5.5