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 const char *get_class() const override { return "draghandle"; }
24 void button_press(int, int, unsigned) override;
25 void button_release(int, int, unsigned) override;
26 void pointer_motion(int, int) override;
28 void on_reparent() override;