]> git.tdb.fi Git - libs/gltk.git/blob - source/indicator.cpp
Add Widget::focusable flag
[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         focusable=false;
17         update_style();
18 }
19
20 void Indicator::set_active(bool a)
21 {
22         if(a)
23                 state|=ACTIVE;
24         else
25                 state&=~ACTIVE;
26 }
27
28 } // namespace GLtk
29 } // namespace Msp