openbox/src/labelwidget.cc

41 lines
607 B
C++
Raw Normal View History

2002-12-18 11:35:26 +00:00
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
#ifdef HAVE_CONFIG_H
# include "../config.h"
#endif
#include "labelwidget.hh"
namespace ob {
OBLabelWidget::OBLabelWidget(otk::OtkWidget *parent, OBWidget::WidgetType type)
: otk::OtkFocusLabel(parent),
OBWidget(type)
{
}
OBLabelWidget::~OBLabelWidget()
{
}
void OBLabelWidget::setStyle(otk::Style *style)
{
setTexture(style->getLabelFocus());
setUnfocusTexture(style->getLabelUnfocus());
otk::OtkFocusLabel::setStyle(style);
}
void OBLabelWidget::adjust()
{
otk::OtkFocusLabel::adjust();
// XXX: adjust shit
}
}