| public |
Inheritance Graph
graph BT
Textfield
Textfield --> Component
click Textfield "classGUI_1_1Textfield"
click Component "classGUI_1_1Component"
Description
Public Functions
| Textfield( GUI_Manager & gui, const std::string & text, flag_t flags) | |
| ~Textfield() | |
| void | setTextRef(std::string * newTextRef) |
| void | setText(const std::string & newText) |
| const std::string & | getText() const |
| bool | onSelect() |
| bool | onUnselect() |
| void | addOption(const std::string & option) |
| std::string | getOption(int index) |
| void | clearOptions() |
| int | getCurrentOptionIndex() const |
| void | setCurrentOptionIndex(int index) |
| bool | hasOptions() const |
| int | countOptions() const |
Documentation
function
GUI::Textfield::Textfield
| public |
| Textfield( | GUI_Manager & | gui, |
| const std::string & | text, | |
| flag_t | flags | |
| ) |
Defined in GUI/Components/Textfield.h:27
function
GUI::Textfield::~Textfield
| public | virtual |
| ~Textfield( | ) |
Defined in GUI/Components/Textfield.h:28
function
GUI::Textfield::setTextRef
| public | inline |
| void setTextRef( | std::string * | newTextRef ) |
Defined in GUI/Components/Textfield.h:30
function
GUI::Textfield::setText
| public |
| void setText( | const std::string & | newText ) |
Defined in GUI/Components/Textfield.h:31
function
GUI::Textfield::getText
| public | const |
| const std::string & getText( | ) const |
Defined in GUI/Components/Textfield.h:32
function
GUI::Textfield::onSelect
| public | virtual |
| bool onSelect( | ) |
Defined in GUI/Components/Textfield.h:36
function
GUI::Textfield::onUnselect
| public | virtual |
| bool onUnselect( | ) |
Defined in GUI/Components/Textfield.h:37
function
GUI::Textfield::addOption
| public |
| void addOption( | const std::string & | option ) |
Defined in GUI/Components/Textfield.h:79
function
GUI::Textfield::getOption
| public |
| std::string getOption( | int | index ) |
Defined in GUI/Components/Textfield.h:80
function
GUI::Textfield::clearOptions
| public |
| void clearOptions( | ) |
Defined in GUI/Components/Textfield.h:81
function
GUI::Textfield::getCurrentOptionIndex
| public | const | inline |
| int getCurrentOptionIndex( | ) const |
Defined in GUI/Components/Textfield.h:82
function
GUI::Textfield::setCurrentOptionIndex
| public |
| void setCurrentOptionIndex( | int | index ) |
Defined in GUI/Components/Textfield.h:83
function
GUI::Textfield::hasOptions
| public | const | inline |
| bool hasOptions( | ) const |
Defined in GUI/Components/Textfield.h:84
function
GUI::Textfield::countOptions
| public | const | inline |
| int countOptions( | ) const |
Defined in GUI/Components/Textfield.h:85