bool is_inside(int, int) const;
};
+
/**
Specifies margins on the sides of an element.
*/
Sides();
};
+
+/**
+Performs alignment of nested geometries, such as widgets and their parts.
+*/
+struct Alignment
+{
+ float x, y;
+
+ Alignment(): x(0), y(0) { }
+ Alignment(float x_, float y_): x(x_), y(y_) { }
+ void apply(Geometry &, const Geometry &) const;
+ void apply(Geometry &, const Geometry &, const Sides &) const;
+};
+
} // namespace GLtk
} // namespace Msp