kb-text-shape
Safe HaskellNone
LanguageGHC2021

KB.Text.Shape.FFI.Handles

Synopsis

Documentation

intHandle :: Coercible h (Ptr a) => h -> Int Source #

newtype Font Source #

An opaque handle to the font data.

Constructors

Font (Ptr Font) 

Instances

Instances details
Storable Font Source # 
Instance details

Defined in KB.Text.Shape.FFI.Handles

Methods

sizeOf :: Font -> Int #

alignment :: Font -> Int #

peekElemOff :: Ptr Font -> Int -> IO Font #

pokeElemOff :: Ptr Font -> Int -> Font -> IO () #

peekByteOff :: Ptr b -> Int -> IO Font #

pokeByteOff :: Ptr b -> Int -> Font -> IO () #

peek :: Ptr Font -> IO Font #

poke :: Ptr Font -> Font -> IO () #

Show Font Source # 
Instance details

Defined in KB.Text.Shape.FFI.Handles

Methods

showsPrec :: Int -> Font -> ShowS #

show :: Font -> String #

showList :: [Font] -> ShowS #

Eq Font Source # 
Instance details

Defined in KB.Text.Shape.FFI.Handles

Methods

(==) :: Font -> Font -> Bool #

(/=) :: Font -> Font -> Bool #

Ord Font Source # 
Instance details

Defined in KB.Text.Shape.FFI.Handles

Methods

compare :: Font -> Font -> Ordering #

(<) :: Font -> Font -> Bool #

(<=) :: Font -> Font -> Bool #

(>) :: Font -> Font -> Bool #

(>=) :: Font -> Font -> Bool #

max :: Font -> Font -> Font #

min :: Font -> Font -> Font #

sizeOfFontData :: Int Source #

Amount of bytes needed to hold the font data structure

Usually you don't have to look inside, but may have to allocate one to get the Font handle.