<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--Rendered using the Haskell Html Library v0.2--> <HTML ><HEAD ><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" ><TITLE >Graphics.X11.Xlib.Font</TITLE ><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css" ><SCRIPT SRC="haddock-util.js" TYPE="text/javascript" ></SCRIPT ><SCRIPT TYPE="text/javascript" >window.onload = function () {setSynopsis("mini_Graphics-X11-Xlib-Font.html")};</SCRIPT ></HEAD ><BODY ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="topbar" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD ><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" " ></TD ><TD CLASS="title" >X11-1.4.5: A binding to the X11 graphics library</TD ><TD CLASS="topbut" ><A HREF="index.html" >Contents</A ></TD ><TD CLASS="topbut" ><A HREF="doc-index.html" >Index</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="modulebar" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD ><FONT SIZE="6" >Graphics.X11.Xlib.Font</FONT ></TD ><TD ALIGN="right" ><TABLE CLASS="narrow" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="infohead" >Portability</TD ><TD CLASS="infoval" >portable</TD ></TR ><TR ><TD CLASS="infohead" >Stability</TD ><TD CLASS="infoval" >provisional</TD ></TR ><TR ><TD CLASS="infohead" >Maintainer</TD ><TD CLASS="infoval" >libraries@haskell.org</TD ></TR ></TABLE ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Description</TD ></TR ><TR ><TD CLASS="doc" >A collection of FFI declarations for interfacing with Xlib Fonts. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Synopsis</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A HREF="#t%3AGlyph" >Glyph</A > = Word16</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AqueryFont" >queryFont</A > :: <A HREF="Graphics-X11-Xlib-Types.html#t%3ADisplay" >Display</A > -> <A HREF="Graphics-X11-Types.html#t%3AFont" >Font</A > -> IO <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AfontFromGC" >fontFromGC</A > :: <A HREF="Graphics-X11-Xlib-Types.html#t%3ADisplay" >Display</A > -> <A HREF="Graphics-X11-Xlib-Types.html#t%3AGC" >GC</A > -> IO <A HREF="Graphics-X11-Types.html#t%3AFont" >Font</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AloadQueryFont" >loadQueryFont</A > :: <A HREF="Graphics-X11-Xlib-Types.html#t%3ADisplay" >Display</A > -> String -> IO <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AfreeFont" >freeFont</A > :: <A HREF="Graphics-X11-Xlib-Types.html#t%3ADisplay" >Display</A > -> <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A > -> IO ()</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="#t%3AFontStruct" >FontStruct</A > </TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AfontFromFontStruct" >fontFromFontStruct</A > :: <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A > -> <A HREF="Graphics-X11-Types.html#t%3AFont" >Font</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AascentFromFontStruct" >ascentFromFontStruct</A > :: <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A > -> Int32</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AdescentFromFontStruct" >descentFromFontStruct</A > :: <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A > -> Int32</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A HREF="#t%3ACharStruct" >CharStruct</A > = (CInt, CInt, CInt, CInt, CInt)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtextExtents" >textExtents</A > :: <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A > -> String -> (<A HREF="Graphics-X11-Types.html#t%3AFontDirection" >FontDirection</A >, Int32, Int32, <A HREF="Graphics-X11-Xlib-Font.html#t%3ACharStruct" >CharStruct</A >)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtextWidth" >textWidth</A > :: <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A > -> String -> Int32</TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Documentation</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t%3AGlyph" ></A ><B >Glyph</B > = Word16</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v%3AqueryFont" ></A ><B >queryFont</B > :: <A HREF="Graphics-X11-Xlib-Types.html#t%3ADisplay" >Display</A > -> <A HREF="Graphics-X11-Types.html#t%3AFont" >Font</A > -> IO <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A ></TD ></TR ><TR ><TD CLASS="doc" >interface to the X11 library function <TT >XQueryFont()</TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v%3AfontFromGC" ></A ><B >fontFromGC</B > :: <A HREF="Graphics-X11-Xlib-Types.html#t%3ADisplay" >Display</A > -> <A HREF="Graphics-X11-Xlib-Types.html#t%3AGC" >GC</A > -> IO <A HREF="Graphics-X11-Types.html#t%3AFont" >Font</A ></TD ></TR ><TR ><TD CLASS="doc" >interface to the X11 library function <TT >XGetGCValues()</TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v%3AloadQueryFont" ></A ><B >loadQueryFont</B > :: <A HREF="Graphics-X11-Xlib-Types.html#t%3ADisplay" >Display</A > -> String -> IO <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A ></TD ></TR ><TR ><TD CLASS="doc" >interface to the X11 library function <TT >XLoadQueryFont()</TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v%3AfreeFont" ></A ><B >freeFont</B > :: <A HREF="Graphics-X11-Xlib-Types.html#t%3ADisplay" >Display</A > -> <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A > -> IO ()</TD ></TR ><TR ><TD CLASS="doc" >interface to the X11 library function <TT >XFreeFont()</TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t%3AFontStruct" ></A ><B >FontStruct</B > </TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="ndoc" >pointer to an X11 <TT >XFontStruct</TT > structure </TD ></TR ><TR ><TD CLASS="section4" ><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:FontStruct')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:FontStruct" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" >Eq <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A ></TD ></TR ><TR ><TD CLASS="decl" >Data <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A ></TD ></TR ><TR ><TD CLASS="decl" >Ord <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A ></TD ></TR ><TR ><TD CLASS="decl" >Show <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A ></TD ></TR ><TR ><TD CLASS="decl" >Typeable <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v%3AfontFromFontStruct" ></A ><B >fontFromFontStruct</B > :: <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A > -> <A HREF="Graphics-X11-Types.html#t%3AFont" >Font</A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v%3AascentFromFontStruct" ></A ><B >ascentFromFontStruct</B > :: <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A > -> Int32</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v%3AdescentFromFontStruct" ></A ><B >descentFromFontStruct</B > :: <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A > -> Int32</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t%3ACharStruct" ></A ><B >CharStruct</B > = (CInt, CInt, CInt, CInt, CInt)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v%3AtextExtents" ></A ><B >textExtents</B > :: <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A > -> String -> (<A HREF="Graphics-X11-Types.html#t%3AFontDirection" >FontDirection</A >, Int32, Int32, <A HREF="Graphics-X11-Xlib-Font.html#t%3ACharStruct" >CharStruct</A >)</TD ></TR ><TR ><TD CLASS="doc" >interface to the X11 library function <TT >XTextExtents()</TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v%3AtextWidth" ></A ><B >textWidth</B > :: <A HREF="Graphics-X11-Xlib-Font.html#t%3AFontStruct" >FontStruct</A > -> String -> Int32</TD ></TR ><TR ><TD CLASS="doc" >interface to the X11 library function <TT >XTextWidth()</TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="botbar" >Produced by <A HREF="http://www.haskell.org/haddock/" >Haddock</A > version 2.4.1</TD ></TR ></TABLE ></BODY ></HTML >