3 This file is part of libmspgltk
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GLTK_ALIGNMENT_H_
9 #define MSP_GLTK_ALIGNMENT_H_
17 Handles alignment of widget parts. Both x and y components can have values -1
18 (left / bottom), 0 (center) or 1 (right / top).
24 Alignment(): x(0), y(0) { }
25 Alignment(int x_, int y_): x(x_), y(y_) { }
26 void apply(const Geometry &, unsigned, unsigned) const;