]>
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
->titlebarFocusBackground());
31 setTexture(_style
->titlebarUnfocusBackground());
35 setTexture(_style
->handleFocusBackground());
37 setTexture(_style
->handleUnfocusBackground());
41 setBorderColor(_style
->clientBorderFocusColor());
43 setBorderColor(_style
->clientBorderUnfocusColor());
46 assert(false); // there's no other background widgets!
51 void BackgroundWidget::setStyle(otk::RenderStyle
*style
)
53 Widget::setStyle(style
);
58 setBorderColor(_style
->frameBorderColor());
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.039086 seconds and 5 git commands to generate.