|
|
| ItemTextField (const std::string &text_, std::string *input_, int id_=-1) |
| |
| virtual void | draw (DrawingContext &, const Vector &pos, int menu_width, bool active) override |
| | Draws the menu item. More...
|
| |
| virtual int | get_width () const override |
| | Returns the minimum width of the menu item. More...
|
| |
| virtual void | process_action (const MenuAction &action) override |
| | Processes the menu action. More...
|
| |
|
void | change_input (const std::string &input_) |
| |
| virtual void | invalid_remove () |
| | Calls when the user wants to remove an invalid char. More...
|
| |
| virtual void | event (const SDL_Event &ev) override |
| | Processes the given event. More...
|
| |
|
virtual bool | changes_width () const override |
| | Returns true when the width must be recalculated when an action is processed.
|
| |
§ draw()
| void ItemTextField::draw |
( |
DrawingContext & |
context, |
|
|
const Vector & |
pos, |
|
|
int |
menu_width, |
|
|
bool |
active |
|
) |
| |
|
overridevirtual |
§ event()
| void ItemTextField::event |
( |
const SDL_Event & |
ev | ) |
|
|
overridevirtual |
Processes the given event.
Reimplemented from MenuItem.
§ get_width()
| int ItemTextField::get_width |
( |
| ) |
const |
|
overridevirtual |
§ invalid_remove()
| virtual void ItemTextField::invalid_remove |
( |
| ) |
|
|
inlinevirtual |
Calls when the user wants to remove an invalid char.
Reimplemented in ItemScriptLine.
§ process_action()
| void ItemTextField::process_action |
( |
const MenuAction & |
action | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: