X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fentry.h;h=a350ea8890d2e91b75093c73bf601983eafc2c54;hb=8a829f00f36517625d57b002e3a479755c0eae6d;hp=a5b03fcdd64e77571237f62a4ec4e81c90111ff9;hpb=13efe34eae11be0d3a16522bcf63b21e754c8297;p=libs%2Fgltk.git diff --git a/source/entry.h b/source/entry.h index a5b03fc..a350ea8 100644 --- a/source/entry.h +++ b/source/entry.h @@ -59,8 +59,14 @@ private: public: void set_text(const std::string &); + void insert(unsigned, const std::string &); + void erase(unsigned, unsigned); const std::string &get_text() const { return text.get(); } + void set_edit_position(unsigned); + unsigned get_edit_position() const { return edit_pos; } + bool get_selection(unsigned &, unsigned &) const; + /** Sets the minimum size of the editing area, in characters and rows. This only affects autosizing. */ void set_edit_size(unsigned w, unsigned h);