ScummVM API documentation
MM::MM1::Views::Title Class Reference
Inheritance diagram for MM::MM1::Views::Title:
MM::MM1::UIElement MM::MM1::ViewsEnh::Title

Public Member Functions

bool msgFocus (const FocusMessage &msg) override
 
bool msgUnfocus (const UnfocusMessage &msg) override
 
void draw () override
 
void timeout () override
 
bool msgKeypress (const KeypressMessage &msg) override
 
bool msgAction (const ActionMessage &msg) override
 
- Public Member Functions inherited from MM::MM1::UIElement
 UIElement (const Common::String &name, UIElement *uiParent)
 
bool needsRedraw () const
 
void redraw ()
 
void focus ()
 
virtual void close ()
 
bool isFocused () 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)
 
Common::String getName () const
 
virtual void setBounds (const Common::Rect &r)
 
Common::Rect getBounds () const
 
Graphics::ManagedSurface getSurface () const
 
virtual void clearSurface ()
 
virtual bool tick ()
 
virtual UIElementfindView (const Common::String &name)
 
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 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 HeaderMessage &msg)
 
bool send (const HeaderMessage &msg)
 
bool send (const Common::String &viewName, const InfoMessage &msg)
 
bool send (const InfoMessage &msg)
 
bool send (const Common::String &viewName, const DrawGraphicMessage &msg)
 
bool send (const DrawGraphicMessage &msg)
 

Protected Attributes

Graphics::ManagedSurface _screens [10]
 
int _screenNum = -1
 
int _fadeIndex = 0
 
- Protected Attributes inherited from MM::MM1::UIElement
UIElement_parent
 
Common::Array< UIElement * > _children
 
Common::Rect _innerBounds
 
Bounds _bounds
 
bool _needsRedraw = true
 
Common::String _name
 

Additional Inherited Members

- Protected Member Functions inherited from MM::MM1::UIElement
Common::Rect getLineBounds (int line1, int line2) const
 
void delaySeconds (uint seconds)
 
void delayFrames (uint frames)
 
bool isDelayActive () const
 
void cancelDelay ()
 
bool endDelay ()
 
virtual bool msgMouseDown (const MouseDownMessage &e)
 
virtual bool msgMouseUp (const MouseUpMessage &e)
 
virtual bool msgGame (const GameMessage &e)
 
virtual bool msgHeader (const HeaderMessage &e)
 
virtual bool msgInfo (const InfoMessage &e)
 
virtual bool msgDrawGraphic (const DrawGraphicMessage &e)
 

Member Function Documentation

◆ msgFocus()

bool MM::MM1::Views::Title::msgFocus ( const FocusMessage msg)
overridevirtual

Called when the screen is displayed

Reimplemented from MM::MM1::UIElement.

Reimplemented in MM::MM1::ViewsEnh::Title.

◆ msgUnfocus()

bool MM::MM1::Views::Title::msgUnfocus ( const UnfocusMessage msg)
overridevirtual

Called when the screen is hidden

Reimplemented from MM::MM1::UIElement.

Reimplemented in MM::MM1::ViewsEnh::Title.

◆ draw()

void MM::MM1::Views::Title::draw ( )
overridevirtual

Draw the screen

Reimplemented from MM::MM1::UIElement.

◆ timeout()

void MM::MM1::Views::Title::timeout ( )
overridevirtual

Delay timeout

Reimplemented from MM::MM1::UIElement.

◆ msgKeypress()

bool MM::MM1::Views::Title::msgKeypress ( const KeypressMessage msg)
overridevirtual

Handles keypresses

Reimplemented from MM::MM1::UIElement.

◆ msgAction()

bool MM::MM1::Views::Title::msgAction ( const ActionMessage msg)
overridevirtual

Handle actions

Reimplemented from MM::MM1::UIElement.


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