2006-02-10 21:38:53 +00:00
|
|
|
/*
|
2007-03-01 23:17:40 +00:00
|
|
|
* Copyright 2001-2007, Haiku Inc.
|
2006-02-10 21:38:53 +00:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Marc Flerackers (mflerackers@androme.be)
|
|
|
|
* Stefano Ceccherini (burton666@libero.it)
|
2007-03-01 23:17:40 +00:00
|
|
|
* Marcus Overhagen (marcus@overhagen.de)
|
2006-02-10 21:38:53 +00:00
|
|
|
*/
|
|
|
|
|
2007-03-01 23:17:40 +00:00
|
|
|
/** PicturePlayer is used to play picture data. */
|
2006-02-10 21:38:53 +00:00
|
|
|
|
2006-01-17 21:39:07 +00:00
|
|
|
#ifndef _TPICTURE_H
|
|
|
|
#define _TPICTURE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <GraphicsDefs.h>
|
|
|
|
#include <Point.h>
|
|
|
|
#include <Rect.h>
|
|
|
|
#include <DataIO.h>
|
|
|
|
|
|
|
|
|
2006-02-10 21:38:53 +00:00
|
|
|
class PicturePlayer {
|
2006-01-17 21:39:07 +00:00
|
|
|
public:
|
2006-02-10 21:38:53 +00:00
|
|
|
PicturePlayer();
|
2007-03-01 23:17:40 +00:00
|
|
|
PicturePlayer(const void *data, size_t size, BList *pictures);
|
2006-02-10 21:38:53 +00:00
|
|
|
virtual ~PicturePlayer();
|
2006-01-17 21:39:07 +00:00
|
|
|
|
|
|
|
void BeginOp(int32);
|
|
|
|
void EndOp();
|
|
|
|
|
|
|
|
void EnterStateChange();
|
|
|
|
void ExitStateChange();
|
|
|
|
|
|
|
|
void EnterFontChange();
|
|
|
|
void ExitFontChange();
|
|
|
|
|
|
|
|
status_t Play(void **callBackTable, int32 tableEntries,
|
|
|
|
void *userData);
|
|
|
|
|
|
|
|
private:
|
2007-03-01 23:17:40 +00:00
|
|
|
const void *fData;
|
|
|
|
size_t fSize;
|
2006-01-17 21:39:07 +00:00
|
|
|
BList *fPictures;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _TPICTURE_H
|