+ add("margin", &Loader::margin);
+ add("size", &Loader::size);
+}
+
+Part::Loader::~Loader()
+{
+ for(unsigned i=0; i<N_STATES_; ++i)
+ if(obj.graphic[i])
+ {
+ const Graphic &grph = *obj.graphic[i];
+ const Sides &shadow = grph.get_shadow();
+ obj.geom.w = max(obj.geom.w, grph.get_width()-shadow.left-shadow.right);
+ obj.geom.h = max(obj.geom.h, grph.get_height()-shadow.bottom-shadow.top);
+ }
+}
+
+void Part::Loader::graphic_normal(const string &n)
+{
+ graphic(NORMAL, n);