gi-gsk-4.0.2: Gsk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gsk.Objects.LinearGradientNode

Description

No description available in the introspection data.

Synopsis

Exported types

class (BoxedPtr o, TypedObject o, IsDescendantOf LinearGradientNode o) => IsLinearGradientNode o Source #

Type class for types which can be safely cast to LinearGradientNode, for instance with toLinearGradientNode.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf LinearGradientNode o) => IsLinearGradientNode o Source # 
Instance details

Defined in GI.Gsk.Objects.LinearGradientNode

toLinearGradientNode :: (MonadIO m, IsLinearGradientNode o) => o -> m LinearGradientNode Source #

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

Methods

Overloaded methods

getNColorStops

linearGradientNodeGetNColorStops Source #

Arguments

:: (HasCallStack, MonadIO m, IsLinearGradientNode a) 
=> a

node: a RenderNode for a linear gradient

-> m Word64

Returns: the number of color stops

Retrieves the number of color stops in the gradient.

new

linearGradientNodeNew 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 ColorStop defining the gradient

-> m LinearGradientNode

Returns: A new RenderNode

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

peekColorStops

linearGradientNodePeekColorStops Source #

Arguments

:: (HasCallStack, MonadIO m, IsLinearGradientNode a) 
=> a

node: a RenderNode for a linear gradient

-> m [ColorStop]

Returns: the color stops in the gradient

Retrievs the color stops in the gradient.

peekEnd

linearGradientNodePeekEnd Source #

Arguments

:: (HasCallStack, MonadIO m, IsLinearGradientNode a) 
=> a

node: a RenderNode for a linear gradient

-> m Point

Returns: the final point

Retrieves the final point of the linear gradient.

peekStart

linearGradientNodePeekStart Source #

Arguments

:: (HasCallStack, MonadIO m, IsLinearGradientNode a) 
=> a

node: a RenderNode for a linear gradient

-> m Point

Returns: the initial point

Retrieves the initial point of the linear gradient.