X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstyle.h;h=f17735f05e07c7efb4a3aa88c9e4bb6f4db79724;hb=6081ed9020ad22214a8e5b3829092f97b12d7c71;hp=bc210a23fd7ff00a251a9d58c91caa840bea782f;hpb=d7ae291415a21cc886fe318070b41ac8d3e57a30;p=libs%2Fgltk.git diff --git a/source/style.h b/source/style.h index bc210a2..f17735f 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: @@ -29,17 +40,20 @@ public: private: void font(const std::string &); void font_color(float, float, float); - void part(const std::string &); + void part(); + void special(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(Resources &); + 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