/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/RmlUi/Source/Core/Elements/ElementTextSelection.cpp
32 строки
722 B
C-Core
Updated RmlUi to 6.2 and added some improvements (#1813)
10 фев 2026, 01:19
Не верифицирован
10 фев 2026, 01:19
58e2d41
Код
Авторство
О чём код?
#include "ElementTextSelection.h" #include "../../../Include/RmlUi/Core/PropertyIdSet.h" #include "WidgetTextInput.h" namespace Rml { ElementTextSelection::ElementTextSelection(const String& tag) : Element(tag) { widget = nullptr; } ElementTextSelection::~ElementTextSelection() {} void ElementTextSelection::SetWidget(WidgetTextInput* _widget) { widget = _widget; } void ElementTextSelection::OnPropertyChange(const PropertyIdSet& changed_properties) { Element::OnPropertyChange(changed_properties); if (widget == nullptr) return; if (changed_properties.Contains(PropertyId::Color) || changed_properties.Contains(PropertyId::BackgroundColor)) { widget->UpdateSelectionColours(); } } } // namespace Rml