]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/panel.h
Add nameless child keywords for Panel
[libs/gltk.git] / source / panel.h
index e0eed014855030453f3dd62ce4e2ddf2e506ae57..8d67d14ffe46ff7b7ef5afaedfb83ce912da09b9 100644 (file)
@@ -26,7 +26,10 @@ public:
 
        public:
                Loader(Panel &, WidgetMap &);
+
        private:
+               template<typename T>
+               void add_child_type(const std::string &);
                Layout &get_layout();
                Widget &get_last_widget();
                template<typename T>
@@ -39,7 +42,8 @@ public:
                void gravity(int, int);
                void grid(unsigned);
                void layout();
-               void panel(const std::string &);
+               template<typename T>
+               void unnamed_child();
        };
 
 private:
@@ -71,6 +75,12 @@ protected:
        virtual void autosize_special(const Part &, Geometry &) const;
        virtual void render_special(const Part &, GL::Renderer &) const;
 
+public:
+       virtual bool navigate(Navigation);
+protected:
+       Widget *find_next_child(int, int, int, int, int) const;
+       static int compute_delta(int, int, int, int, int);
+
        virtual void on_geometry_change();
        virtual void on_child_added(Widget &);
        virtual void on_child_removed(Widget &);