gi-harfbuzz-0.0.7: HarfBuzz bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.HarfBuzz.Structs.ColorStopT

Description

Information about a color stop on a color line.

Color lines typically have offsets ranging between 0 and 1, but that is not required.

Note: despite color being unpremultiplied here, interpolation in gradients shall happen in premultiplied space. See the OpenType spec COLR section for details.

Since: 7.0.0

Synopsis

Exported types

newZeroColorStopT :: MonadIO m => m ColorStopT Source #

Construct a ColorStopT struct initialized to zero.

Methods

Properties

color

the color, unpremultiplied

getColorStopTColor :: MonadIO m => ColorStopT -> m Word32 Source #

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

get colorStopT #color

setColorStopTColor :: MonadIO m => ColorStopT -> Word32 -> m () Source #

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

set colorStopT [ #color := value ]

isForeground

whether the color is the foreground

getColorStopTIsForeground :: MonadIO m => ColorStopT -> m Int32 Source #

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

get colorStopT #isForeground

setColorStopTIsForeground :: MonadIO m => ColorStopT -> Int32 -> m () Source #

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

set colorStopT [ #isForeground := value ]

offset

the offset of the color stop

getColorStopTOffset :: MonadIO m => ColorStopT -> m Float Source #

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

get colorStopT #offset

setColorStopTOffset :: MonadIO m => ColorStopT -> Float -> m () Source #

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

set colorStopT [ #offset := value ]