CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
UISystem.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
13
14namespace CeresEngine {
15 class InputManager;
16 class PlatformWindow;
17} // namespace CeresEngine
18
20
21 class UISystem final : public System<UISystem> {
22 private:
25
27 bool mVisible = false;
28
30
31 AffineTransform mInputTransform;
32
33 public:
35
36 public:
37 [[nodiscard]] const AffineTransform& getInputTransform() const;
38 void setInputTransform(const AffineTransform& inputTransform);
39
40 [[nodiscard]] bool isVisible() const noexcept { return mVisible; }
41
42 public:
44 void update(double time) final;
45
48
49 private:
51 };
52
53} // namespace CeresEngine::Graphics::UI
Definition UISystem.hpp:21
InputManager * inputManager
The input manager used to handle keystrokes and mouse movement.
Definition UISystem.hpp:24
bool isVisible() const noexcept
Definition UISystem.hpp:40
const AffineTransform & getInputTransform() const
void onTextInput(const TextEvent &textEvent)
UISystem(InputManager *inputManager)
void setInputTransform(const AffineTransform &inputTransform)
SystemOrder getOrder() const noexcept final
void update(double time) final
AffineTransform mInputTransform
Definition UISystem.hpp:31
Vector< char > mInputCharacters
Definition UISystem.hpp:29
bool mVisible
A flag that indicates if the UI is currently visible on the screen.
Definition UISystem.hpp:27
Definition InputManager.hpp:29
A system is a special kind of service that is managed internally by the SystemManager.
Definition System.hpp:168
Definition Checkbox.hpp:14
Definition Application.hpp:19
std::vector< T, ScopedAllocatorAdaptor< StdAllocator< T, RawAllocator > > > Vector
Vector is a sequence container that encapsulates dynamic size arrays.
Definition Vector.hpp:17
int SystemOrder
A signed numeric type that represents the order in which a system should be updated by the SystemMana...
Definition System.hpp:31
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
A structure that describes a text input event.
Definition InputEvent.hpp:124