Gnash
0.8.10
|
00001 // RemoveObjectTag.h: RemoveObject* tag for Gnash. 00002 // 00003 // Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 00004 // Free Software Foundation, Inc. 00005 // 00006 // This program is free software; you can redistribute it and/or modify 00007 // it under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation; either version 3 of the License, or 00009 // (at your option) any later version. 00010 // 00011 // This program is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU General Public License 00017 // along with this program; if not, write to the Free Software 00018 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 00020 #ifndef GNASH_SWF_REMOVEOBJECTTAG_H 00021 #define GNASH_SWF_REMOVEOBJECTTAG_H 00022 00023 #include "DisplayListTag.h" // for inheritance 00024 #include "SWF.h" // for TagType definition 00025 00026 // Forward declarations 00027 namespace gnash { 00028 class SWFStream; 00029 class MovieClip; 00030 class swf_event; 00031 class movie_definition; 00032 class DisplayList; 00033 class RunResources; 00034 } 00035 00036 namespace gnash { 00037 namespace SWF { 00038 00040 // 00043 class RemoveObjectTag : public DisplayListTag 00044 { 00045 public: 00046 00047 RemoveObjectTag() 00048 : 00049 DisplayListTag(-1) 00050 {} 00051 00053 void read(SWFStream& in, TagType tag); 00054 00056 void executeState(MovieClip* m, DisplayList& dlist) const; 00057 00058 static void loader(SWFStream& in, TagType tag, movie_definition& m, 00059 const RunResources& r); 00060 00061 private: 00062 00063 int _id; 00064 00065 }; 00066 00067 } // namespace gnash::SWF 00068 } // namespace gnash 00069 00070 00071 #endif // GNASH_SWF_REMOVEOBJECTTAG_H 00072 00073 00074 // Local Variables: 00075 // mode: C++ 00076 // indent-tabs-mode: t 00077 // End: