]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/state.h
Add getter for Panel::layout
[libs/gltk.git] / source / state.h
index 688d8dcb3baa60cbf7afb0f97302f0275545026f..eb124691dfba756673b01b3718e1f8c6114062ee 100644 (file)
@@ -1,10 +1,3 @@
-/* $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_
 
@@ -16,25 +9,25 @@ 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<State>(static_cast<int>(a)|static_cast<int>(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<State>(static_cast<int>(a)&static_cast<int>(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<State>(~static_cast<int>(a)); }