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/loader.h>
15 Styles define what wigets look like. They are made up of Parts and some
21 class Loader: public DataFile::Loader
28 typedef Resources Collection;
30 Loader(Style &, Resources &);
31 Style &get_object() const { return style; }
32 Resources &get_collection() const { return res; }
34 void font(const std::string &);
35 void font_color(float, float, float);
37 void part(const std::string &);
40 typedef std::list<Part> PartSeq;
50 const GL::Font &get_font() const { return *font; }
51 unsigned get_font_size() const { return font_size; }
52 const GL::Color &get_font_color() const { return font_color; }
53 const PartSeq &get_parts() const { return parts; }
54 const Part *get_part(const std::string &) const;