1 #ifndef MSP_GLTK_DRAGHANDLE_H_
2 #define MSP_GLTK_DRAGHANDLE_H_
4 #include "mspgltk_api.h"
11 Moves its parent widget when dragged. This allows turning a Panel or Dialog
12 into a movable window.
14 class MSPGLTK_API DragHandle: public Widget
17 bool dragging = false;
22 virtual const char *get_class() const { return "draghandle"; }
24 virtual void button_press(int, int, unsigned);
25 virtual void button_release(int, int, unsigned);
26 virtual void pointer_motion(int, int);
28 virtual void on_reparent();