3#include <Core/ResourceManager/ResourceHandle.h>
4#include <RendererCore/Components/RenderComponent.h>
5#include <RmlUiPlugin/Components/RmlUiMessages.h>
34 void SetRmlFile(
const char* szFile);
35 const char* GetRmlFile()
const;
41 const plVec2I32& GetOffset()
const {
return m_vOffset; }
44 const plVec2U32& GetSize()
const {
return m_vSize; }
46 void SetAnchorPoint(
const plVec2& vAnchorPoint);
47 const plVec2& GetAnchorPoint()
const {
return m_vAnchorPoint; }
49 void SetPassInput(
bool bPassInput);
50 bool GetPassInput()
const {
return m_bPassInput; }
53 void SetAutobindBlackboards(
bool bAutobind);
54 bool GetAutobindBlackboards()
const {
return m_bAutobindBlackboards; }
57 void RemoveDataBinding(plUInt32 uiDataBindingIndex);
61 void RemoveBlackboardBinding(plUInt32 uiDataBindingIndex);
74 void UpdateCachedValues();
75 void UpdateAutobinding();
78 plEvent<const plResourceEvent&, plMutex>::Unsubscriber m_ResourceEventUnsubscriber;
84 bool m_bPassInput =
true;
85 bool m_bAutobindBlackboards =
true;
A blackboard is a key/value store that provides OnChange events to be informed when a value changes.
Definition Blackboard.h:66
virtual void SerializeComponent(plWorldWriter &inout_stream) const
Override this to save the current state of the component to the given stream.
Definition Component.cpp:54
virtual void DeserializeComponent(plWorldReader &inout_stream)
Override this to load the current state of the component from the given stream.
Definition Component.cpp:58
virtual void Initialize()
Can be overridden for basic initialization that depends on a valid hierarchy and position.
Definition Component.cpp:131
Simple component manager implementation that calls an update method on all components every frame.
Definition ComponentManager.h:142
Definition DynamicArray.h:81
Base class for objects that should be rendered.
Definition RenderComponent.h:9
virtual void OnActivated() override
This method is called when the component gets activated.
Definition RenderComponent.cpp:33
virtual void OnDeactivated() override
This method is called when the component gets deactivated.
Definition RenderComponent.cpp:38
virtual plResult GetLocalBounds(plBoundingBoxSphere &ref_bounds, bool &ref_bAlwaysVisible, plMsgUpdateLocalBounds &ref_msg)=0
Called by plRenderComponent::OnUpdateLocalBounds(). If PL_SUCCESS is returned, bounds and bAlwaysVisi...
virtual void Deinitialize() override
This method is called before the component is destroyed. A derived type can override this method to d...
Definition RenderComponent.cpp:26
Definition RmlUiCanvas2DComponent.h:17
Definition RmlUiContext.h:19
Definition RmlUiDataBinding.h:8
A Shared ptr manages a shared object and destroys that object when no one references it anymore....
Definition SharedPtr.h:10
A Unique ptr manages an object and destroys that object when it goes out of scope....
Definition UniquePtr.h:10
static constexpr plVec2Template< plInt32 > MakeZero()
Definition Vec2.h:49
Reads a world description from a stream. Allows to instantiate that world multiple times in different...
Definition WorldReader.h:47
Stores an entire plWorld in a stream.
Definition WorldWriter.h:13
Definition RmlUiMessages.h:7
Definition UpdateLocalBoundsMessage.h:9
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54