X11-1.10.1: 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 HaskellNone
LanguageHaskell98

Graphics.X11.Xlib.Font

Description

A collection of FFI declarations for interfacing with Xlib Fonts.

Synopsis

Documentation

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
Eq FontStruct Source # 
Instance details

Defined in Graphics.X11.Xlib.Font

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 #

Ord FontStruct Source # 
Instance details

Defined in Graphics.X11.Xlib.Font

Show FontStruct Source # 
Instance details

Defined in Graphics.X11.Xlib.Font

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().