SCENE C++ API  2.0.22
lsevent.h
1 #pragma once
2 
3 #include <core_api/lsglobaldefinitions.h>
4 #include <core_api/lsreftype.h>
5 
6 namespace SCENE_API {
7 
10 class LSEvent : public LSRefType
11 {
12  LS_UNCOPYABLE(LSEvent)
13 
14 public:
15 
18  CORE_API_EXPORT LSEvent();
19 
22  CORE_API_EXPORT virtual ~LSEvent();
23 
27  CORE_API_EXPORT bool isConsumed() const;
28 
32  CORE_API_EXPORT void consume();
33 
34 protected:
35  // Whether the event may be consumed
36  bool m_consumable;
37 
38  // Whether the event has been consumed.
39  bool m_consumed;
40 };
41 
42 }