gi-harfbuzz-0.0.9: 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

newtype ColorStopT Source #

Memory-managed wrapper type.

Constructors

ColorStopT (ManagedPtr ColorStopT) 

Instances

Instances details
Eq ColorStopT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.ColorStopT

GBoxed ColorStopT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.ColorStopT

ManagedPtrNewtype ColorStopT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.ColorStopT

Methods

toManagedPtr :: ColorStopT -> ManagedPtr ColorStopT

TypedObject ColorStopT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.ColorStopT

Methods

glibType :: IO GType

HasParentTypes ColorStopT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.ColorStopT

tag ~ 'AttrSet => Constructible ColorStopT tag Source # 
Instance details

Defined in GI.HarfBuzz.Structs.ColorStopT

Methods

new :: MonadIO m => (ManagedPtr ColorStopT -> ColorStopT) -> [AttrOp ColorStopT tag] -> m ColorStopT

IsGValue (Maybe ColorStopT) Source #

Convert ColorStopT to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.HarfBuzz.Structs.ColorStopT

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe ColorStopT -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe ColorStopT)

type ParentTypes ColorStopT Source # 
Instance details

Defined in GI.HarfBuzz.Structs.ColorStopT

type ParentTypes ColorStopT = '[] :: [Type]

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 ]