X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwidget.h;h=9b86691e48343344b723af0ad2d90726d82ff6b6;hb=9f38197854e699a6093a906ab43f4238f3cd2388;hp=a94198416a29776bb6eecf6fe3a0305436d2b116;hpb=771764f735ffe01cb170a10b24eb7dfc2a81b34d;p=libs%2Fgltk.git diff --git a/source/widget.h b/source/widget.h index a941984..9b86691 100644 --- a/source/widget.h +++ b/source/widget.h @@ -6,6 +6,7 @@ #include #include "geometry.h" #include "inputmethod.h" +#include "mspgltk_api.h" #include "partcache.h" #include "state.h" @@ -20,7 +21,7 @@ class Style; /** Base class for all widgets. */ -class Widget +class MSPGLTK_API Widget { friend class Container; @@ -46,17 +47,17 @@ public: protected: Geometry geom; std::string style_name; - const Style *style; - State state; - bool visible; - InputType input_type; - Container *parent; + const Style *style = 0; + State state = NORMAL; + bool visible = true; + InputType input_type = INPUT_NONE; + Container *parent = 0; std::string tooltip; PartCache part_cache; - bool rebuild_needed; + bool rebuild_needed = false; Time::TimeDelta anim_interval; - Widget(); + Widget() = default; private: Widget(const Widget &); Widget &operator=(const Widget &);