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 |
Glyph extent values, measured in font units.
Note that height
is negative, in coordinate systems that grow up.
Synopsis
- newtype GlyphExtentsT = GlyphExtentsT (ManagedPtr GlyphExtentsT)
- newZeroGlyphExtentsT :: MonadIO m => m GlyphExtentsT
- getGlyphExtentsTHeight :: MonadIO m => GlyphExtentsT -> m Int32
- setGlyphExtentsTHeight :: MonadIO m => GlyphExtentsT -> Int32 -> m ()
- getGlyphExtentsTWidth :: MonadIO m => GlyphExtentsT -> m Int32
- setGlyphExtentsTWidth :: MonadIO m => GlyphExtentsT -> Int32 -> m ()
- getGlyphExtentsTXBearing :: MonadIO m => GlyphExtentsT -> m Int32
- setGlyphExtentsTXBearing :: MonadIO m => GlyphExtentsT -> Int32 -> m ()
- getGlyphExtentsTYBearing :: MonadIO m => GlyphExtentsT -> m Int32
- setGlyphExtentsTYBearing :: MonadIO m => GlyphExtentsT -> Int32 -> m ()
Exported types
newtype GlyphExtentsT Source #
Memory-managed wrapper type.
Instances
Eq GlyphExtentsT Source # | |
Defined in GI.HarfBuzz.Structs.GlyphExtentsT (==) :: GlyphExtentsT -> GlyphExtentsT -> Bool # (/=) :: GlyphExtentsT -> GlyphExtentsT -> Bool # | |
BoxedPtr GlyphExtentsT Source # | |
Defined in GI.HarfBuzz.Structs.GlyphExtentsT boxedPtrCopy :: GlyphExtentsT -> IO GlyphExtentsT # boxedPtrFree :: GlyphExtentsT -> IO () # | |
CallocPtr GlyphExtentsT Source # | |
Defined in GI.HarfBuzz.Structs.GlyphExtentsT boxedPtrCalloc :: IO (Ptr GlyphExtentsT) # | |
ManagedPtrNewtype GlyphExtentsT Source # | |
Defined in GI.HarfBuzz.Structs.GlyphExtentsT | |
tag ~ 'AttrSet => Constructible GlyphExtentsT tag Source # | |
Defined in GI.HarfBuzz.Structs.GlyphExtentsT new :: MonadIO m => (ManagedPtr GlyphExtentsT -> GlyphExtentsT) -> [AttrOp GlyphExtentsT tag] -> m GlyphExtentsT # |
newZeroGlyphExtentsT :: MonadIO m => m GlyphExtentsT Source #
Construct a GlyphExtentsT
struct initialized to zero.
Methods
Properties
height
Distance from the top extremum of the glyph to the bottom extremum.
getGlyphExtentsTHeight :: MonadIO m => GlyphExtentsT -> m Int32 Source #
Get the value of the “height
” field.
When overloading is enabled, this is equivalent to
get
glyphExtentsT #height
setGlyphExtentsTHeight :: MonadIO m => GlyphExtentsT -> Int32 -> m () Source #
Set the value of the “height
” field.
When overloading is enabled, this is equivalent to
set
glyphExtentsT [ #height:=
value ]
width
Distance from the left extremum of the glyph to the right extremum.
getGlyphExtentsTWidth :: MonadIO m => GlyphExtentsT -> m Int32 Source #
Get the value of the “width
” field.
When overloading is enabled, this is equivalent to
get
glyphExtentsT #width
setGlyphExtentsTWidth :: MonadIO m => GlyphExtentsT -> Int32 -> m () Source #
Set the value of the “width
” field.
When overloading is enabled, this is equivalent to
set
glyphExtentsT [ #width:=
value ]
xBearing
Distance from the x-origin to the left extremum of the glyph.
getGlyphExtentsTXBearing :: MonadIO m => GlyphExtentsT -> m Int32 Source #
Get the value of the “x_bearing
” field.
When overloading is enabled, this is equivalent to
get
glyphExtentsT #xBearing
setGlyphExtentsTXBearing :: MonadIO m => GlyphExtentsT -> Int32 -> m () Source #
Set the value of the “x_bearing
” field.
When overloading is enabled, this is equivalent to
set
glyphExtentsT [ #xBearing:=
value ]
yBearing
Distance from the top extremum of the glyph to the y-origin.
getGlyphExtentsTYBearing :: MonadIO m => GlyphExtentsT -> m Int32 Source #
Get the value of the “y_bearing
” field.
When overloading is enabled, this is equivalent to
get
glyphExtentsT #yBearing
setGlyphExtentsTYBearing :: MonadIO m => GlyphExtentsT -> Int32 -> m () Source #
Set the value of the “y_bearing
” field.
When overloading is enabled, this is equivalent to
set
glyphExtentsT [ #yBearing:=
value ]