/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/RmlUi/Source/Core/ElementBackgroundBorder.h
41 строка
1016 B
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/CallbackTexture.h" #include "../../Include/RmlUi/Core/Geometry.h" #include "../../Include/RmlUi/Core/Types.h" namespace Rml { struct BoxShadowRenderable; class ElementBackgroundBorder { public: ElementBackgroundBorder(); void Render(Element* element); void DirtyBackground(); void DirtyBorder(); Geometry* GetClipGeometry(Element* element, BoxArea clip_area); private: enum class BackgroundType { BackgroundBorder, BoxShadowAndBackgroundBorder, ClipBorder, ClipPadding, ClipContent, Count }; struct Background { Geometry geometry; Texture texture; SharedPtr<BoxShadowRenderable> box_shadow_and_background_border; }; Background* GetBackground(BackgroundType type); Background& GetOrCreateBackground(BackgroundType type); void EraseBackground(BackgroundType type); void GenerateGeometry(Element* element); bool background_dirty = false; bool border_dirty = false; StableMap<BackgroundType, Background> backgrounds; }; } // namespace Rml