]> git.tdb.fi Git - libs/gltk.git/blob - source/indicator.cpp
Clear input focus when the focused widget is hidden
[libs/gltk.git] / source / indicator.cpp
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 #include "indicator.h"
9
10 namespace Msp {
11 namespace GLtk {
12
13 Indicator::Indicator(const Resources &r):
14         Widget(r)
15 {
16         update_style();
17 }
18
19 void Indicator::set_active(bool a)
20 {
21         if(a)
22                 state|=ACTIVE;
23         else
24                 state&=~ACTIVE;
25 }
26
27 } // namespace GLtk
28 } // namespace Msp