Gnash  0.8.10
DefinitionTag.h
Go to the documentation of this file.
00001 // 
00002 //   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
00003 //   Free Software Foundation, Inc
00004 // 
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation; either version 3 of the License, or
00008 // (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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018 
00019 #ifndef GNASH_DEFINITION_TAG_H
00020 #define GNASH_DEFINITION_TAG_H
00021 
00022 
00023 #include <boost/noncopyable.hpp>
00024 #include <boost/cstdint.hpp>
00025 
00026 #include "ControlTag.h"
00027 
00028 // Forward declarations
00029 
00030 namespace gnash {
00031         class DisplayObject;
00032         class Global_as;
00033         class SWFMatrix;
00034         class SWFRect;
00035     namespace SWF {
00036         class TextRecord;
00037     }
00038 }
00039 
00040 namespace gnash {
00041 namespace SWF {
00042 
00044 //
00047 class DefinitionTag : public ControlTag
00048 {
00049 public:
00050 
00051         virtual ~DefinitionTag() {};
00052         
00054         //
00057     //
00060     //
00064         virtual DisplayObject* createDisplayObject(Global_as& gl,
00065             DisplayObject* parent) const = 0;
00066 
00068     //
00071         virtual void executeState(MovieClip* m,  DisplayList& /*dlist*/) const;
00072 
00074     //
00076     boost::uint16_t id() const {
00077         return _id;
00078     }
00079 
00080 protected:
00081 
00082     DefinitionTag(boost::uint16_t id) : _id(id) {}
00083 
00084 private:
00085 
00086     const boost::uint16_t _id;
00087         
00088 };
00089 
00090 } // namespace SWF
00091 } // namespace gnash
00092 
00093 #endif 
00094 
00095 // Local Variables:
00096 // mode: C++
00097 // indent-tabs-mode: t
00098 // End: