LinearGradientNode.this

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.

  1. this(GskLinearGradientNode* gskLinearGradientNode, bool ownedRef)
  2. this(Rect bounds, Point start, Point end, GskColorStop[] colorStops)
    class LinearGradientNode

Parameters

bounds Rect

the rectangle to render the linear gradient into

start Point

the point at which the linear gradient will begin

end Point

the point at which the linear gradient will finish

colorStops 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 Value

A new GskRenderNode

Throws

ConstructionException GTK+ fails to create the object.

Meta