3 This file is part of libmspgltk
4 Copyright © 2007-2010 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GLTK_ENTRY_H_
9 #define MSP_GLTK_ENTRY_H_
22 text The current text of the widget. Graphics are ignored.
23 cursor Indicates the current input position. Fill_x is ignored.
25 class Entry: public Widget
28 class Loader: public Widget::Loader
40 sigc::signal<void> signal_enter;
42 Entry(const Resources &, const std::string & =std::string());
44 void set_text(const std::string &);
45 const std::string &get_text() const { return text.get(); }
46 void set_multiline(bool);
47 bool is_multiline() const { return multiline; }
49 virtual void key_press(unsigned, unsigned, wchar_t);
51 virtual const char *get_class() const { return "entry"; }
52 virtual void render_special(const Part &) const;
54 virtual void on_style_change();