summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/libflash/movie.h
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/libflash/movie.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/libflash/movie.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/libflash/movie.h b/core/multimedia/opieplayer/libflash/movie.h
new file mode 100644
index 0000000..d83ce79
--- a/dev/null
+++ b/core/multimedia/opieplayer/libflash/movie.h
@@ -0,0 +1,68 @@
1/////////////////////////////////////////////////////////////
2// Flash Plugin and Player
3// Copyright (C) 1998 Olivier Debon
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with this program; if not, write to the Free Software
17// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18//
19///////////////////////////////////////////////////////////////
20#ifndef _MOVIE_H_
21#define _MOVIE_H_
22
23#include "swf.h"
24
25struct FlashMovie {
26 /* true if a button has been moved */
27 int buttons_updated;
28
29 /* current keyboard focus */
30 DisplayListEntry *cur_focus;
31
32 /* mouse state */
33 long mouse_active;
34 long mouse_x;
35 long mouse_y;
36 int button_pressed;
37
38 Button *lost_over;
39
40 /* a button can return to a given state after some time */
41 FlashEvent scheduledEvent;
42 struct timeval scheduledTime;
43
44 int refresh;
45
46 CInputScript *main;
47 long msPerFrame;
48 GraphicDevice*gd;
49 SoundMixer *sm;
50
51 void (*getUrl)(char *,char *, void *);
52 void *getUrlClientData;
53
54 void (*getSwf)(char *url, int level, void *clientData);
55 void *getSwfClientData;
56
57 void (*cursorOnOff)(int , void *);
58 void *cursorOnOffClientData;
59
60 FlashMovie();
61 ~FlashMovie();
62 int processMovie(GraphicDevice *gd, SoundMixer *sm);
63 int handleEvent(GraphicDevice *gd, SoundMixer *sm, FlashEvent *event);
64 void renderMovie();
65 void renderFocus();
66};
67
68#endif /* _MOVIE_H_ */