#include <Fl_Window_MouseTracker.h>
Public Member Functions | |
| Fl_Window_MouseTracker (int X, int Y, int W, int H, const char *label=0, bool grid=false, int history=31) | |
| void | ActivateTracking (double interval) |
| void | DeactivateTracking (void) |
| Deactivates the mouse tracking. | |
| void | CaptureMotion (vector< Point2 > &motion) |
| bool | Capturing () |
| void | DisplayGesture (bool state=true) |
| Sets the motion to be shown (doesn't redisplay the window). | |
| void | Show (vector< Point2 > &motion) |
| void | ShowLengths (vector< double > &lengths, int scale=1) |
| void | SetGrid (bool grid) |
| void | Receive (const Point2 &data) |
| Outlet< Point2 > & | Out () |
| Inlet< Point2 > & | In () |
Protected Member Functions | |
| virtual void | draw () |
| Draws the image. | |
| void | drawMotion (vector< Point2 > &motion, Fl_Color col) |
| void | drawMotion (vector< Point2 > &motion, uchar r1, uchar g1, uchar b1, uchar r2, uchar g2, uchar b2, vector< int > *lengths=NULL) |
| virtual int | handle (int event) |
| Event handler used for the mouse tracking feature. | |
| Fl_Window_MouseTracker | ( | int | X, | |
| int | Y, | |||
| int | W, | |||
| int | H, | |||
| const char * | label = 0, |
|||
| bool | grid = false, |
|||
| int | history = 31 | |||
| ) | [inline] |
Defalut Constructor. Initializes the underlying window.
| void ActivateTracking | ( | double | interval | ) |
Activates the mouse tracking
| [in] | interval | interval between successive mouse location collections |
| [in] | mouse_callback | function called whenever the mouse location is collected |
| [in] | arg | argument supplied to the mouse_callback function |
1.5.1-p1