Copyright | (c) Alastair Reid 1999-2003 |
---|---|
License | BSD-style (see the file libraries/base/LICENSE) |
Maintainer | libraries@haskell.org |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
A collection of FFI declarations for interfacing with Xlib Fonts.
Synopsis
- type Glyph = Word16
- queryFont :: Display -> Font -> IO FontStruct
- fontFromGC :: Display -> GC -> IO Font
- loadQueryFont :: Display -> String -> IO FontStruct
- freeFont :: Display -> FontStruct -> IO ()
- data FontStruct
- fontFromFontStruct :: FontStruct -> Font
- ascentFromFontStruct :: FontStruct -> Int32
- descentFromFontStruct :: FontStruct -> Int32
- minBoundsFromFontStruct :: FontStruct -> CharStruct
- maxBoundsFromFontStruct :: FontStruct -> CharStruct
- type CharStruct = (CInt, CInt, CInt, CInt, CInt)
- textExtents :: FontStruct -> String -> (FontDirection, Int32, Int32, CharStruct)
- textWidth :: FontStruct -> String -> Int32
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
fontFromFontStruct :: FontStruct -> Font Source #
textExtents :: FontStruct -> String -> (FontDirection, Int32, Int32, CharStruct) Source #
interface to the X11 library function XTextExtents()
.