gi-harfbuzz-0.0.9: HarfBuzz bindings

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

GI.HarfBuzz.Structs.OtVarAxisInfoT

Contents

- Exported types
- Methods
- Properties
  - axisIndex
  - defaultValue
  - flags
  - maxValue
  - minValue
  - nameId
  - tag

Description

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.

Constructors

OtVarAxisInfoT (ManagedPtr OtVarAxisInfoT) |

#### Instances

Instances details

Eq OtVarAxisInfoT Source # |
Instance details Defined in GI.HarfBuzz.Structs.OtVarAxisInfoT Methods (==) :: OtVarAxisInfoT -> OtVarAxisInfoT -> Bool Source # (/=) :: OtVarAxisInfoT -> OtVarAxisInfoT -> Bool Source #
GBoxed OtVarAxisInfoT Source # |
Instance details Defined in GI.HarfBuzz.Structs.OtVarAxisInfoT
ManagedPtrNewtype OtVarAxisInfoT Source # |
Instance details Defined in GI.HarfBuzz.Structs.OtVarAxisInfoT Methods toManagedPtr :: OtVarAxisInfoT -> ManagedPtr OtVarAxisInfoT Source #
TypedObject OtVarAxisInfoT Source # |
Instance details Defined in GI.HarfBuzz.Structs.OtVarAxisInfoT Methods glibType :: IO GType Source #
HasParentTypes OtVarAxisInfoT Source # |
Instance details Defined in GI.HarfBuzz.Structs.OtVarAxisInfoT
tag ~ 'AttrSet => Constructible OtVarAxisInfoT tag Source # |
Instance details Defined in GI.HarfBuzz.Structs.OtVarAxisInfoT Methods new :: MonadIO m => (ManagedPtr OtVarAxisInfoT -> OtVarAxisInfoT) -> [AttrOp OtVarAxisInfoT tag] -> m OtVarAxisInfoT Source #
IsGValue (Maybe OtVarAxisInfoT) Source # | Convert `OtVarAxisInfoT` to and from `GValue`. See `toGValue` and `fromGValue`.
Instance details Defined in GI.HarfBuzz.Structs.OtVarAxisInfoT Methods gvalueGType_ :: IO GType Source # gvalueSet_ :: Ptr GValue -> Maybe OtVarAxisInfoT -> IO () Source # gvalueGet_ :: Ptr GValue -> IO (Maybe OtVarAxisInfoT) Source #
type ParentTypes OtVarAxisInfoT Source # |
Instance details Defined in GI.HarfBuzz.Structs.OtVarAxisInfoT type ParentTypes OtVarAxisInfoT = '[] :: [Type]

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 minimum 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 ]