1 #ifndef MSP_GLTK_ENTRY_H_
2 #define MSP_GLTK_ENTRY_H_
18 text The current text of the widget. Graphics are ignored.
19 cursor Indicates the current input position. Fill_x is ignored.
20 slider A vertical slider for multiline entries.
22 class Entry: virtual public Widget, private Container
25 class Loader: public DataFile::DerivedObjectLoader<Entry, Widget::Loader>
34 sigc::signal<void> signal_enter;
43 unsigned visible_rows;
44 const Part *text_part;
49 Entry(const std::string & = std::string());
51 virtual const char *get_class() const { return "entry"; }
54 virtual void autosize_special(const Part &, Geometry &) const;
57 void set_text(const std::string &);
58 const std::string &get_text() const { return text.get(); }
60 /** Sets the minimum size of the editing area, in characters and rows. This
61 only affects autosizing. */
62 void set_edit_size(unsigned w, unsigned h);
64 void set_multiline(bool);
65 bool is_multiline() const { return multiline; }
68 virtual void rebuild_special(const Part &);
69 virtual void render_special(const Part &, GL::Renderer &) const;
72 virtual void key_press(unsigned, unsigned);
73 virtual void character(wchar_t);
74 virtual void focus_out();
76 virtual void on_geometry_change();
77 virtual void on_style_change();
79 void set_edit_position(unsigned);
80 void check_view_range();
81 void slider_value_changed(double);