+#ifndef MSP_GLTK_ALIGNMENT_H_
+#define MSP_GLTK_ALIGNMENT_H_
+
+namespace Msp {
+namespace GLtk {
+
+class Geometry;
+
+/**
+Handles alignment of widget parts. Both x and y components can have values -1
+(left / bottom), 0 (center) or 1 (right / top).
+*/
+struct Alignment
+{
+ int x, y;
+
+ Alignment(): x(0), y(0) { }
+ Alignment(int x_, int y_): x(x_), y(y_) { }
+ void apply(const Geometry &, unsigned, unsigned) const;
+};
+
+} // namespace GLtk
+} // namespace Msp
+
+#endif