1 #ifndef MSP_GLTK_PART_H_
2 #define MSP_GLTK_PART_H_
5 #include <msp/datafile/objectloader.h>
16 Defines a single graphical element of a widget style.
21 class Loader: public DataFile::CollectionObjectLoader<Part>
24 Loader(Part &, Resources &);
27 void graphic(State, const std::string &);
28 void align(float, float);
29 void fill(float, float);
31 void size(unsigned, unsigned);
36 const Graphic *graphic[N_STATES_];
42 Part(const std::string &);
43 const std::string &get_name() const { return name; }
44 const Graphic *get_graphic(State) const;
45 const Geometry &get_geometry() const { return geom; }
46 const Sides &get_margin() const { return margin; }
47 const Alignment &get_alignment() const { return align; }
48 void render(const Geometry &, State) const;