X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Falignment.h;fp=source%2Falignment.h;h=0000000000000000000000000000000000000000;hb=ed9873ba7ee862ad76937f579fe371c1a27d5715;hp=56d6766b758512a4433f503c5b01b65b9d5f612e;hpb=2f1c7d6861c801e24a003ee5f6132032e04c9bbe;p=libs%2Fgltk.git diff --git a/source/alignment.h b/source/alignment.h deleted file mode 100644 index 56d6766..0000000 --- a/source/alignment.h +++ /dev/null @@ -1,32 +0,0 @@ -/* $Id$ - -This file is part of libmspgltk -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#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