]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/geometry.h
Refactor filling from Part to Alignment
[libs/gltk.git] / source / geometry.h
index 6559414dd0497ae5cdd8a8e8a0136ed6af062876..6fa8e7f1287ffd1f39942979f1f046889bc97ecc 100644 (file)
@@ -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;
 };