#include <TextInput.hpp>
|
| TextInput () |
|
void | onEvent (const SDL_Event &event) |
|
const std::string & | content () const |
|
Vector2f | getSize () const |
|
void | setPosition (float x, float y) |
|
void | setSize (u16 width, u16 height) |
|
void | setCharacterLimit (u16 characterLimit) |
|
void | setContent (const std::string &content) |
|
void | setKeyboardSound (const std::string &keyboardSound) |
|
void | setCursor (const std::string &cursor) |
|
virtual | ~IDrawable ()=default |
| Virtual destructor. More...
|
|
virtual | ~Transformable ()=default |
|
void | setPosition (float x, float y, float z=0) |
|
void | setPosition (const Vector3f &position) |
|
void | setOrigin (float x, float y, float z=0) |
|
void | setOrigin (const Vector3f &origin) |
|
void | setScale (float factorX, float factorY, float factorZ=1) |
|
void | setScale (const Vector3f &factors) |
|
void | setRotation (float angle) |
|
void | setRotation (float angle, const Vector3f &axis) |
|
const Vector3f & | getPosition () const |
|
const Vector3f & | getOrigin () const |
|
const Vector3f & | getScale () const |
|
float | getRotation () const |
|
void | move (float offsetX, float offsetY, float offsetZ=0) |
|
void | move (const Vector3f &offset) |
|
void | scale (float factorX, float factorY, float factorZ=1) |
|
void | scale (const Vector3f &factor) |
|
void | rotate (float angle) |
|
void | rotate (float angle, const Vector3f &axis) |
|
const Transform & | getTransform () const |
|
Definition at line 23 of file TextInput.hpp.
§ TextInput()
gk::TextInput::TextInput |
( |
| ) |
|
§ content()
const std::string& gk::TextInput::content |
( |
| ) |
const |
|
inline |
§ draw()
Draw the object to a render target.
This is a pure virtual function that has to be implemented by the derived class to define how the drawable should be drawn.
- Parameters
-
target | Render target to draw to |
states | Current render states |
Implements gk::IDrawable.
Definition at line 64 of file TextInput.cpp.
§ getSize()
Vector2f gk::TextInput::getSize |
( |
| ) |
const |
|
inline |
§ onEvent()
void gk::TextInput::onEvent |
( |
const SDL_Event & |
event | ) |
|
§ setCharacterLimit()
void gk::TextInput::setCharacterLimit |
( |
u16 |
characterLimit | ) |
|
|
inline |
§ setContent()
void gk::TextInput::setContent |
( |
const std::string & |
content | ) |
|
|
inline |
§ setCursor()
void gk::TextInput::setCursor |
( |
const std::string & |
cursor | ) |
|
|
inline |
§ setKeyboardSound()
void gk::TextInput::setKeyboardSound |
( |
const std::string & |
keyboardSound | ) |
|
|
inline |
§ setPosition()
void gk::TextInput::setPosition |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
§ setSize()
void gk::TextInput::setSize |
( |
u16 |
width, |
|
|
u16 |
height |
|
) |
| |
§ m_characterLimit
u16 gk::TextInput::m_characterLimit = 0 |
|
private |
§ m_content
std::string gk::TextInput::m_content |
|
private |
§ m_cursor
std::string gk::TextInput::m_cursor = "|" |
|
private |
§ m_keyboardSound
std::string gk::TextInput::m_keyboardSound |
|
private |
§ m_rectText
§ m_text
Text gk::TextInput::m_text |
|
private |
The documentation for this class was generated from the following files: