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-axis values.
The minimum, default, and maximum values are in un-normalized, user scales.
<note>Note: at present, the only flag defined for flags
is
HB_OT_VAR_AXIS_FLAG_HIDDEN
.</note>
Since: 2.2.0
Synopsis
- newtype OtVarAxisInfoT = OtVarAxisInfoT (ManagedPtr OtVarAxisInfoT)
- newZeroOtVarAxisInfoT :: MonadIO m => m OtVarAxisInfoT
- getOtVarAxisInfoTAxisIndex :: MonadIO m => OtVarAxisInfoT -> m Word32
- setOtVarAxisInfoTAxisIndex :: MonadIO m => OtVarAxisInfoT -> Word32 -> m ()
- getOtVarAxisInfoTDefaultValue :: MonadIO m => OtVarAxisInfoT -> m Float
- setOtVarAxisInfoTDefaultValue :: MonadIO m => OtVarAxisInfoT -> Float -> m ()
- getOtVarAxisInfoTFlags :: MonadIO m => OtVarAxisInfoT -> m [OtVarAxisFlagsT]
- setOtVarAxisInfoTFlags :: MonadIO m => OtVarAxisInfoT -> [OtVarAxisFlagsT] -> m ()
- getOtVarAxisInfoTMaxValue :: MonadIO m => OtVarAxisInfoT -> m Float
- setOtVarAxisInfoTMaxValue :: MonadIO m => OtVarAxisInfoT -> Float -> m ()
- getOtVarAxisInfoTMinValue :: MonadIO m => OtVarAxisInfoT -> m Float
- setOtVarAxisInfoTMinValue :: MonadIO m => OtVarAxisInfoT -> Float -> m ()
- getOtVarAxisInfoTNameId :: MonadIO m => OtVarAxisInfoT -> m Word32
- setOtVarAxisInfoTNameId :: MonadIO m => OtVarAxisInfoT -> Word32 -> m ()
- getOtVarAxisInfoTTag :: MonadIO m => OtVarAxisInfoT -> m Word32
- setOtVarAxisInfoTTag :: MonadIO m => OtVarAxisInfoT -> Word32 -> m ()
Exported types
newtype OtVarAxisInfoT Source #
Memory-managed wrapper type.
Instances
Eq OtVarAxisInfoT Source # | |
Defined in GI.HarfBuzz.Structs.OtVarAxisInfoT (==) :: OtVarAxisInfoT -> OtVarAxisInfoT -> Bool # (/=) :: OtVarAxisInfoT -> OtVarAxisInfoT -> Bool # | |
BoxedPtr OtVarAxisInfoT Source # | |
Defined in GI.HarfBuzz.Structs.OtVarAxisInfoT boxedPtrCopy :: OtVarAxisInfoT -> IO OtVarAxisInfoT # boxedPtrFree :: OtVarAxisInfoT -> IO () # | |
CallocPtr OtVarAxisInfoT Source # | |
Defined in GI.HarfBuzz.Structs.OtVarAxisInfoT boxedPtrCalloc :: IO (Ptr OtVarAxisInfoT) # | |
ManagedPtrNewtype OtVarAxisInfoT Source # | |
Defined in GI.HarfBuzz.Structs.OtVarAxisInfoT | |
tag ~ 'AttrSet => Constructible OtVarAxisInfoT tag Source # | |
Defined in GI.HarfBuzz.Structs.OtVarAxisInfoT new :: MonadIO m => (ManagedPtr OtVarAxisInfoT -> OtVarAxisInfoT) -> [AttrOp OtVarAxisInfoT tag] -> m OtVarAxisInfoT # |
newZeroOtVarAxisInfoT :: MonadIO m => m OtVarAxisInfoT Source #
Construct a OtVarAxisInfoT
struct initialized to zero.
Methods
Properties
axisIndex
Index of the axis in the variation-axis array
getOtVarAxisInfoTAxisIndex :: MonadIO m => OtVarAxisInfoT -> m Word32 Source #
Get the value of the “axis_index
” field.
When overloading is enabled, this is equivalent to
get
otVarAxisInfoT #axisIndex
setOtVarAxisInfoTAxisIndex :: MonadIO m => OtVarAxisInfoT -> Word32 -> m () Source #
Set the value of the “axis_index
” field.
When overloading is enabled, this is equivalent to
set
otVarAxisInfoT [ #axisIndex:=
value ]
defaultValue
The position on the variation axis corresponding to the font's defaults
getOtVarAxisInfoTDefaultValue :: MonadIO m => OtVarAxisInfoT -> m Float Source #
Get the value of the “default_value
” field.
When overloading is enabled, this is equivalent to
get
otVarAxisInfoT #defaultValue
setOtVarAxisInfoTDefaultValue :: MonadIO m => OtVarAxisInfoT -> Float -> m () Source #
Set the value of the “default_value
” field.
When overloading is enabled, this is equivalent to
set
otVarAxisInfoT [ #defaultValue:=
value ]
flags
The OtVarAxisFlagsT
flags for the axis
getOtVarAxisInfoTFlags :: MonadIO m => OtVarAxisInfoT -> m [OtVarAxisFlagsT] Source #
Get the value of the “flags
” field.
When overloading is enabled, this is equivalent to
get
otVarAxisInfoT #flags
setOtVarAxisInfoTFlags :: MonadIO m => OtVarAxisInfoT -> [OtVarAxisFlagsT] -> m () Source #
Set the value of the “flags
” field.
When overloading is enabled, this is equivalent to
set
otVarAxisInfoT [ #flags:=
value ]
maxValue
The maximum value on the variation axis that the font covers
getOtVarAxisInfoTMaxValue :: MonadIO m => OtVarAxisInfoT -> m Float Source #
Get the value of the “max_value
” field.
When overloading is enabled, this is equivalent to
get
otVarAxisInfoT #maxValue
setOtVarAxisInfoTMaxValue :: MonadIO m => OtVarAxisInfoT -> Float -> m () Source #
Set the value of the “max_value
” field.
When overloading is enabled, this is equivalent to
set
otVarAxisInfoT [ #maxValue:=
value ]
minValue
The mininum value on the variation axis that the font covers
getOtVarAxisInfoTMinValue :: MonadIO m => OtVarAxisInfoT -> m Float Source #
Get the value of the “min_value
” field.
When overloading is enabled, this is equivalent to
get
otVarAxisInfoT #minValue
setOtVarAxisInfoTMinValue :: MonadIO m => OtVarAxisInfoT -> Float -> m () Source #
Set the value of the “min_value
” field.
When overloading is enabled, this is equivalent to
set
otVarAxisInfoT [ #minValue:=
value ]
nameId
The name
table Name ID that provides display names for the axis
getOtVarAxisInfoTNameId :: MonadIO m => OtVarAxisInfoT -> m Word32 Source #
Get the value of the “name_id
” field.
When overloading is enabled, this is equivalent to
get
otVarAxisInfoT #nameId
setOtVarAxisInfoTNameId :: MonadIO m => OtVarAxisInfoT -> Word32 -> m () Source #
Set the value of the “name_id
” field.
When overloading is enabled, this is equivalent to
set
otVarAxisInfoT [ #nameId:=
value ]
tag
The hb_tag_t
tag identifying the design variation of the axis
getOtVarAxisInfoTTag :: MonadIO m => OtVarAxisInfoT -> m Word32 Source #
Get the value of the “tag
” field.
When overloading is enabled, this is equivalent to
get
otVarAxisInfoT #tag
setOtVarAxisInfoTTag :: MonadIO m => OtVarAxisInfoT -> Word32 -> m () Source #
Set the value of the “tag
” field.
When overloading is enabled, this is equivalent to
set
otVarAxisInfoT [ #tag:=
value ]