X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstyle.h;h=0bbdc21d23d59eb4269bee0dbed3888cc11d1412;hb=1fde94c15fc65e85f5931a9daf74dd8806e682e0;hp=bc210a23fd7ff00a251a9d58c91caa840bea782f;hpb=d7ae291415a21cc886fe318070b41ac8d3e57a30;p=libs%2Fgltk.git diff --git a/source/style.h b/source/style.h index bc210a2..0bbdc21 100644 --- a/source/style.h +++ b/source/style.h @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of libmspgltk +Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #ifndef MSP_GLTK_STYLE_H_ #define MSP_GLTK_STYLE_H_ @@ -11,6 +18,10 @@ namespace GLtk { class Resources; +/** +Styles define what wigets look like. They are made up of Parts and some +generic properties. +*/ class Style { public: @@ -32,14 +43,16 @@ public: void part(const std::string &); }; - Style(); - const GL::Font *get_font() const { return font; } - const GL::Color &get_font_color() const { return font_color; } - const PartSeq &get_parts() const { return parts; } private: const GL::Font *font; GL::Color font_color; PartSeq parts; + +public: + Style(); + const GL::Font *get_font() const { return font; } + const GL::Color &get_font_color() const { return font_color; } + const PartSeq &get_parts() const { return parts; } }; } // namespace GLtk