/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/RmlUi/Source/Core/Property.cpp
33 строки
616 B
C-Core
Updated RmlUi to 6.2 and added some improvements (#1813)
10 фев 2026, 01:19
Не верифицирован
10 фев 2026, 01:19
58e2d41
Код
Авторство
О чём код?
#include "../../Include/RmlUi/Core/Property.h" #include "../../Include/RmlUi/Core/PropertyDefinition.h" namespace Rml { Property::Property() : unit(Unit::UNKNOWN), specificity(-1) { definition = nullptr; parser_index = -1; } String Property::ToString() const { if (!definition) return value.Get<String>() + Rml::ToString(unit); String string; definition->GetValue(string, *this); return string; } NumericValue Property::GetNumericValue() const { NumericValue result; if (Any(unit & Unit::NUMERIC)) { if (value.GetInto(result.number)) result.unit = unit; } return result; } } // namespace Rml