Gnash
0.8.10
|
00001 // DisplayListTag.h: DisplayList 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_DISPLAYLISTTAG_H 00021 #define GNASH_SWF_DISPLAYLISTTAG_H 00022 00023 #include "ControlTag.h" // for inheritance 00024 00025 00026 // Forward declarations 00027 namespace gnash { 00028 class MovieClip; 00029 } 00030 00031 namespace gnash { 00032 namespace SWF { 00033 00035 // 00041 class DisplayListTag : public ControlTag 00042 { 00043 public: 00044 00045 DisplayListTag(int depth) 00046 : 00047 _depth(depth) 00048 {} 00049 00050 virtual ~DisplayListTag() {} 00051 00053 virtual void executeState(MovieClip* m, DisplayList& dlist) const = 0; 00054 00056 // 00059 int getDepth() const { return _depth; } 00060 00061 protected: 00062 00063 int _depth; 00064 00065 }; 00066 00067 } // namespace gnash::SWF 00068 } // namespace gnash 00069 00070 00071 #endif // GNASH_SWF_DISPLAYLISTTAG_H 00072 00073 00074 // Local Variables: 00075 // mode: C++ 00076 // indent-tabs-mode: t 00077 // End: