Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
AppModuleActionEvent.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace ph::editor
6{
7
8class AppModule;
9
11{
12 // FIXME: no longer can attach & detach during app running
13 /*Attach,
14 Detach*/
15
16 // TODO: possibly paused, crashed, etc
17};
18
19class AppModuleActionEvent final : public Event
20{
21public:
22 AppModuleActionEvent(EAppModuleAction action, AppModule* targetModule);
23
26
27private:
28 EAppModuleAction m_action;
29 AppModule* m_targetModule;
30};
31
33 : Event()
34 , m_action(action)
35 , m_targetModule(targetModule)
36{}
37
39{
40 return m_action;
41}
42
44{
45 return m_targetModule;
46}
47
48}// end namespace ph::editor
Definition AppModuleActionEvent.h:20
EAppModuleAction getAction() const
Definition AppModuleActionEvent.h:38
AppModule * getTargetModule() const
Definition AppModuleActionEvent.h:43
AppModuleActionEvent(EAppModuleAction action, AppModule *targetModule)
Definition AppModuleActionEvent.h:32
Definition AppModule.h:19
Base of all event types. Derived classes should strive to keep the size of the object small,...
Definition Event.h:59
Definition ph_editor.h:10
EAppModuleAction
Definition AppModuleActionEvent.h:11