1.22 <GskLinearGradientNode>

Class: <GskLinearGradientNode>

It derives from <GskRenderNode>.

A render node for a linear gradient.

Procedures

Method: linear-gradient-node:get-color-stops self ⇒ %return
Method: get-color-stops self ⇒ %return

Retrieves the color stops in the gradient.

self

Passed: a <GskLinearGradientNode>.

a <GskRenderNode> for a linear gradient

%return

Returned: a vector, each a <GskColorStop>.

the color stops in the gradient

n-stops

Not returned: it is the length of %return.

the number of color stops in the returned array

Method: linear-gradient-node:get-end self ⇒ %return
Method: get-end self ⇒ %return

Retrieves the final point of the linear gradient.

self

Passed: a <GskLinearGradientNode>.

a <GskRenderNode> for a linear gradient

%return

Returned: a <GraphenePoint>.

the final point

Method: linear-gradient-node:get-n-color-stops self ⇒ %return
Method: get-n-color-stops self ⇒ %return

Retrieves the number of color stops in the gradient.

self

Passed: a <GskLinearGradientNode>.

a <GskRenderNode> for a linear gradient

%return

Returned: an unsigned 64-bit integer.

the number of color stops

Method: linear-gradient-node:get-start self ⇒ %return
Method: get-start self ⇒ %return

Retrieves the initial point of the linear gradient.

self

Passed: a <GskLinearGradientNode>.

a <GskRenderNode> for a linear gradient

%return

Returned: a <GraphenePoint>.

the initial point

Procedure: linear-gradient-node:new bounds start end color-stops ⇒ %return

Creates a <GskRenderNode> that will create a linear gradient from the given points and color stops, and render that into the area given by bounds.

bounds

Passed: a <GrapheneRect>.

the rectangle to render the linear gradient into

start

Passed: a <GraphenePoint>.

the point at which the linear gradient will begin

end

Passed: a <GraphenePoint>.

the point at which the linear gradient will finish

color-stops

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

a pointer to an array of <GskColorStop> defining the gradient. The offsets of all color stops must be increasing. The first stop’s offset must be >= 0 and the last stop’s offset must be <= 1.

%return

Returned: a <GskLinearGradientNode>.

A new <GskRenderNode>

n-color-stops

Not passed: guile-gi gives the length of color-stops.

the number of elements in color-stops