ScummVM API documentation
Nancy::UI::Button Class Reference
Inheritance diagram for Nancy::UI::Button:
Nancy::RenderObject

Public Member Functions

 Button (uint16 zOrder, Graphics::ManagedSurface &surface, const Common::Rect &clickSrcBounds, const Common::Rect &destBounds, const Common::Rect &hoverSrcBounds=Common::Rect(), const Common::Rect &disabledSrcBounds=Common::Rect())
 
void handleInput (NancyInput &input)
 
void setDisabled (bool disabled)
 
- 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 init ()
 
virtual void registerGraphics ()
 
virtual void updateGraphics ()
 
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
 

Public Attributes

Graphics::ManagedSurfacesurf
 
Common::Rect _clickSrc
 
Common::Rect _hoverSrc
 
Common::Rect _disabledSrc
 
bool _isClicked
 
bool _isDisabled
 
- Public Attributes inherited from Nancy::RenderObject
Graphics::ManagedSurface _drawSurface
 

Additional Inherited Members

- Protected Member Functions inherited from Nancy::RenderObject
virtual bool isViewportRelative () const
 
- Protected Attributes inherited from Nancy::RenderObject
bool _needsRedraw
 
bool _isVisible
 
bool _hasMoved
 
uint16 _z
 
Common::Rect _previousScreenPosition
 
Common::Rect _screenPosition
 

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