X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdraghandle.h;h=d3cd6f2b94cd88c6c17f9d22381c289308e26b47;hb=9f38197854e699a6093a906ab43f4238f3cd2388;hp=5643df4a00c3f994e39db1f212898df9861ad3e3;hpb=31e9ee682f8a9cd77c97ed9dc142283559ddaacc;p=libs%2Fgltk.git diff --git a/source/draghandle.h b/source/draghandle.h index 5643df4..d3cd6f2 100644 --- a/source/draghandle.h +++ b/source/draghandle.h @@ -1,6 +1,7 @@ #ifndef MSP_GLTK_DRAGHANDLE_H_ #define MSP_GLTK_DRAGHANDLE_H_ +#include "mspgltk_api.h" #include "widget.h" namespace Msp { @@ -10,16 +11,14 @@ namespace GLtk { Moves its parent widget when dragged. This allows turning a Panel or Dialog into a movable window. */ -class DragHandle: public Widget +class MSPGLTK_API DragHandle: public Widget { private: - bool dragging; - int drag_x; - int drag_y; + bool dragging = false; + int drag_x = 0; + int drag_y = 0; public: - DragHandle(); - virtual const char *get_class() const { return "draghandle"; } virtual void button_press(int, int, unsigned);