singe/thirdparty/RmlUi/Source/Debugger/ElementContextHook.h
2026-09-07 23:44:37 -05:00

31 lines
612 B
C++

#pragma once
#include "../../Include/RmlUi/Core/ElementDocument.h"
#include "ElementDebugDocument.h"
namespace Rml {
namespace Debugger {
class DebuggerPlugin;
/**
An element that the debugger uses to render into a foreign context.
*/
class ElementContextHook : public ElementDebugDocument {
public:
RMLUI_RTTI_DeclareWithParent(ElementContextHook, ElementDebugDocument)
ElementContextHook(const String& tag);
virtual ~ElementContextHook();
void Initialise(DebuggerPlugin* debugger);
void OnRender() override;
private:
DebuggerPlugin* debugger;
};
} // namespace Debugger
} // namespace Rml