00001 00002 // Flash Plugin and Player 00003 // Copyright (C) 1998 Olivier Debon 00004 // 00005 // This program is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU General Public License 00007 // as published by the Free Software Foundation; either version 2 00008 // of the License, or (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program; if not, write to the Free Software 00017 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 // 00020 #ifndef _MOVIE_H_ 00021 #define _MOVIE_H_ 00022 00023 #include "swf.h" 00024 00025 struct FlashMovie { 00026 /* true if a button has been moved */ 00027 int buttons_updated; 00028 00029 /* current keyboard focus */ 00030 DisplayListEntry *cur_focus; 00031 00032 /* mouse state */ 00033 long mouse_active; 00034 long mouse_x; 00035 long mouse_y; 00036 int button_pressed; 00037 00038 Button *lost_over; 00039 00040 /* a button can return to a given state after some time */ 00041 FlashEvent scheduledEvent; 00042 struct timeval scheduledTime; 00043 00044 int refresh; 00045 00046 CInputScript *main; 00047 long msPerFrame; 00048 GraphicDevice *gd; 00049 SoundMixer *sm; 00050 00051 void (*getUrl)(char *,char *, void *); 00052 void *getUrlClientData; 00053 00054 void (*getSwf)(char *url, int level, void *clientData); 00055 void *getSwfClientData; 00056 00057 void (*cursorOnOff)(int , void *); 00058 void *cursorOnOffClientData; 00059 00060 FlashMovie(); 00061 ~FlashMovie(); 00062 int processMovie(GraphicDevice *gd, SoundMixer *sm); 00063 int handleEvent(GraphicDevice *gd, SoundMixer *sm, FlashEvent *event); 00064 void renderMovie(); 00065 void renderFocus(); 00066 }; 00067 00068 #endif /* _MOVIE_H_ */
1.4.2