1.7 <GskClipNode>

Class: <GskClipNode>

It derives from <GskRenderNode>.

A render node applying a rectangular clip to its single child node.

Procedures

Method: clip-node:get-child self ⇒ %return
Method: get-child self ⇒ %return

Gets the child node that is getting clipped by the given self.

self

Passed: a <GskClipNode>.

a clip GskRenderNode

%return

Returned: a <GskRenderNode>.

The child that is getting clipped

Method: clip-node:get-clip self ⇒ %return
Method: get-clip self ⇒ %return

Retrieves the clip rectangle for self.

self

Passed: a <GskClipNode>.

a <GskClipNode>

%return

Returned: a <GrapheneRect>.

a clip rectangle

Procedure: clip-node:new child clip ⇒ %return

Creates a <GskRenderNode> that will clip the child to the area given by clip.

child

Passed: a <GskRenderNode>.

The node to draw

clip

Passed: a <GrapheneRect>.

The clip to apply

%return

Returned: a <GskClipNode>.

A new <GskRenderNode>