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