If you have custom stencil-based node with stencil drawing mechanics other then children-based, then this method should return true every time you wish stencil to be visited. By default returns true if has any children attached.

var hasContent

(

)

virtual

If stencil has no childre it will not be drawn.

If you have custom stencil-based node with stencil drawing mechanics other then children-based, then this method should return true every time you wish stencil to be visited. By default returns true if has any children attached.

local hasContent

(

)

virtual

If stencil has no childre it will not be drawn.

If you have custom stencil-based node with stencil drawing mechanics other then children-based, then this method should return true every time you wish stencil to be visited. By default returns true if has any children attached.

The stencil node will be retained, and its parent will be set to this clipping node.

var init

(

var

stencil

)

virtual

Initializes a clipping node with an other node as its stencil.

The stencil node will be retained, and its parent will be set to this clipping node.

local init

(

local

stencil

)

virtual

Initializes a clipping node with an other node as its stencil.

The stencil node will be retained, and its parent will be set to this clipping node.

bool isInverted

(

)

const

Inverted.

If this is set to true, the stencil is inverted, so the content is drawn where the stencil is NOT drawn. This default to false.

var isInverted

(

)

Inverted.

If this is set to true, the stencil is inverted, so the content is drawn where the stencil is NOT drawn. This default to false.

local isInverted

(

)

Inverted.

If this is set to true, the stencil is inverted, so the content is drawn where the stencil is NOT drawn. This default to false.

void onAfterDrawStencil

(

)

protected

var onAfterDrawStencil

(

)

protected

local onAfterDrawStencil

(

)

protected

void onAfterVisit

(

)

protected

var onAfterVisit

(

)

protected

local onAfterVisit

(

)

protected

void onBeforeVisit

(

)

protected

var onBeforeVisit

(

)

protected

local onBeforeVisit

(

)

protected

virtual void onEnter

(

)

overridevirtual

Event callback that is invoked every time when Node enters the 'stage'.

If the Node enters the 'stage' with a transition, this event is called when the transition starts. During onEnter you can't access a "sister/brother" node. If you override onEnter, you shall call its parent's one, e.g., Node::onEnter().

If the Node enters the 'stage' with a transition, this event is called when the transition finishes. If you override onEnterTransitionDidFinish, you shall call its parent's one, e.g. Node::onEnterTransitionDidFinish()

Event callback that is invoked every time the Node leaves the 'stage'.

If the Node leaves the 'stage' with a transition, this event is called when the transition finishes. During onExit you can't access a sibling node. If you override onExit, you shall call its parent's one, e.g., Node::onExit().