Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
EditContextUpdatedEvent.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <Common/assertion.h>
6#include <Common/primitive_type.h>
7
8namespace ph::editor
9{
10
11class EditContext;
12
13enum class EEditContextEvent : uint8
14{
15 None = 0,
17};
18
19class EditContextUpdatedEvent final : public TEditorEvent<true>
20{
21public:
23
24 EditContext getContext() const;
26
27private:
28 EEditContextEvent m_type;
29};
30
32 const EEditContextEvent type,
33 Editor* const editor)
34
35 : TEditorEvent(editor)
36
37 , m_type(type)
38{}
39
41{
42 return m_type;
43}
44
45}// end namespace ph::editor
Definition EditContext.h:9
Definition EditContextUpdatedEvent.h:20
EEditContextEvent getType() const
Definition EditContextUpdatedEvent.h:40
EditContextUpdatedEvent(EEditContextEvent type, Editor *editor)
Definition EditContextUpdatedEvent.h:31
EditContext getContext() const
Definition EditContextUpdatedEvent.cpp:7
Definition Editor.h:45
Definition TEditorEvent.h:15
Definition ph_editor.h:10
EEditContextEvent
Definition EditContextUpdatedEvent.h:14
@ None
Definition ImguiEditorPanel.h:21