1.25 <GskOpacityNode>

Class: <GskOpacityNode>

It derives from <GskRenderNode>.

A render node controlling the opacity of its single child node.

Procedures

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

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

self

Passed: a <GskOpacityNode>.

a <GskRenderNode> for an opacity

%return

Returned: a <GskRenderNode>.

The child that is getting opacityed

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

Gets the transparency factor for an opacity node.

self

Passed: a <GskOpacityNode>.

a <GskRenderNode> for an opacity

%return

Returned: a real number.

the opacity factor

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

Creates a <GskRenderNode> that will drawn the child with reduced opacity.

child

Passed: a <GskRenderNode>.

The node to draw

opacity

Passed: a real number.

The opacity to apply

%return

Returned: a <GskOpacityNode>.

A new <GskRenderNode>