Loading [MathJax]/extensions/tex2jax.js
Photon Editor Library
2.0.0-beta
A physically based renderer.
Toggle main menu visibility
Home
Components
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
w
Functions
a
c
g
i
n
p
s
t
Variables
Typedefs
Enumerations
Enumerator
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Typedefs
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
Related Symbols
Files
File List
File Members
All
f
i
l
p
t
Functions
Variables
Macros
f
i
p
▼
Photon Editor Library
Home
Components
►
Namespaces
►
Concepts
►
Classes
▼
Files
▼
File List
►
Include
▼
Source
►
Api
►
App
►
Designer
▼
EditorCore
▼
Event
►
AppModuleActionEvent.h
►
DisplayClosedEvent.h
►
DisplayFocusChangedEvent.h
►
DisplayFramebufferResizedEvent.h
Event.cpp
►
Event.h
►
KeyEvent.h
►
KeyPressedEvent.h
►
KeyReleasedEvent.h
MouseButtonEvent.h
MouseButtonPressedEvent.h
MouseButtonReleasedEvent.h
►
SceneFramebufferResizedEvent.h
►
Query
►
Storage
►
Thread
►
EKeyCode.h
►
EMouseCode.h
►
FileSystemExplorer.cpp
►
FileSystemExplorer.h
IDGenerator.cpp
►
IDGenerator.h
►
Program.cpp
►
Program.h
►
TClassEventDispatcher.h
►
TEventDispatcher.h
►
TEventListener.h
►
Platform
►
Procedure
►
Render
►
RenderCore
►
ThirdParty
►
editor_lib_config.h
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Concepts
Loading...
Searching...
No Matches
KeyEvent.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
EditorCore/Event/Event.h
"
4
#include "
EditorCore/EKeyCode.h
"
5
6
#include <Utility/TBitFlags.h>
7
#include <Utility/utility.h>
8
9
namespace
ph::editor
10
{
11
12
class
KeyEvent
:
public
Event
13
{
14
// Hide special members as this class is not intended to be used polymorphically.
15
// It is derived class's choice to expose them (by defining them in public) or not.
16
protected
:
17
PH_DEFINE_INLINE_RULE_OF_5_MEMBERS
(
KeyEvent
);
18
19
public
:
20
explicit
KeyEvent
(
EKeyCode
key);
21
22
/*EEventType getDynamicType() const override = 0;
23
std::string toString() const override = 0;*/
24
25
//EEventSource getSourceType() const override;
26
27
EKeyCode
getKey
()
const
;
28
29
private
:
30
EKeyCode
m_key;
31
};
12
class
KeyEvent
:
public
Event
{
…
};
32
33
inline
KeyEvent::KeyEvent
(
const
EKeyCode
key)
34
:
Event
()
35
, m_key(key)
36
{}
33
inline
KeyEvent::KeyEvent
(
const
EKeyCode
key) {
…
}
37
38
//inline EEventSource KeyEvent::getSourceType() const
39
//{
40
// return TEnumFlags<EEventSource>(
41
// {EEventSource::App, EEventSource::Input, EEventSource::Keyboard}).getEnum();
42
//}
43
44
inline
EKeyCode
KeyEvent::getKey
()
const
45
{
46
return
m_key;
47
}
44
inline
EKeyCode
KeyEvent::getKey
()
const
{
…
}
48
49
}
// end namespace ph::editor
EKeyCode.h
Event.h
ph::editor::Event
Base of all event types. Derived classes should strive to keep the size of the object small,...
Definition
Event.h:59
ph::editor::KeyEvent
Definition
KeyEvent.h:13
ph::editor::KeyEvent::KeyEvent
KeyEvent(EKeyCode key)
Definition
KeyEvent.h:33
ph::editor::KeyEvent::getKey
EKeyCode getKey() const
Definition
KeyEvent.h:44
ph::editor::KeyEvent::PH_DEFINE_INLINE_RULE_OF_5_MEMBERS
PH_DEFINE_INLINE_RULE_OF_5_MEMBERS(KeyEvent)
ph::editor
Definition
ph_editor.h:10
ph::editor::EKeyCode
EKeyCode
Definition
EKeyCode.h:9
Source
EditorCore
Event
KeyEvent.h
Generated by
1.11.0