• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

swf_event.h

Go to the documentation of this file.
00001 // swf_event.h -- clip events (PlaceObject-defined)
00002 // 
00003 //   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software
00004 //   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_EVENT_H
00021 #define GNASH_SWF_EVENT_H
00022 
00023 #include "event_id.h" // for composition
00024 
00025 namespace gnash {
00026     class action_buffer;
00027 }
00028 
00029 namespace gnash {
00030 
00031 //
00032 // swf_event
00033 //
00034 
00036 //
00039 class swf_event
00040 {
00041 public:
00042 
00043         swf_event(const event_id& ev, action_buffer& buf)
00044                 :
00045                 m_event(ev),
00046                 m_action_buffer(buf)
00047         {
00048         }
00049 
00050         swf_event(const swf_event& o)
00051                 :
00052                 m_event(o.m_event),
00053                 m_action_buffer(o.m_action_buffer)
00054         {
00055         }
00056 
00057         const action_buffer& action()
00058         {
00059                 return m_action_buffer;
00060         }
00061 
00062         event_id& event()
00063         {
00064                 return m_event;
00065         }
00066 
00067 private:
00068 
00070         event_id        m_event;
00071 
00073         //
00078         const action_buffer& m_action_buffer;
00079 
00081         void operator=(const swf_event& /*s*/);
00082 };
00083 
00084 
00085 }       // end namespace gnash
00086 
00087 
00088 #endif // GNASH_SWF_EVENT_H

Generated on Fri Mar 16 2012 15:46:12 for Gnash by  doxygen 1.7.1