/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/RmlUi/Source/Core/Elements/WidgetTextInputSingleLine.cpp
25 строк
801 B
C-Core
Updated RmlUi to 6.2 and added some improvements (#1813)
10 фев 2026, 01:19
Не верифицирован
10 фев 2026, 01:19
58e2d41
Код
Авторство
О чём код?
#include "WidgetTextInputSingleLine.h" #include "../../../Include/RmlUi/Core/Dictionary.h" #include "../../../Include/RmlUi/Core/ElementText.h" #include "../../../Include/RmlUi/Core/Elements/ElementFormControl.h" #include <algorithm> namespace Rml { WidgetTextInputSingleLine::WidgetTextInputSingleLine(ElementFormControl* parent) : WidgetTextInput(parent) { // Single line text controls should clip to the content area, see visual test: text_input_overflow.rml parent->SetClipArea(BoxArea::Content); } void WidgetTextInputSingleLine::SanitizeValue(String& value) { value.erase(std::remove_if(value.begin(), value.end(), [](char c) { return c == '\r' || c == '\n' || c == '\t'; }), value.end()); } void WidgetTextInputSingleLine::LineBreak() { DispatchChangeEvent(true); } } // namespace Rml