22 #ifndef NANCY_UI_VIEWPORT_H 23 #define NANCY_UI_VIEWPORT_H 25 #include "engines/nancy/time.h" 26 #include "engines/nancy/commontypes.h" 27 #include "engines/nancy/movieplayer.h" 29 #include "engines/nancy/renderobject.h" 46 _movementLastFrame(0),
49 _videoFormat(kLargeVideoFormat),
50 _stickyCursorPos(-1, -1),
51 _panningType(kPanNone),
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.getFrameCount(); }
70 uint16 getCurFrame()
const {
return _currentFrame; }
71 uint16 getCurVerticalScroll()
const {
return _drawSurface.getOffsetFromOwner().y; }
72 uint16 getMaxScroll()
const;
81 void disableEdges(byte edges);
82 void enableEdges(byte edges);
85 void setEdgesSize(uint16 upSize, uint16 downSize, uint16 leftSize, uint16 rightSize);
90 byte _movementLastFrame;
91 Time _nextMovementTime;
109 #endif // NANCY_UI_VIEWPORT_H Definition: managed_surface.h:51
Definition: viewport.h:42
Definition: movieplayer.h:56
Definition: soundequalizerpuzzle.h:27
Definition: renderobject.h:36
Definition: algorithm.h:29
Definition: actionmanager.h:32