ScummVM API documentation
Nancy::UI::AnimatedButton Class Referenceabstract
Inheritance diagram for Nancy::UI::AnimatedButton:
Nancy::RenderObject Nancy::UI::Clock::ClockAnim

Public Member Functions

 AnimatedButton (uint zOrder)
 
void init () override
 
void updateGraphics () override
 
void handleInput (NancyInput &input)
 
void setOpen (bool open)
 
void setFrame (int frame)
 
int getCurrentFrame () const
 
bool isPlaying () const
 
virtual void onClick ()=0
 
virtual void onTrigger ()=0
 
- Public Member Functions inherited from Nancy::RenderObject
 RenderObject (uint16 zOrder)
 
 RenderObject (uint16 zOrder, Graphics::ManagedSurface &surface, const Common::Rect &srcBounds, const Common::Rect &destBounds)
 
virtual void registerGraphics ()
 
void moveTo (const Common::Point &position)
 
void moveTo (const Common::Rect &bounds)
 
void setVisible (bool visible)
 
void setTransparent (bool isTransparent)
 
bool isVisible () const
 
void grabPalette (byte *colors, uint paletteStart=0, uint paletteSize=256)
 
void setPalette (const Common::Path &paletteName, uint paletteStart=0, uint paletteSize=256)
 
void setPalette (const byte *colors, uint paletteStart=0, uint paletteSize=256)
 
bool hasMoved () const
 
Common::Rect getScreenPosition () const
 
Common::Rect getPreviousScreenPosition () const
 
Common::Rect convertToLocal (const Common::Rect &screen) const
 
Common::Rect convertToScreen (const Common::Rect &rect) const
 
Common::Rect getBounds () const
 
uint16 getZOrder () const
 

Protected Attributes

Common::Array< Common::Rect_srcRects
 
Common::Array< Common::Rect_destRects
 
Common::Rect _highlightSrcRect
 
Common::Rect _highlightDestRect
 
uint32 _frameTime
 
bool _alwaysHighlightCursor
 
int _currentFrame
 
uint32 _nextFrameTime
 
bool _isOpen
 
Common::Rect _hotspot
 
- Protected Attributes inherited from Nancy::RenderObject
bool _needsRedraw
 
bool _isVisible
 
bool _hasMoved
 
uint16 _z
 
Common::Rect _previousScreenPosition
 
Common::Rect _screenPosition
 

Additional Inherited Members

- Public Attributes inherited from Nancy::RenderObject
Graphics::ManagedSurface _drawSurface
 
- Protected Member Functions inherited from Nancy::RenderObject
virtual bool isViewportRelative () const
 

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