|
|
| View (const Common::String &name, UIElement *uiParent) |
| |
|
| View (const Common::String &name) |
| |
|
bool | msgFocus (const FocusMessage &msg) override |
| |
|
bool | msgUnfocus (const UnfocusMessage &msg) override |
| |
| bool | msgMouseMove (const MouseMoveMessage &msg) override |
| |
|
bool | msgMouseDown (const MouseDownMessage &msg) override |
| |
|
bool | msgMouseUp (const MouseUpMessage &msg) override |
| |
|
| UIElement (const Common::String &name, UIElement *uiParent) |
| |
|
| UIElement (const Common::String &name) |
| |
| bool | needsRedraw () const |
| |
| void | redraw () |
| |
| void | focus () |
| |
| virtual void | close () |
| |
|
bool | isFocused () const |
| |
| Common::String | getName () const |
| |
| void | replaceView (UIElement *ui, bool replaceAllViews=false) |
| |
|
void | replaceView (const Common::String &name, bool replaceAllViews=false) |
| |
| void | addView (UIElement *ui) |
| |
|
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 |
| |
| Gfx::GfxSurface | getSurface () const |
| |
| virtual void | clearSurface () |
| |
| 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) |
| |
Base view class for screens and dialogs that appear on-screen. The View class takes care of two important things: 1) By default events get sent to all controls on a view until one handles it. For mouse events, we instead want only the control the mouse cursor is over to receive the events, saving the individual controls from having to check if the mouse is within their bounds. 2) Individual elements will get a Focus/Unfocus message as the mouse enters and leaves them. This allows, for example, buttons that have been pressed to de-select if the mouse leaves their bounds.