]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/panel.h
Move navigation logic from Container to Panel
[libs/gltk.git] / source / panel.h
index 830f5426bd72b0e2b9e5a6802c82d1c0f2865e1c..ebe765ddcf5f541c8d661231b1957536999978a8 100644 (file)
@@ -23,7 +23,7 @@ public:
        protected:
                WidgetMap &wdg_map;
                Widget *last_widget;
-       
+
        public:
                Loader(Panel &, WidgetMap &);
        private:
@@ -35,8 +35,10 @@ public:
                void child(const std::string &);
                void constraint(Layout::ConstraintType, const std::string &);
                void expand(bool, bool);
+               void ghost(bool);
                void gravity(int, int);
                void grid(unsigned);
+               void layout();
                void panel(const std::string &);
        };
 
@@ -63,11 +65,16 @@ public:
        virtual const char *get_class() const { return "panel"; }
 
        void set_layout(Layout *);
-       virtual void autosize();
+       Layout *get_layout() { return layout; }
 
 protected:
+       virtual void autosize_special(const Part &, Geometry &) const;
        virtual void render_special(const Part &, GL::Renderer &) const;
 
+public:
+       virtual bool navigate(Navigation);
+
+protected:
        virtual void on_geometry_change();
        virtual void on_child_added(Widget &);
        virtual void on_child_removed(Widget &);