class gui::textentry
This is a text entry box, where the user can type in a line of text.
textentry(const textentry &other)
Copy-construct this textentry from another. This does not create a new textentry, instead it creates a new reference to the existing textentry.
textentry(const widget &other)
Attempt to narrow a widget reference to a textentry reference. If the widget is not a textentry, this throws std::bad_cast.
swap(textentry &other)
Exchange this textentry reference with another.
operator=(textentry other)
Assign this textentry reference to another textentry.
operator widget()
Upcast to the widget base class.
textentry()
Create a new, empty textentry.
textentry(const boost::function0< void > &change_func)
Create a new, empty textentry which calls the specified function when the text in the text box is changed.
set_text(const char *text)
Set the text inside the text box.
get_text() const
Gets the text from the text box.
changed_signal()
Returns a reference to the changed signal of the underlying textentry. The changed signal is generated whenever the user changes the text in the text box (after each change, not after a logical group of changes).