#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) { m_background = std::make_unique(this); m_background->set_fill(true); m_background->set_anchor(Anchor::TOP_LEFT); m_foreground = std::make_unique