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

Public Member Functions

 Scrollbar (uint16 zOrder, const Common::Rect &srcBounds, const Common::Point &topPosition, uint16 scrollDistance, bool isVertical=true)
 
 Scrollbar (uint16 zOrder, const Common::Rect &srcBounds, Graphics::ManagedSurface &srcSurf, const Common::Point &topPosition, uint16 scrollDistance, bool isVertical=true)
 
void init () override
 
void handleInput (NancyInput &input)
 
void resetPosition ()
 
float getPos () const
 
void setPosition (float pos)
 
void calculatePosition ()
 
- 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 ()
 
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

Common::Point _startPosition
 
uint _maxDist
 
bool _isVertical
 
float _currentPosition
 
bool _isClicked
 
Common::Point _mousePosOnClick
 
- 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: