]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/entry.h
Refactor widget autosizing
[libs/gltk.git] / source / entry.h
index 0bba6f0fbe0e26cd74018b81610d4a4a12b27aec..1594c68d8e7bb883eebdb04362a6b4db552fa26f 100644 (file)
@@ -41,8 +41,10 @@ public:
 
        virtual const char *get_class() const { return "entry"; }
 
-       virtual void autosize();
+private:
+       virtual void autosize_special(const Part &, Geometry &);
 
+public:
        void set_text(const std::string &);
        const std::string &get_text() const { return text.get(); }
 
@@ -54,7 +56,7 @@ public:
        bool is_multiline() const { return multiline; }
 
 private:
-       virtual void rebuild_special(const Part &, CachedPart &);
+       virtual void rebuild_special(const Part &);
        virtual void render_special(const Part &, GL::Renderer &) const;
 
 public: