]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/root.h
Rename Widget::on_geometry_change to on_size_change
[libs/gltk.git] / source / root.h
index 5dbf7bb1aa112a317f59763ac6fd9c8ccb7bad9a..73ca276ed968a0e5241b5053c67ae89c96de39e6 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,7 @@ public:
        virtual unsigned get_height() const { return geom.h; }
 
        void tick();
-       virtual void render(const GL::Tag & = GL::Tag()) const;
+       void render() const;
        virtual void render(GL::Renderer &, const GL::Tag & = GL::Tag()) const;
 
 private:
@@ -78,7 +79,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 &);
 };