]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/lineararrangement.h
Add a flag to make widgets in a LinearArrangement the same size
[libs/gltk.git] / source / lineararrangement.h
index 571e279af3cccc4093736dab6e994d48cae585da..ce49b34edf38c99d9618a2f424cbcc73bafb2adb 100644 (file)
@@ -15,7 +15,10 @@ public:
        public:
                Loader(LinearArrangement &);
        private:
+               void expand();
+               void spacing(unsigned);
                void split();
+               void uniform(bool);
        };
 
 protected:
@@ -25,15 +28,22 @@ protected:
        bool first;
        bool split_here;
        Side gravity;
+       bool internal_aligned;
+       bool uniform;
+       Widget *uniform_ref;
+       int next_spacing;
 
        LinearArrangement(Layout &, Side);
 
 public:
+       void set_uniform(bool);
        void split();
        void expand();
+       void spacing(unsigned);
 
 protected:
        virtual void process_widget(Widget &, Side, bool);
+       virtual void finish_widget(Widget &);
        virtual void finish_slot();
 };