Estella
0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
UIInteraction.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
3
#pragma once
4
5
#include "
../../core/Types.hpp
"
6
#include "
../../core/Reflection.hpp
"
7
8
namespace
esengine::ecs
{
9
10
ES_COMPONENT
(transient)
11
struct
UIInteraction
{
12
ES_PROPERTY
()
13
bool
hovered
{
false
};
14
ES_PROPERTY
()
15
bool
pressed
{
false
};
16
ES_PROPERTY
()
17
bool
justPressed
{
false
};
18
ES_PROPERTY
()
19
bool
justReleased
{
false
};
20
};
21
22
}
// namespace esengine::ecs
Reflection.hpp
Reflection and metadata system for automatic binding generation.
ES_COMPONENT
#define ES_COMPONENT(...)
Mark a struct/class as a component that should be exposed to scripts.
Definition
Reflection.hpp:46
ES_PROPERTY
#define ES_PROPERTY(...)
Mark a field as a property that should be exposed to scripts.
Definition
Reflection.hpp:95
Types.hpp
Core type definitions and utilities for ESEngine.
esengine::ecs
Definition
AotComponents.generated.hpp:8
esengine::ecs::UIInteraction
Definition
UIInteraction.hpp:11
esengine::ecs::UIInteraction::pressed
bool pressed
Definition
UIInteraction.hpp:15
esengine::ecs::UIInteraction::justReleased
bool justReleased
Definition
UIInteraction.hpp:19
esengine::ecs::UIInteraction::justPressed
bool justPressed
Definition
UIInteraction.hpp:17
esengine::ecs::UIInteraction::hovered
bool hovered
Definition
UIInteraction.hpp:13
src
esengine
ecs
components
UIInteraction.hpp
Generated by
1.15.0