22 #ifndef NANCY_UI_VIEWPORT_H 23 #define NANCY_UI_VIEWPORT_H 25 #include "engines/nancy/time.h" 26 #include "engines/nancy/video.h" 28 #include "engines/nancy/renderobject.h" 45 _movementLastFrame(0),
48 _videoFormat(kLargeVideoFormat),
49 _stickyCursorPos(-1, -1),
50 _panningType(kPanNone),
51 _decoder(AVFDecoder::kLoadBidirectional),
54 virtual ~
Viewport() { _decoder.close(); _fullFrame.free(); }
59 void loadVideo(
const Common::Path &filename, uint frameNr = 0, uint verticalScroll = 0, byte panningType = kPanNone, uint16 format = 2,
const Common::Path &palette =
Common::Path());
61 void setFrame(uint frameNr);
63 void setPreviousFrame();
65 void setVerticalScroll(uint scroll);
66 void scrollUp(uint delta);
67 void scrollDown(uint delta);
69 uint16 getFrameCount()
const {
return _decoder.isVideoLoaded() ? _decoder.getFrameCount() : 0; }
70 uint16 getCurFrame()
const {
return _currentFrame; }
71 uint16 getCurVerticalScroll()
const {
return _drawSurface.getOffsetFromOwner().y; }
72 uint16 getMaxScroll()
const;
77 void disableEdges(byte edges);
78 void enableEdges(byte edges);
81 void setEdgesSize(uint16 upSize, uint16 downSize, uint16 leftSize, uint16 rightSize);
86 byte _movementLastFrame;
87 Time _nextMovementTime;
105 #endif // NANCY_UI_VIEWPORT_H Definition: managed_surface.h:51
Definition: viewport.h:41
Definition: soundequalizerpuzzle.h:27
Definition: renderobject.h:36
Definition: algorithm.h:29
Definition: actionmanager.h:32