/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/RmlUi/Source/Core/ElementMeta.h
37 строк
1 KB
C-Core
Updated RmlUi to 6.2 and added some improvements (#1813)
10 фев 2026, 01:19
Не верифицирован
10 фев 2026, 01:19
58e2d41
Код
Авторство
О чём код?
#pragma once #include "../../Include/RmlUi/Core/ComputedValues.h" #include "../../Include/RmlUi/Core/Element.h" #include "../../Include/RmlUi/Core/ElementScroll.h" #include "../../Include/RmlUi/Core/Traits.h" #include "../../Include/RmlUi/Core/Types.h" #include "ControlledLifetimeResource.h" #include "ElementBackgroundBorder.h" #include "ElementEffects.h" #include "ElementStyle.h" #include "EventDispatcher.h" #include "Pool.h" namespace Rml { // Meta objects for element collected in a single struct to reduce memory allocations struct ElementMeta { explicit ElementMeta(Element* el) : event_dispatcher(el), style(el), background_border(), effects(el), scroll(el), computed_values(el) {} SmallUnorderedMap<EventId, EventListener*> attribute_event_listeners; EventDispatcher event_dispatcher; ElementStyle style; ElementBackgroundBorder background_border; ElementEffects effects; ElementScroll scroll; Style::ComputedValues computed_values; }; struct ElementMetaPool { Pool<ElementMeta> pool{50, true}; static ControlledLifetimeResource<ElementMetaPool> element_meta_pool; static void Initialize(); static void Shutdown(); }; } // namespace Rml