Gsk.RepeatingLinearGradientNode¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gsk.RepeatingLinearGradientNode¶
- Bases:
- Abstract:
No
A render node for a repeating linear gradient.
- classmethod new(bounds, start, end, color_stops)¶
- Parameters:
bounds (
Graphene.Rect) – the rectangle to render the linear gradient intostart (
Graphene.Point) – the point at which the linear gradient will beginend (
Graphene.Point) – the point at which the linear gradient will finishcolor_stops ([
Gsk.ColorStop]) – a pointer to an array ofGskColorStopdefining 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
GskRenderNodethat will create a repeating linear gradient from the given points and color stops, and render that into the area given by bounds.