void Layout::visit(Renderer *renderer, const Mat4 &parentTransform, uint32_t parentFlags) { if (!_visible) { return; } adaptRenderers(); doLayout(); if (_clippingEnabled) { switch (_clippingType) { case ClippingType::STENCIL: stencilClippingVisit(renderer, parentTransform, parentFlags); break; case ClippingType::SCISSOR: scissorClippingVisit(renderer, parentTransform, parentFlags); break; default: break; } } else { Widget::visit(renderer, parentTransform, parentFlags); } }
void Widget::visit(Renderer *renderer, const Mat4 &parentTransform, uint32_t parentFlags) { if (_visible) { adaptRenderers(); ProtectedNode::visit(renderer, parentTransform, parentFlags); } }
void Widget::visit(Renderer *renderer, const Mat4 &parentTransform, uint32_t parentFlags) { if (_visible || !isVisitableByVisitingCamera()) { adaptRenderers(); ProtectedNode::visit(renderer, parentTransform, parentFlags); } }
void Widget::visit(Renderer *renderer, const Mat4 &parentTransform, bool parentTransformUpdated) { if (_visible) { adaptRenderers(); ProtectedNode::visit(renderer, parentTransform, parentTransformUpdated); } }
void ButtonEx::visit(cocos2d::Renderer* renderer, const cocos2d::Mat4& parentTransform, std::uint32_t parentFlags) { adaptRenderers(); Super::visit(renderer, parentTransform, parentFlags); }