1 #ifndef MSP_GLTK_PART_H_
2 #define MSP_GLTK_PART_H_
6 #include <msp/datafile/loader.h>
19 class Loader: public DataFile::Loader
26 Loader(Part &, Resources &);
29 void graphic(State, const std::string &);
31 void fill(bool, bool);
34 Part(const std::string &);
35 const std::string &get_name() const { return name; }
36 const Graphic *get_graphic(State) const;
37 unsigned get_width() const { return width; }
38 unsigned get_height() const { return height; }
39 const Alignment &get_alignment() const { return align; }
40 bool get_fill_x() const { return fill_x; }
41 bool get_fill_y() const { return fill_y; }
42 void render(const Geometry &, State) const;
45 const Graphic *graphic[N_STATES_];
52 typedef std::list<Part> PartSeq;