1.28 <GskRadialGradientNode>

Class: <GskRadialGradientNode>

It derives from <GskRenderNode>.

A render node for a radial gradient.

Procedures

Method: radial-gradient-node:get-center self ⇒ %return
Method: get-center self ⇒ %return

Retrieves the center pointer for the gradient.

self

Passed: a <GskRadialGradientNode>.

a <GskRenderNode> for a radial gradient

%return

Returned: a <GraphenePoint>.

the center point for the gradient

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

Retrieves the color stops in the gradient.

self

Passed: a <GskRadialGradientNode>.

a <GskRenderNode> for a radial 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: radial-gradient-node:get-end self ⇒ %return
Method: get-end self ⇒ %return

Retrieves the end value for the gradient.

self

Passed: a <GskRadialGradientNode>.

a <GskRenderNode> for a radial gradient

%return

Returned: a real number.

the end value for the gradient

Method: radial-gradient-node:get-hradius self ⇒ %return
Method: get-hradius self ⇒ %return

Retrieves the horizontal radius for the gradient.

self

Passed: a <GskRadialGradientNode>.

a <GskRenderNode> for a radial gradient

%return

Returned: a real number.

the horizontal radius for the gradient

Method: radial-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 <GskRadialGradientNode>.

a <GskRenderNode> for a radial gradient

%return

Returned: an unsigned 64-bit integer.

the number of color stops

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

Retrieves the start value for the gradient.

self

Passed: a <GskRadialGradientNode>.

a <GskRenderNode> for a radial gradient

%return

Returned: a real number.

the start value for the gradient

Method: radial-gradient-node:get-vradius self ⇒ %return
Method: get-vradius self ⇒ %return

Retrieves the vertical radius for the gradient.

self

Passed: a <GskRadialGradientNode>.

a <GskRenderNode> for a radial gradient

%return

Returned: a real number.

the vertical radius for the gradient

Procedure: radial-gradient-node:new bounds center hradius vradius start end color-stops ⇒ %return

Creates a <GskRenderNode> that draws a radial gradient.

The radial gradient starts around center. The size of the gradient is dictated by hradius in horizontal orientation and by vradius in vertical orientation.

bounds

Passed: a <GrapheneRect>.

the bounds of the node

center

Passed: a <GraphenePoint>.

the center of the gradient

hradius

Passed: a real number.

the horizontal radius

vradius

Passed: a real number.

the vertical radius

start

Passed: a real number.

a percentage >= 0 that defines the start of the gradient around center

end

Passed: a real number.

a percentage >= 0 that defines the end of the gradient around center

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 <GskRadialGradientNode>.

A new <GskRenderNode>

n-color-stops

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

the number of elements in color-stops