]> git.tdb.fi Git - libs/gltk.git/blob - source/state.h
4e57990c9f015b9ddb2827d767322f188b2b6c3f
[libs/gltk.git] / source / state.h
1 #ifndef MSP_GLTK_STATE_H_
2 #define MSP_GLTK_STATE_H_
3
4 #include <istream>
5 #include <msp/datafile/value.h>
6
7 namespace Msp {
8 namespace GLtk {
9
10 enum State
11 {
12         NORMAL,   //< Default state
13         HOVER,    //< Pointer over the widget
14         ACTIVE,   //< Widget is active (e.g. pressed button)
15         DISABLED, //< Widget is unresponsive
16         N_STATES_ //< Sentry value
17 };
18
19 extern std::istream &operator>>(std::istream &, State &);
20
21 } // namespace GLtk
22 } // namespace Msp
23
24 #endif