gi-gsk-4.0.4: Gsk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gsk.Objects.RepeatingLinearGradientNode

Description

A render node for a repeating linear gradient.

Synopsis

Exported types

toRepeatingLinearGradientNode :: (MonadIO m, IsRepeatingLinearGradientNode o) => o -> m RepeatingLinearGradientNode Source #

Cast to RepeatingLinearGradientNode, for types for which this is known to be safe. For general casts, use castTo.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

draw, ref, serialize, unref, writeToFile.

Getters

getBounds, getNodeType.

Setters

None.

new

repeatingLinearGradientNodeNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Rect

bounds: the rectangle to render the linear gradient into

-> Point

start: the point at which the linear gradient will begin

-> Point

end: the point at which the linear gradient will finish

-> [ColorStop]

colorStops: 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.

-> m RepeatingLinearGradientNode

Returns: A new GskRenderNode

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