#include <GLWDropDownText.h>

Public Member Functions | |
| GLWDropDownText (float x=0.0f, float y=0.0f, float w=0.0f) | |
| virtual | ~GLWDropDownText () |
| void | addText (const LangString &text, const std::string &datatext) |
| void | setCurrentText (const LangString &text) |
| LangString & | getCurrentText () |
| const char * | getCurrentDataText () |
| bool | isSelected (const LangString &text) |
| virtual void | draw () |
| REGISTER_CLASS_HEADER (GLWDropDownText) | |
Definition at line 27 of file GLWDropDownText.h.
| GLWDropDownText::GLWDropDownText | ( | float | x = 0.0f, |
|
| float | y = 0.0f, |
|||
| float | w = 0.0f | |||
| ) |
Definition at line 27 of file GLWDropDownText.cpp.
| GLWDropDownText::~GLWDropDownText | ( | ) | [virtual] |
Definition at line 32 of file GLWDropDownText.cpp.
| void GLWDropDownText::addText | ( | const LangString & | text, | |
| const std::string & | datatext | |||
| ) |
Definition at line 36 of file GLWDropDownText.cpp.
References GLWDropDown::addEntry().
Referenced by BuyAccessoryDialog::BuyAccessoryDialog(), PlayerDialog::display(), GLWTankViewer::GLWTankViewer(), InventoryDialog::InventoryDialog(), and NetworkSelectDialog::NetworkSelectDialog().
| void GLWDropDownText::setCurrentText | ( | const LangString & | text | ) |
Definition at line 61 of file GLWDropDownText.cpp.
References GLWDropDown::current_, GLWSelectorEntry::getText(), GLWDropDown::handler_, GLWidget::id_, GLWDropDownI::select(), and GLWDropDown::texts_.
Referenced by NetworkSelectDialog::display(), InventoryDialog::display(), BuyAccessoryDialog::display(), AutoDefenseDialog::displayCurrent(), NetworkSelectDialog::NetworkSelectDialog(), and GLWOptionEntry::updateControls().
| LangString & GLWDropDownText::getCurrentText | ( | ) |
Definition at line 42 of file GLWDropDownText.cpp.
References GLWDropDown::getCurrentEntry(), and GLWSelectorEntry::getText().
Referenced by isSelected(), and GLWTankViewer::setTeam().
| const char * GLWDropDownText::getCurrentDataText | ( | ) |
Definition at line 49 of file GLWDropDownText.cpp.
References GLWDropDown::getCurrentEntry(), and GLWSelectorEntry::getDataText().
Referenced by PlayerDialog::buttonDown(), and GLWOptionEntry::updateEntries().
| bool GLWDropDownText::isSelected | ( | const LangString & | text | ) |
Definition at line 55 of file GLWDropDownText.cpp.
References getCurrentText().
Referenced by NetworkSelectDialog::buttonDown(), NetworkSelectDialog::select(), and NetworkSelectDialog::startRefresh().
| void GLWDropDownText::draw | ( | ) | [virtual] |
Reimplemented from GLWDropDown.
Definition at line 85 of file GLWDropDownText.cpp.
References GLWDropDown::draw(), GLFont2d::drawWidth(), GLWDropDown::getCurrentEntry(), GLWFont::getGameFont(), GLWFont::instance(), GLWidget::w_, GLWFont::widgetFontColor, GLWidget::x_, and GLWidget::y_.
Referenced by GLWTankViewer::draw().
| GLWDropDownText::REGISTER_CLASS_HEADER | ( | GLWDropDownText | ) |
1.5.3