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