]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/layout.h
Smarter way of complementing constraint types
[libs/gltk.git] / source / layout.h
index 7ae3907c772d740f0ad1ab3e28386f5bc0042213..43d1ca875c2d01d9e9a60e9e22e554808b43d673 100644 (file)
@@ -57,8 +57,10 @@ private:
                VERTICAL = 1,
                SELF_POS = 2,
                SELF_DIM = 4,
+               SELF_MASK = 6,
                TARGET_POS = 8,
                TARGET_DIM = 16,
+               TARGET_MASK = 24,
                SPACING = 32
        };
 
@@ -140,8 +142,16 @@ public:
 
        void set_container(Container &);
        void set_margin(const Sides &);
+
+       /** Sets the default spacing between widgets in bothg directions. */
        void set_spacing(unsigned);
+
+       /** Sets the default vertical spacing between widgets.  Affects the ABOVE
+       and BELOW constraints. */
        void set_row_spacing(unsigned);
+
+       /** Sets the default horizontal spacing between widgets.  Affects the
+       LEFT_OF and RIGHT_OF constraints. */
        void set_column_spacing(unsigned);
 
        void add_widget(Widget &);