|
FifeGUI 0.2.0
A C++ GUI library designed for games.
|
#include <key.hpp>
Public Member Functions | |
| int | getValue () const |
| bool | isCharacter () const |
| bool | isLetter () const |
| bool | isNumber () const |
| Key (int value=0) | |
| bool | operator!= (Key const &key) const |
| bool | operator== (Key const &key) const |
Protected Attributes | |
| int | mValue |
|
explicit |
Constructor.
| value | The ascii or enum value for the key. |
Definition at line 9 of file key.cpp.
References mValue.
Referenced by operator!=(), and operator==().
| int fcn::Key::getValue | ( | ) | const |
Gets the value of the key.
If an ascii value exists it will be returned. Otherwise an enum value will be returned.
Definition at line 28 of file key.cpp.
References mValue.
Referenced by fcn::Gui::handleKeyInput(), fcn::Button::keyPressed(), fcn::CheckBox::keyPressed(), fcn::DropDown::keyPressed(), fcn::ListBox::keyPressed(), fcn::PasswordField::keyPressed(), fcn::Slider::keyPressed(), fcn::TabbedArea::keyPressed(), fcn::TextBox::keyPressed(), fcn::TextField::keyPressed(), fcn::Button::keyReleased(), fcn::CheckBox::keyReleased(), and fcn::ToggleButton::keyReleased().
| bool fcn::Key::isCharacter | ( | ) | const |
Checks if a key is a character.
Definition at line 11 of file key.cpp.
References mValue.
Referenced by fcn::PasswordField::keyPressed(), fcn::TextBox::keyPressed(), and fcn::TextField::keyPressed().
| bool fcn::Key::isLetter | ( | ) | const |
| bool fcn::Key::isNumber | ( | ) | const |
| bool fcn::Key::operator!= | ( | Key const & | key | ) | const |
| bool fcn::Key::operator== | ( | Key const & | key | ) | const |
|
protected |
Holds the value of the key.
It may be an ascii value or an enum value.
Definition at line 136 of file key.hpp.
Referenced by getValue(), isCharacter(), isLetter(), isNumber(), Key(), operator!=(), and operator==().