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 Widget::Loader
31 sigc::signal<void> signal_enter;
38 unsigned visible_rows;
39 const Part *text_part;
43 Entry(const std::string & = std::string());
45 virtual const char *get_class() const { return "entry"; }
47 virtual void autosize();
49 void set_text(const std::string &);
50 const std::string &get_text() const { return text.get(); }
51 void set_multiline(bool);
52 bool is_multiline() const { return multiline; }
55 virtual void render_special(const Part &) const;
58 virtual void key_press(unsigned, unsigned);
59 virtual void character(wchar_t);
61 virtual void on_geometry_change();
62 virtual void on_style_change();
64 void reposition_slider();
65 void check_view_range();
66 void slider_value_changed(double);