|
|
| TextInput (const Common::String &name, UIElement *parent, TextCursor &cursor) |
| |
| void | draw () override |
| |
| bool | msgKeypress (const KeypressMessage &msg) override |
| |
| bool | msgUnfocus (const UnfocusMessage &msg) override |
| |
| void | setPosition (const Common::Point &pt, int maxWidth) |
| |
| void | hide () |
| |
| void | setColor (byte color) |
| |
|
| UIElement (const Common::String &name, UIElement *uiParent) |
| |
|
| UIElement (const Common::String &name) |
| |
| bool | needsRedraw () const |
| |
| void | redraw () |
| |
| virtual void | close () |
| |
| virtual void | replaceView (UIElement *ui, bool replaceAllViews=false) |
| |
|
virtual void | replaceView (const Common::String &name, bool replaceAllViews=false) |
| |
| virtual void | addView (UIElement *ui) |
| |
|
virtual void | addView (const Common::String &name) |
| |
|
void | addView () |
| |
|
void | open () |
| |
| int | getRandomNumber (int minNumber, int maxNumber) |
| |
|
int | getRandomNumber (int maxNumber) |
| |
| virtual void | setBounds (const Common::Rect &r) |
| |
| Common::Rect | getBounds () const |
| |
| const Common::String & | getName () const |
| |
| GfxSurface | getSurface (bool innerBounds=false) const |
| |
| virtual void | draw () |
| |
| virtual bool | tick () |
| |
| virtual UIElement * | findView (const Common::String &name) |
| |
|
bool | send (const MouseMoveMessage &msg) |
| |
|
bool | send (const Common::String &viewName, const FocusMessage &msg) |
| |
|
bool | send (const FocusMessage &msg) |
| |
|
bool | send (const Common::String &viewName, const UnfocusMessage &msg) |
| |
|
bool | send (const UnfocusMessage &msg) |
| |
|
bool | send (const Common::String &viewName, const MouseEnterMessage &msg) |
| |
|
bool | send (const MouseEnterMessage &msg) |
| |
|
bool | send (const Common::String &viewName, const MouseLeaveMessage &msg) |
| |
|
bool | send (const MouseLeaveMessage &msg) |
| |
|
bool | send (const Common::String &viewName, const KeypressMessage &msg) |
| |
|
bool | send (const KeypressMessage &msg) |
| |
|
bool | send (const Common::String &viewName, const MouseDownMessage &msg) |
| |
|
bool | send (const MouseDownMessage &msg) |
| |
|
bool | send (const Common::String &viewName, const MouseUpMessage &msg) |
| |
|
bool | send (const MouseUpMessage &msg) |
| |
|
bool | send (const Common::String &viewName, const ActionMessage &msg) |
| |
|
bool | send (const ActionMessage &msg) |
| |
|
bool | send (const Common::String &viewName, const GameMessage &msg) |
| |
|
bool | send (const GameMessage &msg) |
| |
|
bool | send (const Common::String &viewName, const ValueMessage &msg) |
| |
|
bool | send (const ValueMessage &msg) |
| |
| template<class T > |
| bool | send (const T &msg) |
| |
|
template<class T > |
| bool | send (const Common::String &viewName, const T &msg) |
| |
Simple text entry field. Accepts printable characters up to a maximum width and backspace to delete; Enter sends a GameMessage named "INPUT" to its parent, with the entered text as the string parameter.
Rather than drawing its own caret, it drives a shared TextCursor - positioned just after the last typed character - so the same cursor animation is used consistently, whether it's parked at a prompt or following text as it's typed.