Files
GabsPuNs-Project_Zenith_Main/Minecraft.Client/Windows64/Libs/RmlUi/Source/Lua/LuaDocumentElementInstancer.h
2026-06-10 16:12:51 +02:00

21 lines
710 B
C++

#pragma once
#include <RmlUi/Core/ElementInstancer.h>
namespace Rml {
namespace Lua {
class LuaDocumentElementInstancer : public ::Rml::ElementInstancer {
/// Instances an element given the tag name and attributes.
/// @param[in] parent The element the new element is destined to be parented to.
/// @param[in] tag The tag of the element to instance.
/// @param[in] attributes Dictionary of attributes.
ElementPtr InstanceElement(Element* parent, const String& tag, const XMLAttributes& attributes) override;
/// Releases an element instanced by this instancer.
/// @param[in] element The element to release.
void ReleaseElement(Element* element) override;
};
} // namespace Lua
} // namespace Rml