]>
Dogcows Code - chaz/openbox/blob - src/backgroundwidget.cc
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::OtkWidget(parent
),
19 OBBackgroundWidget::~OBBackgroundWidget()
24 void OBBackgroundWidget::setTextures()
29 setTexture(_style
->getTitleFocus());
31 setTexture(_style
->getTitleUnfocus());
35 setTexture(_style
->getHandleFocus());
37 setTexture(_style
->getHandleUnfocus());
41 setBorderColor(&_style
->getFrameFocus()->color());
43 setBorderColor(&_style
->getFrameUnfocus()->color());
46 assert(false); // there's no other background widgets!
51 void OBBackgroundWidget::setStyle(otk::Style
*style
)
53 OtkWidget::setStyle(style
);
58 setBorderColor(_style
->getBorderColor());
63 assert(false); // there's no other background widgets!
68 void OBBackgroundWidget::focus()
70 otk::OtkWidget::focus();
75 void OBBackgroundWidget::unfocus()
77 otk::OtkWidget::unfocus();
82 void OBBackgroundWidget::adjust()
84 // nothing to adjust here. its done in OBFrame::adjustSize
This page took 0.043292 seconds and 4 git commands to generate.