R-Type
1.0.1.0
Rewrite of the R-Type game with networking ability
Loading...
Searching...
No Matches
InputText.hpp
1
/*
2
** EPITECH PROJECT, 2023
3
** InputText.hpp
4
** File description:
5
** InputText.hpp
6
*/
7
8
#ifndef R_TYPE_INPUTTEXT_HPP
9
#define R_TYPE_INPUTTEXT_HPP
10
11
#include "uranus/engine/Engine.hpp"
12
#include "uranus/engine/components/Text.hpp"
13
14
namespace
ui {
15
class
InputText
:
public
engine::Base
{
16
public
:
17
InputText
(
const
std::string &uniqueName,
uranus::ecs::component::Position
pos,
18
const
std::function<
void
()> &callbackPressed);
19
20
void
loop(
size_t
entity);
21
22
void
handleKeyboard(
size_t
entity,
engine::Event
event);
23
24
private
:
25
bool
_hover;
26
bool
_focused;
27
sf::Font _font;
28
engine::Text
_text;
29
std::function<void()> _callbackPressed;
30
};
31
}
32
33
#endif
//R_TYPE_INPUTTEXT_HPP
engine::Base
Definition:
Base.hpp:15
engine::Event
Definition:
Event.hpp:14
engine::Text
Definition:
Text.hpp:15
ui::InputText
Definition:
InputText.hpp:15
uranus::ecs::component::Position
Definition:
Components.hpp:31
client
include
ui
InputText.hpp
Generated by
1.9.5