X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstyle.h;h=e1cbc3a40e43300cc36df44f6f9174a36d86e1df;hb=033732b500a35f3737bad515349d884cb3f123f0;hp=bc210a23fd7ff00a251a9d58c91caa840bea782f;hpb=d7ae291415a21cc886fe318070b41ac8d3e57a30;p=libs%2Fgltk.git diff --git a/source/style.h b/source/style.h index bc210a2..e1cbc3a 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,23 @@ public: private: void font(const std::string &); void font_color(float, float, float); + void part(); 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; } + typedef std::list PartSeq; + 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; } + const Part *get_part(const std::string &) const; }; } // namespace GLtk