#include <events.h>
Public Member Functions | |
| UIElement (const Common::String &name, UIElement *uiParent) | |
| UIElement (const Common::String &name) | |
| void | redraw () |
| Graphics::ManagedSurface | getSurface () const |
| virtual void | draw () |
| virtual bool | tick () |
| virtual UIElement * | findView (const Common::String &name) |
Protected Member Functions | |
| virtual bool | msgFocus (const FocusMessage &e) |
| virtual bool | msgUnfocus (const UnfocusMessage &e) |
| virtual bool | msgKeypress (const KeypressMessage &e) |
| virtual bool | msgMouseDown (const MouseDownMessage &e) |
| virtual bool | msgMouseUp (const MouseUpMessage &e) |
| virtual bool | msgAction (const ActionMessage &e) |
| virtual bool | msgMouseMove (const MouseMoveMessage &e) |
Protected Attributes | |
| Common::Array< UIElement * > | _children |
| Common::Rect | _innerBounds |
| Bounds | _bounds |
| bool | _needsRedraw = true |
| Common::String | _name |
User interface element
| void Macs2::UIElement::redraw | ( | ) |
Sets that the element needs to be redrawn
| Graphics::ManagedSurface Macs2::UIElement::getSurface | ( | ) | const |
Returns a surface for drawing the element
|
virtual |
Draws the element
Reimplemented in Macs2::View1, and Macs2::Events.
|
virtual |
Called for game frame ticks
Reimplemented in Macs2::Macs2Engine, Macs2::View1, and Macs2::Events.
|
virtual |
Find a view by name