X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwidget.cpp;h=e20ea82b56fcf085a2cab9a8eb7a1e0e96aaad19;hb=c2635c5a3dca6a6cea5562fd387beb0662b18cf0;hp=8674a138ab7b6cf240ff7510524c346e3265a77a;hpb=be8ea35fe6eabe4c68d2d337634f21c63c964265;p=libs%2Fgltk.git diff --git a/source/widget.cpp b/source/widget.cpp index 8674a13..e20ea82 100644 --- a/source/widget.cpp +++ b/source/widget.cpp @@ -1,14 +1,27 @@ +/* $Id$ + +This file is part of libmspgltk +Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include #include #include "resources.h" #include "widget.h" -#include using namespace std; namespace Msp { namespace GLtk { +Widget::Widget(const Resources &r): + res(r), + style(0), + state(NORMAL), + visible(true) +{ } + void Widget::set_position(int x, int y) { geom.x=x; @@ -44,23 +57,6 @@ void Widget::render() const GL::pop_matrix(); } -Widget::Widget(const Resources &r): - res(r), - style(0), - state(NORMAL) -{ } - -void Widget::update_style() -{ - string sname=get_class(); - if(!style_name.empty()) - { - sname+='-'; - sname+=style_name; - } - style=res.get