1.11 <GskCompositeNode>

Class: <GskCompositeNode>

It derives from <GskRenderNode>.

A render node that uses Porter/Duff compositing operators to combine its child with the background.

Procedures

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

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

self

Passed: a <GskCompositeNode>.

a composite <GskRenderNode>

%return

Returned: a <GskRenderNode>.

the child <GskRenderNode>

Method: composite-node:get-mask self ⇒ %return
Method: get-mask self ⇒ %return

Gets the mask node that describes the region where the compositing applies.

self

Passed: a <GskCompositeNode>.

a composite <GskRenderNode>

%return

Returned: a <GskRenderNode>.

the mask <GskRenderNode>

Method: composite-node:get-operator self ⇒ %return
Method: get-operator self ⇒ %return

Gets the compositing operator used by this node.

self

Passed: a <GskCompositeNode>.

a composite <GskRenderNode>

%return

Returned: a <GskPorterDuff>.

The compositing operator

Procedure: composite-node:new child mask op ⇒ %return

Creates a <GskRenderNode> that will composite the child onto the background with the given operator wherever the mask is set.

Note that various operations can modify the background outside of the child’s bounds, so the mask may cause visual changes outside of the child.

child

Passed: a <GskRenderNode>.

The child to composite

mask

Passed: a <GskRenderNode>.

The mask where the compositing will apply

op

Passed: a <GskPorterDuff>, or one of its symbols.

The compositing operator

%return

Returned: a <GskCompositeNode>.

A new <GskRenderNode>