]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/entry.h
Change State into a bitmask to allow more fine-grained control of styles
[libs/gltk.git] / source / entry.h
index bd986c2ca82c26f64daa9248a5f874045f1ecf18..e5f3fd88be639bb22d083b93822cdb5109de23ec 100644 (file)
@@ -23,6 +23,13 @@ Special parts:
 */
 class Entry: public Widget
 {
+public:
+       class Loader: public Widget::Loader
+       {
+       public:
+               Loader(Entry &);
+       };
+
 private:
        std::string text;
        unsigned edit_pos;
@@ -33,12 +40,10 @@ public:
        void set_text(const std::string &);
        const std::string &get_text() const { return text; }
 
-       void key_press(unsigned, unsigned, wchar_t);
-       void focus_in();
-       void focus_out();
+       virtual void key_press(unsigned, unsigned, wchar_t);
 private:
-       const char *get_class() const { return "entry"; }
-       void render_part(const Part &) const;
+       virtual const char *get_class() const { return "entry"; }
+       virtual void render_special(const Part &) const;
 };
 
 } // namespace GLtk