Klamp't
0.8.1
|
A backend that processes mouse motion calls into dragging callbacks. Makes it a bit easier to determine free-dragging, control-dragging, shift-dragging, etc. More...
#include <NavigationGUI.h>
Public Member Functions | |
virtual bool | OnMouseClick (int button, int state, int mx, int my) |
virtual bool | OnMouseMove (int mx, int my) |
virtual bool | OnKeyDown (const string &key) |
virtual bool | OnKeyUp (const string &key) |
virtual void | BeginDrag (int x, int y, int button, int modifiers) |
virtual void | DoDrag (int dx, int dy, int button, int modifiers) |
virtual void | EndDrag (int x, int y, int button, int modifiers) |
virtual void | DoFreeDrag (int dx, int dy, int button) |
Overload this for regular (non-modified) dragging. | |
virtual void | DoCtrlDrag (int dx, int dy, int button) |
Overload this for control-dragging. | |
virtual void | DoAltDrag (int dx, int dy, int button) |
Overload this for alt-dragging. | |
virtual void | DoShiftDrag (int dx, int dy, int button) |
Overload this for shift-dragging. | |
virtual void | DoPassiveMouseMove (int x, int y) |
Overload this to handle plain, non-dragging mouse motion events. | |
Public Member Functions inherited from GenericBackendBase | |
virtual void | Start () |
Default implementation of following do nothing. | |
virtual void | Stop () |
virtual bool | ProcessMessage (const AnyCollection &msg) |
virtual bool | SendMessage (const AnyCollection &msg) |
Send a message to the gui. | |
void | MapButtonPress (const string &button, int *var) |
void | MapButtonToggle (const string &button, int *var) |
void | MapWidgetValue (const string &button, string *var) |
void | MapKeyToggle (const string &key, int *var) |
virtual bool | OnIdle () |
virtual bool | OnGLRender () |
virtual bool | OnGLViewport (int x, int y, int w, int h) |
virtual bool | OnCommand (const string &cmd, const string &args) |
virtual bool | OnButtonPress (const string &button) |
virtual bool | OnButtonToggle (const string &button, int checked) |
virtual bool | OnWidgetValue (const string &widget, const string &value) |
virtual bool | OnMouseWheel (int dwheel) |
virtual bool | OnScroll (int dy) |
virtual bool | OnSpaceball (const Math3D::RigidTransform &T) |
virtual bool | OnDevice (const string &name, const string &data) |
bool | SendQuit () |
bool | SendCommand (const string &cmd, const string &args) |
bool | SendNotify (const string &text, const string &msglevel="") |
bool | SendError (const string &text) |
bool | SendWarning (const string &text) |
bool | SendPauseIdle (double secs=1e300) |
bool | SendRefresh () |
bool | SendResize (int w, int h) |
bool | SendDrawText (double x, double y, double z, const std::string &text, int height=10) |
bool | SendDrawText (int x, int y, const std::string &text, int height=10) |
Public Attributes | |
int | oldmousex |
int | oldmousey |
int | clickButton |
int | clickModifiers |
Public Attributes inherited from GenericBackendBase | |
GenericGUIBase * | gui |
map< string, int * > | liveButtonPresses |
map< string, int * > | liveButtonToggles |
map< string, string * > | liveWidgetValues |
map< string, int * > | liveKeys |
A backend that processes mouse motion calls into dragging callbacks. Makes it a bit easier to determine free-dragging, control-dragging, shift-dragging, etc.