1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
4 # include "../config.h"
7 #include "backgroundwidget.hh"
11 OBBackgroundWidget::OBBackgroundWidget(otk::OtkWidget *parent,
12 OBWidget::WidgetType type)
13 : otk::OtkFocusWidget(parent),
19 OBBackgroundWidget::~OBBackgroundWidget()
24 void OBBackgroundWidget::setStyle(otk::Style *style)
28 setTexture(style->getTitleFocus());
29 setUnfocusTexture(style->getTitleUnfocus());
30 setBorderColor(style->getBorderColor());
33 setTexture(style->getHandleFocus());
34 setUnfocusTexture(style->getHandleUnfocus());
35 setBorderColor(style->getBorderColor());
38 setBorderColor(&style->getFrameFocus()->color());
39 setUnfocusBorderColor(&style->getFrameUnfocus()->color());
42 assert(false); // there's no other background widgets!
45 otk::OtkFocusWidget::setStyle(style);
49 void OBBackgroundWidget::adjust()
51 otk::OtkFocusWidget::adjust();