#include <inputstring.h>
Collaboration diagram for InputString:

Public Member Functions | |
| InputString () | |
| virtual | ~InputString () |
| virtual void | processKey (const SDL_keysym &keysym) |
| virtual void | clear () |
| Delete all string content. | |
| std::string | getLineU () |
| return current line. | |
| std::wstring | getLineW () |
| std::string | getLineURender () |
| Return string with cursor position. | |
| std::wstring | getLineWRender () |
| return line with cursor position. | |
Protected Member Functions | |
| void | updateCachedStrings () |
Protected Attributes | |
| std::wstring | mLineLeft |
| Part of line before cursor. | |
| std::wstring | mLineRight |
| Part of line after editing cursor. | |
| std::wstring | mLineW |
| std::wstring | mLineWR |
| std::string | mLineU8 |
| std::string | mLineU8R |
The class is not supposed to be a base class. It should be used as member variable.
Definition at line 16 of file inputstring.h.
|
|
Definition at line 12 of file inputstring.cpp. References clear(). Here is the call graph for this function: ![]() |
|
|
Definition at line 18 of file inputstring.cpp. |
|
|
Delete all string content.
Definition at line 23 of file inputstring.cpp. References mLineLeft, mLineRight, and updateCachedStrings(). Referenced by InputString(), Messages::keyDown(), and Console::keyDown(). Here is the call graph for this function: ![]() |
|
|
return current line. Encoded in utf-8 Definition at line 115 of file inputstring.cpp. References mLineU8. Referenced by Messages::keyDown(), and Console::keyDown(). |
|
|
Return string with cursor position. Encoded in utf-8 Definition at line 127 of file inputstring.cpp. References mLineU8R. |
|
|
Definition at line 121 of file inputstring.cpp. References mLineW. |
|
|
return line with cursor position.
Definition at line 133 of file inputstring.cpp. References mLineWR. |
|
|
Definition at line 32 of file inputstring.cpp. References LOGT, mLineLeft, mLineRight, TIN, and updateCachedStrings(). Referenced by Messages::keyDown(), and Console::keyDown(). Here is the call graph for this function: ![]() |
|
|
Definition at line 102 of file inputstring.cpp. References mLineLeft, mLineRight, mLineU8, mLineU8R, mLineW, mLineWR, and wstoutf8(). Referenced by clear(), and processKey(). Here is the call graph for this function: ![]() |
|
|
Part of line before cursor.
Definition at line 56 of file inputstring.h. Referenced by clear(), processKey(), and updateCachedStrings(). |
|
|
Part of line after editing cursor.
Definition at line 57 of file inputstring.h. Referenced by clear(), processKey(), and updateCachedStrings(). |
|
|
Definition at line 62 of file inputstring.h. Referenced by getLineU(), and updateCachedStrings(). |
|
|
Definition at line 63 of file inputstring.h. Referenced by getLineURender(), and updateCachedStrings(). |
|
|
Definition at line 60 of file inputstring.h. Referenced by getLineW(), and updateCachedStrings(). |
|
|
Definition at line 61 of file inputstring.h. Referenced by getLineWRender(), and updateCachedStrings(). |
1.4.5