1.36 <GskStrokeNode>

Class: <GskStrokeNode>

It derives from <GskRenderNode>.

A render node that will fill the area determined by stroking the the given <GskPath> using the <GskStroke> attributes.

Procedures

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

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

self

Passed: a <GskStrokeNode>.

a stroke <GskRenderNode>

%return

Returned: a <GskRenderNode>.

The child that is getting drawn

Method: stroke-node:get-path self ⇒ %return
Method: get-path self ⇒ %return

Retrieves the path that will be stroked with the contents of the self.

self

Passed: a <GskStrokeNode>.

a stroke <GskRenderNode>

%return

Returned: a <GskPath>.

a <GskPath>

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

Retrieves the stroke attributes used in this self.

self

Passed: a <GskStrokeNode>.

a stroke <GskRenderNode>

%return

Returned: a <GskStroke>.

a <GskStroke>

Procedure: stroke-node:new child path stroke ⇒ %return

Creates a <GskRenderNode> that will fill the outline generated by stroking the given path using the attributes defined in stroke.

The area is filled with child.

GSK aims to follow the SVG semantics for stroking paths. E.g. zero-length contours will get round or square line caps drawn, regardless whether they are closed or not.

child

Passed: a <GskRenderNode>.

The node to stroke the area with

path

Passed: a <GskPath>.

The path describing the area to stroke

stroke

Passed: a <GskStroke>.

The stroke attributes to use

%return

Returned: a <GskStrokeNode>.

A new <GskRenderNode>