]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/style.h
Reorder class members
[libs/gltk.git] / source / style.h
index bc210a23fd7ff00a251a9d58c91caa840bea782f..0bbdc21d23d59eb4269bee0dbed3888cc11d1412 100644 (file)
@@ -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