Sides::Loader::Loader(Sides &s):
DataFile::ObjectLoader<Sides>(s)
{
+ add("horizontal", &Loader::horizontal);
+ add("vertical", &Loader::vertical);
add("top", &Sides::top);
add("right", &Sides::right);
add("bottom", &Sides::bottom);
add("left", &Sides::left);
}
+void Sides::Loader::horizontal(unsigned h)
+{
+ obj.right = h;
+ obj.left = h;
+}
+
+void Sides::Loader::vertical(unsigned v)
+{
+ obj.top = v;
+ obj.bottom = v;
+}
+
void Alignment::apply(Geometry &geom, const Geometry &parent) const
{