1 /* 2 * Copyright 2001-2007, Haiku Inc. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Marc Flerackers (mflerackers@androme.be) 7 * Stefano Ceccherini (burton666@libero.it) 8 * Marcus Overhagen (marcus@overhagen.de) 9 */ 10 11 /** PicturePlayer is used to play picture data. */ 12 13 #ifndef _TPICTURE_H 14 #define _TPICTURE_H 15 16 17 #include <GraphicsDefs.h> 18 #include <Point.h> 19 #include <Rect.h> 20 #include <DataIO.h> 21 22 23 class PicturePlayer { 24 public: 25 PicturePlayer(); 26 PicturePlayer(const void *data, size_t size, BList *pictures); 27 virtual ~PicturePlayer(); 28 29 void BeginOp(int32); 30 void EndOp(); 31 32 void EnterStateChange(); 33 void ExitStateChange(); 34 35 void EnterFontChange(); 36 void ExitFontChange(); 37 38 status_t Play(void **callBackTable, int32 tableEntries, 39 void *userData); 40 41 private: 42 const void *fData; 43 size_t fSize; 44 BList *fPictures; 45 }; 46 47 #endif // _TPICTURE_H 48