|
Index
C++ Code Documentation
motion::Mouse
Children: motion::Inertia
File: GEOM/motion/Mouse.H
public:
- Mouse();
 | constructor | |
- virtual ~Mouse();
 | destructor | |
- bool mouse_press_event( int button, int x, int y );
- bool mouse_release_event( int button, int x, int y );
- bool mouse_drag_event( int x, int y );
protected:
- struct Point;
 | current mouse coordinates | |
- Point( int u, int v ) : x(u), y(v);
- int x;
- int y;
- };
- virtual void compute_inertia( uint button, Point const &p0, Point const &p1 ) = 0;
- virtual void enable_inertia(bool state) = 0;
- virtual void refresh() = 0;
private:
- base::Timer _timer;
- int _button;
 | _button: the current button | |
- bool _button_down;
 | _button_down is true when a mouse button is down | |
- int _drags;
 | _drags counts the number of mouse drag events that have occured | |
- Point _point0, _point1;
 | begin and end points of mouse drag | |
- static float const MOUSE_STOP_TIME;
- Mouse( Mouse const & );
 | disabled copy constructor | |
- Mouse &operator=( Mouse const & );
 | disabled assignment operator | |
|