Panda3D
Loading...
Searching...
No Matches
throw_event.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file throw_event.h
10 * @author drose
11 * @date 1999-02-19
12 */
13
14#ifndef THROW_EVENT_H
15#define THROW_EVENT_H
16
17#include "pandabase.h"
18
19#include "eventQueue.h"
20#include "pt_Event.h"
21#include "eventParameter.h"
22
23// A handful of convenience functions to throw events.
24INLINE void throw_event(const CPT_Event &event);
25INLINE void throw_event(const std::string &event_name);
26INLINE void throw_event(const std::string &event_name,
27 const EventParameter &p1);
28INLINE void throw_event(const std::string &event_name,
29 const EventParameter &p1,
30 const EventParameter &p2);
31INLINE void throw_event(const std::string &event_name,
32 const EventParameter &p1,
33 const EventParameter &p2,
34 const EventParameter &p3);
35INLINE void throw_event(const std::string &event_name,
36 const EventParameter &p1,
37 const EventParameter &p2,
38 const EventParameter &p3,
39 const EventParameter &p4);
40
41#include "eventHandler.h"
42
43INLINE void throw_event_directly(EventHandler& handler,
44 const CPT_Event &event);
45INLINE void throw_event_directly(EventHandler& handler,
46 const std::string &event_name);
47INLINE void throw_event_directly(EventHandler& handler,
48 const std::string &event_name,
49 const EventParameter &p1);
50INLINE void throw_event_directly(EventHandler& handler,
51 const std::string &event_name,
52 const EventParameter &p1,
53 const EventParameter &p2);
54INLINE void throw_event_directly(EventHandler& handler,
55 const std::string &event_name,
56 const EventParameter &p1,
57 const EventParameter &p2,
58 const EventParameter &p3);
59
60#include "throw_event.I"
61
62#endif
A ConstPointerTo is similar to a PointerTo, except it keeps a const pointer to the thing.
Definition pointerTo.h:144
A class to monitor events from the C++ side of things.
An optional parameter associated with an event.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.