]>
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 BackgroundWidget::BackgroundWidget(otk::Widget
*parent
,
12 WidgetBase::WidgetType type
)
13 : otk::Widget(parent
),
19 BackgroundWidget::~BackgroundWidget()
24 void BackgroundWidget::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 BackgroundWidget::setStyle(otk::Style
*style
)
53 Widget::setStyle(style
);
58 setBorderColor(_style
->getBorderColor());
63 assert(false); // there's no other background widgets!
68 void BackgroundWidget::focus()
75 void BackgroundWidget::unfocus()
77 otk::Widget::unfocus();
82 void BackgroundWidget::adjust()
84 // nothing to adjust here. its done in Frame::adjustSize
This page took 0.042678 seconds and 5 git commands to generate.