summaryrefslogtreecommitdiff
path: root/otk/widget.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-18 07:23:28 +0000
committerDana Jansens <danakj@orodu.net>2003-01-18 07:23:28 +0000
commit9b6e5f9cf49df78be25720f9c4b33a733b856c9b (patch)
tree0da395f661151ce079d09483594f221c89e5d196 /otk/widget.cc
parenta4dd208a7955e25bca710d4bcf355de7e608b9e1 (diff)
provide RenderControls to all otk from the display class. initialize them all there. try use bitshifts instead of color tables in the TrueRenderControl class for finding correct rgbs. Move the image/pixmap/xftdraw into the surface class, and it maintains them, recreating them when it resizes.
Diffstat (limited to 'otk/widget.cc')
-rw-r--r--otk/widget.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/otk/widget.cc b/otk/widget.cc
index 551a7900..dc4cfa2e 100644
--- a/otk/widget.cc
+++ b/otk/widget.cc
@@ -15,7 +15,8 @@
namespace otk {
Widget::Widget(Widget *parent, Direction direction)
- : EventHandler(),
+ : Surface(parent->screen()),
+ EventHandler(),
_dirty(false), _focused(false),
_parent(parent), _style(parent->style()), _direction(direction),
_cursor(parent->cursor()), _bevel_width(parent->bevelWidth()),
@@ -37,7 +38,8 @@ Widget::Widget(Widget *parent, Direction direction)
Widget::Widget(EventDispatcher *event_dispatcher, Style *style,
Direction direction, Cursor cursor, int bevel_width,
bool override_redirect)
- : EventHandler(),
+ : Surface(style->getScreen()),
+ EventHandler(),
_dirty(false),_focused(false),
_parent(0), _style(style), _direction(direction), _cursor(cursor),
_bevel_width(bevel_width), _ignore_config(0), _visible(false),