ScummVM API documentation
Macs2::UIElement Class Reference

#include <events.h>

Inheritance diagram for Macs2::UIElement:
Macs2::Events Macs2::View1 Macs2::Macs2Engine

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 UIElementfindView (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
 

Detailed Description

User interface element

Member Function Documentation

◆ redraw()

void Macs2::UIElement::redraw ( )

Sets that the element needs to be redrawn

◆ getSurface()

Graphics::ManagedSurface Macs2::UIElement::getSurface ( ) const

Returns a surface for drawing the element

◆ draw()

virtual void Macs2::UIElement::draw ( )
virtual

Draws the element

Reimplemented in Macs2::View1, and Macs2::Events.

◆ tick()

virtual bool Macs2::UIElement::tick ( )
virtual

Called for game frame ticks

Reimplemented in Macs2::Macs2Engine, Macs2::View1, and Macs2::Events.

◆ findView()

virtual UIElement* Macs2::UIElement::findView ( const Common::String name)
virtual

Find a view by name


The documentation for this class was generated from the following file: