2011-10-31 21:21:40 -04:00
|
|
|
#ifndef __gtkmm2ext_widget_state_h__
|
|
|
|
#define __gtkmm2ext_widget_state_h__
|
|
|
|
|
2013-10-17 11:26:01 -04:00
|
|
|
#include "gtkmm2ext/visibility.h"
|
|
|
|
|
2011-10-31 21:21:40 -04:00
|
|
|
namespace Gtkmm2ext {
|
|
|
|
|
|
|
|
/* widget states: unlike GTK, visual states like "Selected" or "Prelight"
|
|
|
|
are orthogonal to active states.
|
|
|
|
*/
|
|
|
|
|
2013-10-17 11:26:01 -04:00
|
|
|
enum LIBGTKMM2EXT_API ActiveState {
|
2012-02-07 12:43:55 -05:00
|
|
|
Off,
|
|
|
|
ExplicitActive,
|
|
|
|
ImplicitActive,
|
2011-10-31 21:21:40 -04:00
|
|
|
};
|
|
|
|
|
2013-10-17 11:26:01 -04:00
|
|
|
enum LIBGTKMM2EXT_API VisualState {
|
2011-10-31 21:21:40 -04:00
|
|
|
/* these can be OR-ed together */
|
2012-02-07 12:43:55 -05:00
|
|
|
NoVisualState = 0x0,
|
2011-10-31 21:21:40 -04:00
|
|
|
Selected = 0x1,
|
|
|
|
Prelight = 0x2,
|
|
|
|
Insensitive = 0x4,
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __gtkmm2ext_widget_state_h__ */
|