Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/event/throw_event.h

Go to the documentation of this file.
00001 // Filename: throw_event.h
00002 // Created by:  drose (19Feb99)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef THROW_EVENT_H
00020 #define THROW_EVENT_H
00021 
00022 #include <pandabase.h>
00023 
00024 #include "eventQueue.h"
00025 #include "pt_Event.h"
00026 
00027 // A handful of convenience functions to throw events.
00028 INLINE void throw_event(const CPT_Event &event);
00029 INLINE void throw_event(const string &event_name);
00030 INLINE void throw_event(const string &event_name,
00031                         const EventParameter &p1);
00032 INLINE void throw_event(const string &event_name,
00033                         const EventParameter &p1,
00034                         const EventParameter &p2);
00035 INLINE void throw_event(const string &event_name,
00036                         const EventParameter &p1,
00037                         const EventParameter &p2,
00038                         const EventParameter &p3);
00039 
00040 #include "eventHandler.h"
00041 
00042 INLINE void throw_event_directly(EventHandler& handler,
00043                                  const CPT_Event &event);
00044 INLINE void throw_event_directly(EventHandler& handler,
00045                                  const string &event_name);
00046 INLINE void throw_event_directly(EventHandler& handler,
00047                                  const string &event_name,
00048                                  const EventParameter &p1);
00049 INLINE void throw_event_directly(EventHandler& handler,
00050                                  const string &event_name,
00051                                  const EventParameter &p1,
00052                                  const EventParameter &p2);
00053 INLINE void throw_event_directly(EventHandler& handler,
00054                                  const string &event_name,
00055                                  const EventParameter &p1,
00056                                  const EventParameter &p2,
00057                                  const EventParameter &p3);
00058 
00059 #include "throw_event.I"
00060 
00061 #endif

Generated on Fri May 2 00:38:17 2003 for Panda by doxygen1.3