1 #ifndef MSP_GLTK_STYLE_H_
2 #define MSP_GLTK_STYLE_H_
4 #include <msp/gl/color.h>
5 #include <msp/gl/font.h>
6 #include <msp/datafile/objectloader.h>
15 Styles define what wigets look like. They are made up of Parts and some
21 class Loader: public DataFile::CollectionObjectLoader<Style, Resources>
24 Loader(Style &, Resources &);
27 void font(const std::string &);
28 void font_color(float, float, float);
29 void part(const std::string &);
33 typedef std::list<Part> PartSeq;
43 const GL::Font &get_font() const;
44 unsigned get_font_size() const { return font_size; }
45 const GL::Color &get_font_color() const { return font_color; }
46 const PartSeq &get_parts() const { return parts; }
47 const Part *get_part(const std::string &) const;