]> icculus.org git repositories - mikachu/openbox.git/blob - src/labelwidget.cc
oops adding the other OB Widgets
[mikachu/openbox.git] / src / labelwidget.cc
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2
3 #ifdef HAVE_CONFIG_H
4 # include "../config.h"
5 #endif
6
7 #include "labelwidget.hh"
8
9 namespace ob {
10
11 OBLabelWidget::OBLabelWidget(otk::OtkWidget *parent, OBWidget::WidgetType type)
12   : otk::OtkFocusLabel(parent),
13     OBWidget(type)
14 {
15 }
16
17
18 OBLabelWidget::~OBLabelWidget()
19 {
20 }
21
22
23 void OBLabelWidget::setStyle(otk::Style *style)
24 {
25   setTexture(style->getLabelFocus());
26   setUnfocusTexture(style->getLabelUnfocus());
27
28   otk::OtkFocusLabel::setStyle(style);
29 }
30
31
32 void OBLabelWidget::adjust()
33 {
34   otk::OtkFocusLabel::adjust();
35
36   // XXX: adjust shit
37 }
38
39
40 }