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

Description

A render node for a repeating radial gradient.

Synopsis

Exported types

toRepeatingRadialGradientNode :: (MonadIO m, IsRepeatingRadialGradientNode o) => o -> m RepeatingRadialGradientNode Source #

Cast to RepeatingRadialGradientNode, 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

repeatingRadialGradientNodeNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Rect

bounds: the bounds of the node

-> Point

center: the center of the gradient

-> Float

hradius: the horizontal radius

-> Float

vradius: the vertical radius

-> Float

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

-> Float

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

-> [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 RepeatingRadialGradientNode

Returns: A new GskRenderNode

Creates a GskRenderNode that draws a repeating radial gradient.

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