#include "Cubed/ui/text_field.hpp" #include "Cubed/app.hpp" #include "Cubed/tools/text_tools.hpp" #include namespace { constexpr float DELTA_CUROUR_HEIGHT = 10.0f; } namespace Cubed { TextField::TextField(Widget* parent) : Widget(parent) { Widget::set_width(NORMAL_TEXTFIELD_WIDTH); Widget::set_height(NORMAL_TEXTFIELD_HEIGHT); m_foreground = std::make_unique