X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstate.h;h=51d17b2bb758fa14e08186c815fc565612148373;hb=56c41b294aa47a38ac3e1be70d4868f260cb4274;hp=688d8dcb3baa60cbf7afb0f97302f0275545026f;hpb=50bf1ef2e2c3c38de20f6996a6c5ed0066111177;p=libs%2Fgltk.git diff --git a/source/state.h b/source/state.h index 688d8dc..51d17b2 100644 --- a/source/state.h +++ b/source/state.h @@ -1,45 +1,39 @@ -/* $Id$ - -This file is part of libmspgltk -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GLTK_STATE_H_ #define MSP_GLTK_STATE_H_ #include #include +#include "mspgltk_api.h" namespace Msp { namespace GLtk { enum State { - NORMAL=0, //< Default state - HOVER=1, //< Pointer over the widget - ACTIVE=2, //< Widget is active (e.g. pressed button) - FOCUS=4, //< Widget has input focus - DISABLED=8, //< Widget is unresponsive - N_STATES_=16 //< Sentry value + NORMAL = 0, //< Default state + HOVER = 1, //< Pointer over the widget + ACTIVE = 2, //< Widget is active (e.g. pressed button) + FOCUS = 4, //< Widget has input focus + DISABLED = 8, //< Widget is unresponsive + N_STATES_ = 16 //< Sentry value }; inline State operator|(State a, State b) { return static_cast(static_cast(a)|static_cast(b)); } inline State operator|=(State &a, State b) -{ a=a|b; return a; } +{ a = a|b; return a; } inline State operator&(State a, State b) { return static_cast(static_cast(a)&static_cast(b)); } inline State operator&=(State &a, State b) -{ a=a&b; return a; } +{ a = a&b; return a; } inline State operator~(State a) { return static_cast(~static_cast(a)); } -extern std::istream &operator>>(std::istream &, State &); +MSPGLTK_API std::istream &operator>>(std::istream &, State &); } // namespace GLtk } // namespace Msp