1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
4 # include "../config.h"
7 #include "buttonwidget.hh"
11 OBButtonWidget::OBButtonWidget(otk::OtkWidget *parent,
12 OBWidget::WidgetType type)
13 : otk::OtkButton(parent),
19 OBButtonWidget::~OBButtonWidget()
24 void OBButtonWidget::setStyle(otk::Style *style)
26 otk::OtkButton::setStyle(style);
31 setTexture(style->getGripFocus());
32 setUnfocusTexture(style->getGripUnfocus());
33 setPressedFocusTexture(style->getGripFocus());
34 setPressedUnfocusTexture(style->getGripUnfocus());
35 setTexture(style->getGripFocus());
36 setUnfocusTexture(style->getGripUnfocus());
37 setPressedFocusTexture(style->getGripFocus());
38 setPressedUnfocusTexture(style->getGripUnfocus());
39 setBorderColor(_style->getBorderColor());
40 setUnfocusBorderColor(style->getBorderColor());
48 void OBButtonWidget::adjust()
50 otk::OtkButton::adjust();