diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-08 07:33:48 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-08 07:33:48 +0000 |
| commit | 99cd843fc6dc7a7f55b6c90fd1162f233853aad2 (patch) | |
| tree | 42b25c02cbf984fe29b378e9d0dbfbca1436c87b /otk/application.cc | |
| parent | d2df40965bbf042e062b65d6adc12bc158d503eb (diff) | |
Brand spankin new widgets for otk (Label and Button).
Add a new Size class.
Rect, Point, and Size are immutable classes.
Size uses *UNSIGNED* ints. This is causing me headaches * a bajillion right now, so we'll see about that.
Diffstat (limited to 'otk/application.cc')
| -rw-r--r-- | otk/application.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/otk/application.cc b/otk/application.cc index efe86d15..ffa33ab8 100644 --- a/otk/application.cc +++ b/otk/application.cc @@ -6,10 +6,10 @@ #include "application.hh" #include "eventhandler.hh" -#include "widget.hh" #include "timer.hh" #include "property.hh" #include "rendercolor.hh" +#include "renderstyle.hh" extern "C" { #ifdef HAVE_STDLIB_H @@ -30,17 +30,19 @@ Application::Application(int argc, char **argv) (void)argc; (void)argv; + _screen = DefaultScreen(*_display); + Timer::initialize(); RenderColor::initialize(); + RenderStyle::initialize(); Property::initialize(); - _style = new RenderStyle(DefaultScreen(*_display), ""); // XXX: get a path! loadStyle(); } Application::~Application() { - delete _style; + RenderStyle::destroy(); RenderColor::destroy(); Timer::destroy(); } |
