3 This file is part of libmspgltk
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GLTK_ENTRY_H_
9 #define MSP_GLTK_ENTRY_H_
21 text The current text of the widget. Graphics are ignored.
22 cursor Indicates the current input position. Fill_x is ignored.
24 class Entry: public Widget
31 Entry(const Resources &, const std::string & =std::string());
33 void set_text(const std::string &);
34 const std::string &get_text() const { return text; }
36 virtual void key_press(unsigned, unsigned, wchar_t);
37 virtual void focus_in();
38 virtual void focus_out();
40 virtual const char *get_class() const { return "entry"; }
41 virtual void render_part(const Part &) const;