| 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.FontExtentsT
Description
Font-wide extent values, measured in font units.
Note that typically ascender is positive and descender
negative, in coordinate systems that grow up.
Synopsis
- newtype FontExtentsT = FontExtentsT (ManagedPtr FontExtentsT)
- newZeroFontExtentsT :: MonadIO m => m FontExtentsT
- getFontExtentsTAscender :: MonadIO m => FontExtentsT -> m Int32
- setFontExtentsTAscender :: MonadIO m => FontExtentsT -> Int32 -> m ()
- getFontExtentsTDescender :: MonadIO m => FontExtentsT -> m Int32
- setFontExtentsTDescender :: MonadIO m => FontExtentsT -> Int32 -> m ()
- getFontExtentsTLineGap :: MonadIO m => FontExtentsT -> m Int32
- setFontExtentsTLineGap :: MonadIO m => FontExtentsT -> Int32 -> m ()
Exported types
newtype FontExtentsT Source #
Memory-managed wrapper type.
Constructors
| FontExtentsT (ManagedPtr FontExtentsT) |
Instances
| Eq FontExtentsT Source # | |
Defined in GI.HarfBuzz.Structs.FontExtentsT | |
| BoxedPtr FontExtentsT Source # | |
Defined in GI.HarfBuzz.Structs.FontExtentsT | |
| CallocPtr FontExtentsT Source # | |
Defined in GI.HarfBuzz.Structs.FontExtentsT Methods boxedPtrCalloc :: IO (Ptr FontExtentsT) | |
| ManagedPtrNewtype FontExtentsT Source # | |
Defined in GI.HarfBuzz.Structs.FontExtentsT Methods toManagedPtr :: FontExtentsT -> ManagedPtr FontExtentsT | |
| tag ~ 'AttrSet => Constructible FontExtentsT tag Source # | |
Defined in GI.HarfBuzz.Structs.FontExtentsT Methods new :: MonadIO m => (ManagedPtr FontExtentsT -> FontExtentsT) -> [AttrOp FontExtentsT tag] -> m FontExtentsT | |
newZeroFontExtentsT :: MonadIO m => m FontExtentsT Source #
Construct a FontExtentsT struct initialized to zero.
Methods
Properties
ascender
The height of typographic ascenders.
getFontExtentsTAscender :: MonadIO m => FontExtentsT -> m Int32 Source #
Get the value of the “ascender” field.
When overloading is enabled, this is equivalent to
get fontExtentsT #ascender
setFontExtentsTAscender :: MonadIO m => FontExtentsT -> Int32 -> m () Source #
Set the value of the “ascender” field.
When overloading is enabled, this is equivalent to
setfontExtentsT [ #ascender:=value ]
descender
The depth of typographic descenders.
getFontExtentsTDescender :: MonadIO m => FontExtentsT -> m Int32 Source #
Get the value of the “descender” field.
When overloading is enabled, this is equivalent to
get fontExtentsT #descender
setFontExtentsTDescender :: MonadIO m => FontExtentsT -> Int32 -> m () Source #
Set the value of the “descender” field.
When overloading is enabled, this is equivalent to
setfontExtentsT [ #descender:=value ]
lineGap
The suggested line-spacing gap.
getFontExtentsTLineGap :: MonadIO m => FontExtentsT -> m Int32 Source #
Get the value of the “line_gap” field.
When overloading is enabled, this is equivalent to
get fontExtentsT #lineGap
setFontExtentsTLineGap :: MonadIO m => FontExtentsT -> Int32 -> m () Source #
Set the value of the “line_gap” field.
When overloading is enabled, this is equivalent to
setfontExtentsT [ #lineGap:=value ]