20 #ifndef _MFORMS_TEXTENTRY_H_
21 #define _MFORMS_TEXTENTRY_H_
49 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51 struct TextEntryImplPtrs
54 void (*set_text)(TextEntry *
self,
const std::string &text);
55 void (*set_max_length)(TextEntry *
self,
int len);
56 std::string (*get_text)(TextEntry *
self);
57 void (*set_read_only)(TextEntry *
self,
bool flag);
58 void (*set_placeholder_text)(TextEntry *
self,
const std::string &text);
59 void (*set_placeholder_color)(TextEntry *
self,
const std::string &color);
60 void (*set_bordered)(TextEntry *
self,
bool flag);
74 void set_max_length(
int len);
77 void set_value(
const std::string &text);
80 virtual std::string get_string_value();
83 void set_read_only(
bool flag);
86 void set_placeholder_text(
const std::string &text);
89 void set_placeholder_color(
const std::string &color);
92 void set_bordered(
bool flag);
98 boost::signals2::signal<void ()>*
signal_changed() {
return &_signal_changed; }
103 boost::signals2::signal<void (TextEntryAction)>*
signal_action() {
return &_signal_action; }
boost::signals2::signal< void(TextEntryAction)> * signal_action()
Signal emitted when certain actions are performed:
TextEntryImplPtrs * _textentry_impl
Single line text edit control, with support for some special events.
boost::signals2::signal< void()> _signal_changed
boost::signals2::signal< void(TextEntryAction)> _signal_action
boost::signals2::signal< void()> * signal_changed()
Signal emitted when the entry is edited.