]> git.tdb.fi Git - libs/gltk.git/blob - source/state.h
Reorder class members
[libs/gltk.git] / source / state.h
1 /* $Id$
2
3 This file is part of libmspgltk
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GLTK_STATE_H_
9 #define MSP_GLTK_STATE_H_
10
11 #include <istream>
12 #include <msp/datafile/value.h>
13
14 namespace Msp {
15 namespace GLtk {
16
17 enum State
18 {
19         NORMAL,   //< Default state
20         HOVER,    //< Pointer over the widget
21         ACTIVE,   //< Widget is active (e.g. pressed button)
22         DISABLED, //< Widget is unresponsive
23         N_STATES_ //< Sentry value
24 };
25
26 extern std::istream &operator>>(std::istream &, State &);
27
28 } // namespace GLtk
29 } // namespace Msp
30
31 #endif