1.31 <GskRepeatNode>

Class: <GskRepeatNode>

It derives from <GskRenderNode>.

A render node repeating its single child node.

Procedures

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

Retrieves the child of self.

self

Passed: a <GskRepeatNode>.

a repeat <GskRenderNode>

%return

Returned: a <GskRenderNode>.

a <GskRenderNode>

Method: repeat-node:get-child-bounds self ⇒ %return
Method: get-child-bounds self ⇒ %return

Retrieves the bounding rectangle of the child of self.

self

Passed: a <GskRepeatNode>.

a repeat <GskRenderNode>

%return

Returned: a <GrapheneRect>.

a bounding rectangle

Procedure: repeat-node:new bounds child [child-bounds] ⇒ %return

Creates a <GskRenderNode> that will repeat the drawing of child across the given bounds.

bounds

Passed: a <GrapheneRect>.

The bounds of the area to be painted

child

Passed: a <GskRenderNode>.

The child to repeat

child-bounds

Passed, or left out: a <GrapheneRect>, or #f.

The area of the child to repeat or #f to use the child’s bounds

%return

Returned: a <GskRepeatNode>.

A new <GskRenderNode>