1.35 <GskShadowNode>

Class: <GskShadowNode>

It derives from <GskRenderNode>.

A render node drawing one or more shadows behind its single child node.

Procedures

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

Retrieves the child <GskRenderNode> of the shadow self.

self

Passed: a <GskShadowNode>.

a shadow <GskRenderNode>

%return

Returned: a <GskRenderNode>.

the child render node

Method: shadow-node:get-n-shadows self ⇒ %return
Method: get-n-shadows self ⇒ %return

Retrieves the number of shadows in the self.

self

Passed: a <GskShadowNode>.

a shadow <GskRenderNode>

%return

Returned: an unsigned 64-bit integer.

the number of shadows.

Method: shadow-node:get-shadow self i ⇒ %return
Method: get-shadow self i ⇒ %return

Retrieves the shadow data at the given index i.

self

Passed: a <GskShadowNode>.

a shadow <GskRenderNode>

i

Passed: an unsigned 64-bit integer.

the given index

%return

Returned: a <GskShadow>.

the shadow data

Procedure: shadow-node:new child shadows ⇒ %return

Creates a <GskRenderNode> that will draw a child with the given shadows below it.

child

Passed: a <GskRenderNode>.

The node to draw

shadows

Passed: a list or vector, each a <GskShadow>.

The shadows to apply

%return

Returned: a <GskShadowNode>.

A new <GskRenderNode>

n-shadows

Not passed: guile-gi gives the length of shadows.

number of entries in the shadows array