const std::string & getText() const
Get the text in the textfield.
TextDialog(const std::string &title, const std::string &msg, Window *parent=nullptr, bool autoCompleteEnabled=false)
void action(const gcn::ActionEvent &event) override
Called when receiving actions from the widgets.
void setAutoComplete(AutoCompleteLister *lister)
Sets the TextField's source of autocomplete.
LayoutCell & place(int x, int y, gcn::Widget *, int w=1, int h=1)
Adds a widget to the window and sets it at given cell.