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

GI.Gsk.Structs.ColorStop

Description

A color stop in a gradient node.

Synopsis

Exported types

newtype ColorStop Source #

Memory-managed wrapper type.

newZeroColorStop :: MonadIO m => m ColorStop Source #

Construct a ColorStop struct initialized to zero.

Methods

Properties

color

the color at the given offset

getColorStopColor :: MonadIO m => ColorStop -> m RGBA Source #

Get the value of the “color” field. When overloading is enabled, this is equivalent to

get colorStop #color

offset

the offset of the color stop

getColorStopOffset :: MonadIO m => ColorStop -> m Float Source #

Get the value of the “offset” field. When overloading is enabled, this is equivalent to

get colorStop #offset

setColorStopOffset :: MonadIO m => ColorStop -> Float -> m () Source #

Set the value of the “offset” field. When overloading is enabled, this is equivalent to

set colorStop [ #offset := value ]