X11-1.10.2.9: A binding to the X11 graphics library
Copyright(c) Alastair Reid 1999-2003
LicenseBSD-style (see the file libraries/base/LICENSE)
Maintainerlibraries@haskell.org
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell98

Graphics.X11.Xlib.Font

Description

A collection of FFI declarations for interfacing with Xlib Fonts.

Synopsis

Documentation

type Glyph = Word16 Source #

queryFont :: Display -> Font -> IO FontStruct Source #

interface to the X11 library function XQueryFont().

fontFromGC :: Display -> GC -> IO Font Source #

interface to the X11 library function XGetGCValues().

loadQueryFont :: Display -> String -> IO FontStruct Source #

interface to the X11 library function XLoadQueryFont().

freeFont :: Display -> FontStruct -> IO () Source #

interface to the X11 library function XFreeFont().

data FontStruct Source #

pointer to an X11 XFontStruct structure

Instances

Instances details
Data FontStruct Source # 
Instance details

Defined in Graphics.X11.Xlib.Font

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FontStruct -> c FontStruct

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FontStruct

toConstr :: FontStruct -> Constr

dataTypeOf :: FontStruct -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c FontStruct)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FontStruct)

gmapT :: (forall b. Data b => b -> b) -> FontStruct -> FontStruct

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FontStruct -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FontStruct -> r

gmapQ :: (forall d. Data d => d -> u) -> FontStruct -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> FontStruct -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> FontStruct -> m FontStruct

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FontStruct -> m FontStruct

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FontStruct -> m FontStruct

Show FontStruct Source # 
Instance details

Defined in Graphics.X11.Xlib.Font

Methods

showsPrec :: Int -> FontStruct -> ShowS

show :: FontStruct -> String

showList :: [FontStruct] -> ShowS

Eq FontStruct Source # 
Instance details

Defined in Graphics.X11.Xlib.Font

Methods

(==) :: FontStruct -> FontStruct -> Bool

(/=) :: FontStruct -> FontStruct -> Bool

Ord FontStruct Source # 
Instance details

Defined in Graphics.X11.Xlib.Font

type CharStruct = (CInt, CInt, CInt, CInt, CInt) Source #

textExtents :: FontStruct -> String -> (FontDirection, Int32, Int32, CharStruct) Source #

interface to the X11 library function XTextExtents().

textWidth :: FontStruct -> String -> Int32 Source #

interface to the X11 library function XTextWidth().