X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fgeometry.h;h=6fa8e7f1287ffd1f39942979f1f046889bc97ecc;hp=6559414dd0497ae5cdd8a8e8a0136ed6af062876;hb=8f6f543758fb1b2b17ae2db519198d420eb9982d;hpb=6be5b834084fb3ab421b94b6c4ad8eece6bab754 diff --git a/source/geometry.h b/source/geometry.h index 6559414..6fa8e7f 100644 --- a/source/geometry.h +++ b/source/geometry.h @@ -56,9 +56,9 @@ Performs alignment of nested geometries, such as widgets and their parts. struct Alignment { float x, y; + float w, h; - Alignment(): x(0), y(0) { } - Alignment(float x_, float y_): x(x_), y(y_) { } + Alignment(): x(0), y(0), w(1), h(1) { } void apply(Geometry &, const Geometry &) const; void apply(Geometry &, const Geometry &, const Sides &) const; };