Gsk.RadialGradientNode¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gsk.RadialGradientNode¶
- Bases:
- Abstract:
No
A render node for a radial gradient.
- classmethod new(bounds, center, hradius, vradius, start, end, color_stops)¶
- Parameters:
bounds (
Graphene.Rect
) – the bounds of the nodecenter (
Graphene.Point
) – the center of the gradienthradius (
float
) – the horizontal radiusvradius (
float
) – the vertical radiusstart (
float
) – a percentage >= 0 that defines the start of the gradient around centerend (
float
) – a percentage >= 0 that defines the end of the gradient around centercolor_stops ([
Gsk.ColorStop
]) – a pointer to an array ofGskColorStop
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.
- Returns:
A new
GskRenderNode
- Return type:
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.
- get_center()¶
- Returns:
the center point for the gradient
- Return type:
Retrieves the center pointer for the gradient.
- get_color_stops()¶
- Returns:
the color stops in the gradient
- Return type:
Retrieves the color stops in the gradient.
- get_end()¶
- Returns:
the end value for the gradient
- Return type:
Retrieves the end value for the gradient.
- get_hradius()¶
- Returns:
the horizontal radius for the gradient
- Return type:
Retrieves the horizontal radius for the gradient.
- get_n_color_stops()¶
- Returns:
the number of color stops
- Return type:
Retrieves the number of color stops in the gradient.
- get_start()¶
- Returns:
the start value for the gradient
- Return type:
Retrieves the start value for the gradient.