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

Public Member Functions

void init () override
 
void handleInput (NancyInput &input)
 
void loadVideo (const Common::Path &filename, uint frameNr=0, uint verticalScroll=0, byte panningType=kPanNone, uint16 format=2, const Common::Path &palette=Common::Path())
 
void setFrame (uint frameNr)
 
void setNextFrame ()
 
void setPreviousFrame ()
 
void setVerticalScroll (uint scroll)
 
void scrollUp (uint delta)
 
void scrollDown (uint delta)
 
uint16 getFrameCount () const
 
uint16 getCurFrame () const
 
uint16 getCurVerticalScroll () const
 
uint16 getMaxScroll () const
 
Common::Rect convertViewportToScreen (const Common::Rect &viewportRect) const
 
Common::Rect convertScreenToViewport (const Common::Rect &viewportRect) const
 
void disableEdges (byte edges)
 
void enableEdges (byte edges)
 
- 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
 

Protected Member Functions

void setEdgesSize (uint16 upSize, uint16 downSize, uint16 leftSize, uint16 rightSize)
 
- Protected Member Functions inherited from Nancy::RenderObject
virtual bool isViewportRelative () const
 

Protected Attributes

Common::Rect _nonScrollZone
 
byte _edgesMask
 
byte _movementLastFrame
 
Time _nextMovementTime
 
byte _panningType
 
AVFDecoder _decoder
 
uint16 _currentFrame
 
uint16 _videoFormat
 
Graphics::ManagedSurface _fullFrame
 
Common::Rect _format1Bounds
 
Common::Rect _format2Bounds
 
Common::Point _stickyCursorPos
 
bool _autoMove
 
- 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
 

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