X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fentry.h;h=0bba6f0fbe0e26cd74018b81610d4a4a12b27aec;hb=768c65e13861f72929290ac2513df9975579e543;hp=65a201a66730bde448d7341c918c690c10bb3ccb;hpb=022c6ccec48b5dca482239da4a4c38550377b188;p=libs%2Fgltk.git diff --git a/source/entry.h b/source/entry.h index 65a201a..0bba6f0 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,6 +45,11 @@ 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; }