#include "MaskedComponentInstance.h"
namespace rnoh {
MaskedComponentInstance::MaskedComponentInstance(Context context) : CppComponentInstance(std::move(context)) {}
void MaskedComponentInstance::onChildInserted(ComponentInstance::Shared const &childComponentInstance,
std::size_t index)
{
m_stackNode.insertChild(childComponentInstance->getLocalRootArkUINode(), index);
}
void MaskedComponentInstance::onChildRemoved(ComponentInstance::Shared const &childComponentInstance)
{
m_stackNode.removeChild(childComponentInstance->getLocalRootArkUINode());
};
MaskedViewStackNode &MaskedComponentInstance::getLocalRootArkUINode() { return m_stackNode; }
}