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)
 
 RenderObject (RenderObject &&)=default
 
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
 
bool needsRedraw () const
 
void setNeedsRedraw (bool needsRedraw)
 
void setHasMoved (bool hasMoved)
 
bool isNativeResolution () const
 
void setNativeResolution (bool isNative)
 
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
 
void updatePreviousScreenPosition ()
 
Common::Rect getScreenPosition () const
 
Common::Rect getScreenPositionRaw () 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
 
void setZOrder (uint16 z)
 
virtual bool isViewportRelative () 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
 
bool _isNativeResolution = false
 
uint16 _z
 
Common::Rect _previousScreenPosition
 
Common::Rect _screenPosition
 

Additional Inherited Members

- Public Attributes inherited from Nancy::RenderObject
Graphics::ManagedSurface _drawSurface
 

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