]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/panel.h
Rewrite Panel navigation logic so it makes more sense
[libs/gltk.git] / source / panel.h
index 165cc6ad50f497cfe35f49f45502a6bfc6c639f4..2bc7a5ffdfa01ff7ce80af7a16f67d3afb54e1b4 100644 (file)
@@ -23,7 +23,7 @@ public:
        protected:
                WidgetMap &wdg_map;
                Widget *last_widget;
-       
+
        public:
                Loader(Panel &, WidgetMap &);
        private:
@@ -71,6 +71,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 &);