8 #ifndef KAPUI_INPUTFIELD_HPP_
9 #define KAPUI_INPUTFIELD_HPP_
11 #include "KapEngine.hpp"
40 void setPlaceholderText(std::string
const &text);
42 void setInputType(InputType type) { _type = type; }
44 std::string getText()
const {
return _content; }
50 bool __stringIsNumber(std::string
const &str)
52 for (std::size_t i = 0; i < str.size(); i++)
54 if (str[i] <
'0' || str[i] >
'9')
60 std::string __getInput();
61 void __init(std::shared_ptr<GameObject> go);
63 std::string __getFormatedText()
const;
65 bool _hovered =
false;
66 bool _clicked =
false;
68 InputType _type = InputType::TEXT;
70 std::string _content =
"";