Panda3D

throw_event.h

00001 // Filename: throw_event.h
00002 // Created by:  drose (19Feb99)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef THROW_EVENT_H
00016 #define THROW_EVENT_H
00017 
00018 #include "pandabase.h"
00019 
00020 #include "eventQueue.h"
00021 #include "pt_Event.h"
00022 #include "eventParameter.h"
00023 
00024 // A handful of convenience functions to throw events.
00025 INLINE void throw_event(const CPT_Event &event);
00026 INLINE void throw_event(const string &event_name);
00027 INLINE void throw_event(const string &event_name,
00028                         const EventParameter &p1);
00029 INLINE void throw_event(const string &event_name,
00030                         const EventParameter &p1,
00031                         const EventParameter &p2);
00032 INLINE void throw_event(const string &event_name,
00033                         const EventParameter &p1,
00034                         const EventParameter &p2,
00035                         const EventParameter &p3);
00036 INLINE void throw_event(const string &event_name,
00037                         const EventParameter &p1,
00038                         const EventParameter &p2,
00039                         const EventParameter &p3,
00040                         const EventParameter &p4);
00041 
00042 #include "eventHandler.h"
00043 
00044 INLINE void throw_event_directly(EventHandler& handler,
00045                                  const CPT_Event &event);
00046 INLINE void throw_event_directly(EventHandler& handler,
00047                                  const string &event_name);
00048 INLINE void throw_event_directly(EventHandler& handler,
00049                                  const string &event_name,
00050                                  const EventParameter &p1);
00051 INLINE void throw_event_directly(EventHandler& handler,
00052                                  const string &event_name,
00053                                  const EventParameter &p1,
00054                                  const EventParameter &p2);
00055 INLINE void throw_event_directly(EventHandler& handler,
00056                                  const string &event_name,
00057                                  const EventParameter &p1,
00058                                  const EventParameter &p2,
00059                                  const EventParameter &p3);
00060 
00061 #include "throw_event.I"
00062 
00063 #endif
 All Classes Functions Variables Enumerations