X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fentry.h;h=edea4c3a2a1b4ad8b04e32520fc84ace645dc04a;hb=c8291177b545ec81930603a5915234a60296db51;hp=65a201a66730bde448d7341c918c690c10bb3ccb;hpb=022c6ccec48b5dca482239da4a4c38550377b188;p=libs%2Fgltk.git diff --git a/source/entry.h b/source/entry.h index 65a201a..edea4c3 100644 --- a/source/entry.h +++ b/source/entry.h @@ -22,17 +22,13 @@ Special parts: class Entry: virtual public Widget, private Container { public: - class Loader: public Widget::Loader - { - public: - Loader(Entry &); - }; - sigc::signal signal_enter; private: Text text; bool multiline; + unsigned edit_width; + unsigned edit_height; unsigned edit_pos; unsigned first_row; unsigned visible_rows; @@ -49,11 +45,16 @@ public: void set_text(const std::string &); const std::string &get_text() const { return text.get(); } + + /** Sets the minimum size of the editing area, in characters and rows. This + only affects autosizing. */ + void set_edit_size(unsigned w, unsigned h); + void set_multiline(bool); 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: