Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Data type for holding variation data. Registered OpenType variation-axis tags are listed in OpenType Axis Tag Registry.
Since: 1.4.2
Synopsis
- newtype VariationT = VariationT (ManagedPtr VariationT)
- newZeroVariationT :: MonadIO m => m VariationT
- getVariationTTag :: MonadIO m => VariationT -> m Word32
- setVariationTTag :: MonadIO m => VariationT -> Word32 -> m ()
- getVariationTValue :: MonadIO m => VariationT -> m Float
- setVariationTValue :: MonadIO m => VariationT -> Float -> m ()
Exported types
newtype VariationT Source #
Memory-managed wrapper type.
Instances
Eq VariationT Source # | |
Defined in GI.HarfBuzz.Structs.VariationT (==) :: VariationT -> VariationT -> Bool # (/=) :: VariationT -> VariationT -> Bool # | |
BoxedPtr VariationT Source # | |
Defined in GI.HarfBuzz.Structs.VariationT boxedPtrCopy :: VariationT -> IO VariationT # boxedPtrFree :: VariationT -> IO () # | |
CallocPtr VariationT Source # | |
Defined in GI.HarfBuzz.Structs.VariationT boxedPtrCalloc :: IO (Ptr VariationT) # | |
ManagedPtrNewtype VariationT Source # | |
Defined in GI.HarfBuzz.Structs.VariationT | |
tag ~ 'AttrSet => Constructible VariationT tag Source # | |
Defined in GI.HarfBuzz.Structs.VariationT new :: MonadIO m => (ManagedPtr VariationT -> VariationT) -> [AttrOp VariationT tag] -> m VariationT # |
newZeroVariationT :: MonadIO m => m VariationT Source #
Construct a VariationT
struct initialized to zero.
Methods
Properties
tag
The hb_tag_t
tag of the variation-axis name
getVariationTTag :: MonadIO m => VariationT -> m Word32 Source #
Get the value of the “tag
” field.
When overloading is enabled, this is equivalent to
get
variationT #tag
setVariationTTag :: MonadIO m => VariationT -> Word32 -> m () Source #
Set the value of the “tag
” field.
When overloading is enabled, this is equivalent to
set
variationT [ #tag:=
value ]
value
The value of the variation axis
getVariationTValue :: MonadIO m => VariationT -> m Float Source #
Get the value of the “value
” field.
When overloading is enabled, this is equivalent to
get
variationT #value
setVariationTValue :: MonadIO m => VariationT -> Float -> m () Source #
Set the value of the “value
” field.
When overloading is enabled, this is equivalent to
set
variationT [ #value:=
value ]