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 |
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.
Instances
Eq FontExtentsT Source # | |
Defined in GI.HarfBuzz.Structs.FontExtentsT (==) :: FontExtentsT -> FontExtentsT -> Bool # (/=) :: FontExtentsT -> FontExtentsT -> Bool # | |
BoxedPtr FontExtentsT Source # | |
Defined in GI.HarfBuzz.Structs.FontExtentsT boxedPtrCopy :: FontExtentsT -> IO FontExtentsT # boxedPtrFree :: FontExtentsT -> IO () # | |
CallocPtr FontExtentsT Source # | |
Defined in GI.HarfBuzz.Structs.FontExtentsT boxedPtrCalloc :: IO (Ptr FontExtentsT) # | |
ManagedPtrNewtype FontExtentsT Source # | |
Defined in GI.HarfBuzz.Structs.FontExtentsT | |
tag ~ 'AttrSet => Constructible FontExtentsT tag Source # | |
Defined in GI.HarfBuzz.Structs.FontExtentsT 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
set
fontExtentsT [ #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
set
fontExtentsT [ #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
set
fontExtentsT [ #lineGap:=
value ]