]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/root.h
Refactor all slider logic into the Slider class
[libs/gltk.git] / source / root.h
index 7d5a592805f187a096e1fbc5e6f1a40822981d78..effa55628262b484b39ab97980721af41b751498 100644 (file)
@@ -39,6 +39,7 @@ private:
        int pointer_x;
        int pointer_y;
        Time::TimeStamp tooltip_timeout;
+       Time::TimeStamp last_tick;
        Widget *tooltip_target;
        Msp::GL::Camera camera;
        Msp::GL::Program *shprog;
@@ -63,7 +64,8 @@ public:
        virtual unsigned get_height() const { return geom.h; }
 
        void tick();
-       void render() const;
+       void render();
+       virtual void setup_frame(GL::Renderer &);
        virtual void render(GL::Renderer &, const GL::Tag & = GL::Tag()) const;
 
 private:
@@ -78,7 +80,7 @@ private:
        void get_touch(unsigned, int &, int &);
        void update_camera();
 
-       virtual void on_geometry_change();
+       virtual void on_size_change();
        virtual void on_child_added(Widget &);
 };