/usr/share/doc/libghc-x11-doc/html/Graphics-X11-Xlib.html is in libghc-x11-doc 1.5.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Graphics.X11.Xlib</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-X11-Xlib.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-X11-Xlib.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">X11-1.5.0.1: A binding to the X11 graphics library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>libraries@haskell.org</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">Graphics.X11.Xlib</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Conventions
</a></li><li><a href="#g:2">Types
</a></li><li><a href="#g:3">X11 library functions
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A collection of FFI declarations for interfacing with Xlib.
</p><p>The library aims to provide a direct translation of the X
binding into Haskell so the most important documentation you
should read is <em>The Xlib Programming Manual</em>, available online at
<a href="http://tronche.com/gui/x/xlib/">http://tronche.com/gui/x/xlib/</a>. Let me say that again because
it is very important. Get hold of this documentation and read it:
it tells you almost everything you need to know to use this library.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short">module <a href="Graphics-X11-Types.html">Graphics.X11.Types</a></li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Display">Display</a> = <a href="#v:Display">Display</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="Graphics-X11-Xlib.html#t:Display">Display</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:Screen">Screen</a> </li><li class="src short"><span class="keyword">data</span> <a href="#t:Visual">Visual</a> </li><li class="src short"><span class="keyword">data</span> <a href="#t:GC">GC</a> </li><li class="src short"><span class="keyword">data</span> <a href="#t:SetWindowAttributes">SetWindowAttributes</a> </li><li class="src short"><span class="keyword">data</span> <a href="#t:Point">Point</a> = <a href="#v:Point">Point</a> {<ul class="subs"><li><a href="#v:pt_x">pt_x</a> :: !<a href="Graphics-X11-Xlib.html#t:Position">Position</a></li><li><a href="#v:pt_y">pt_y</a> :: !<a href="Graphics-X11-Xlib.html#t:Position">Position</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:Rectangle">Rectangle</a> = <a href="#v:Rectangle">Rectangle</a> {<ul class="subs"><li><a href="#v:rect_x">rect_x</a> :: !<a href="Graphics-X11-Xlib.html#t:Position">Position</a></li><li><a href="#v:rect_y">rect_y</a> :: !<a href="Graphics-X11-Xlib.html#t:Position">Position</a></li><li><a href="#v:rect_width">rect_width</a> :: !<a href="Graphics-X11-Xlib.html#t:Dimension">Dimension</a></li><li><a href="#v:rect_height">rect_height</a> :: !<a href="Graphics-X11-Xlib.html#t:Dimension">Dimension</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:Arc">Arc</a> = <a href="#v:Arc">Arc</a> {<ul class="subs"><li><a href="#v:arc_x">arc_x</a> :: <a href="Graphics-X11-Xlib.html#t:Position">Position</a></li><li><a href="#v:arc_y">arc_y</a> :: <a href="Graphics-X11-Xlib.html#t:Position">Position</a></li><li><a href="#v:arc_width">arc_width</a> :: <a href="Graphics-X11-Xlib.html#t:Dimension">Dimension</a></li><li><a href="#v:arc_height">arc_height</a> :: <a href="Graphics-X11-Xlib.html#t:Dimension">Dimension</a></li><li><a href="#v:arc_angle1">arc_angle1</a> :: <a href="Graphics-X11-Xlib.html#t:Angle">Angle</a></li><li><a href="#v:arc_angle2">arc_angle2</a> :: <a href="Graphics-X11-Xlib.html#t:Angle">Angle</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:Segment">Segment</a> = <a href="#v:Segment">Segment</a> {<ul class="subs"><li><a href="#v:seg_x1">seg_x1</a> :: <a href="Graphics-X11-Xlib.html#t:Position">Position</a></li><li><a href="#v:seg_y1">seg_y1</a> :: <a href="Graphics-X11-Xlib.html#t:Position">Position</a></li><li><a href="#v:seg_x2">seg_x2</a> :: <a href="Graphics-X11-Xlib.html#t:Position">Position</a></li><li><a href="#v:seg_y2">seg_y2</a> :: <a href="Graphics-X11-Xlib.html#t:Position">Position</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:Color">Color</a> = <a href="#v:Color">Color</a> {<ul class="subs"><li><a href="#v:color_pixel">color_pixel</a> :: <a href="Graphics-X11-Xlib.html#t:Pixel">Pixel</a></li><li><a href="#v:color_red">color_red</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a></li><li><a href="#v:color_green">color_green</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a></li><li><a href="#v:color_blue">color_blue</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a></li><li><a href="#v:color_flags">color_flags</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word8">Word8</a></li></ul>}</li><li class="src short"><span class="keyword">type</span> <a href="#t:Pixel">Pixel</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word64">Word64</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Position">Position</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int32">Int32</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Dimension">Dimension</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word32">Word32</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Angle">Angle</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-C-Types.html#t:CInt">CInt</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:ScreenNumber">ScreenNumber</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word32">Word32</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Buffer">Buffer</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-C-Types.html#t:CInt">CInt</a></li><li class="src short">module <a href="Graphics-X11-Xlib-Event.html">Graphics.X11.Xlib.Event</a></li><li class="src short">module <a href="Graphics-X11-Xlib-Display.html">Graphics.X11.Xlib.Display</a></li><li class="src short">module <a href="Graphics-X11-Xlib-Screen.html">Graphics.X11.Xlib.Screen</a></li><li class="src short">module <a href="Graphics-X11-Xlib-Window.html">Graphics.X11.Xlib.Window</a></li><li class="src short">module <a href="Graphics-X11-Xlib-Context.html">Graphics.X11.Xlib.Context</a></li><li class="src short">module <a href="Graphics-X11-Xlib-Color.html">Graphics.X11.Xlib.Color</a></li><li class="src short">module <a href="Graphics-X11-Xlib-Cursor.html">Graphics.X11.Xlib.Cursor</a></li><li class="src short">module <a href="Graphics-X11-Xlib-Font.html">Graphics.X11.Xlib.Font</a></li><li class="src short">module <a href="Graphics-X11-Xlib-Atom.html">Graphics.X11.Xlib.Atom</a></li><li class="src short">module <a href="Graphics-X11-Xlib-Region.html">Graphics.X11.Xlib.Region</a></li><li class="src short">module <a href="Graphics-X11-Xlib-Image.html">Graphics.X11.Xlib.Image</a></li><li class="src short">module <a href="Graphics-X11-Xlib-Misc.html">Graphics.X11.Xlib.Misc</a></li></ul></div><div id="interface"><h1 id="g:1">Conventions
</h1><div class="doc"><p>In translating the library, we had to change names to conform with
Haskell's lexical syntax: function names and names of constants must start
with a lowercase letter; type names must start with an uppercase letter.
The case of the remaining letters is unchanged.
</p><p>In addition, we chose to take advantage of Haskell's module system to
allow us to drop common prefixes (<code>X</code>, <code>XA_</code>, etc.) attached to X11
identifiers.
</p><p>We named enumeration types so that function types would be easier
to understand. For example, we added <code><a href="Graphics-X11-Types.html#t:Status">Status</a></code>, <code><a href="Graphics-X11-Types.html#t:WindowClass">WindowClass</a></code>, etc.
Note that the types are synonyms for <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></code> so no extra typesafety was
obtained.
</p><p>We consistently raise exceptions when a function returns an error code.
In practice, this only affects the following functions because most Xlib
functions do not return error codes: <code><a href="Graphics-X11-Xlib-Color.html#v:allocColor">allocColor</a></code>, <code><a href="Graphics-X11-Xlib-Color.html#v:allocNamedColor">allocNamedColor</a></code>,
<code><a href="Graphics-X11-Xlib-Misc.html#v:fetchBuffer">fetchBuffer</a></code>, <code><a href="Graphics-X11-Xlib-Misc.html#v:fetchBytes">fetchBytes</a></code>, <code><a href="Graphics-X11-Xlib-Font.html#v:fontFromGC">fontFromGC</a></code>, <code><a href="Graphics-X11-Xlib-Misc.html#v:getGeometry">getGeometry</a></code>, <code><a href="Graphics-X11-Xlib-Misc.html#v:getIconName">getIconName</a></code>,
<code><a href="Graphics-X11-Xlib-Window.html#v:iconifyWindow">iconifyWindow</a></code>, <code><a href="Graphics-X11-Xlib-Font.html#v:loadQueryFont">loadQueryFont</a></code>, <code><a href="Graphics-X11-Xlib-Color.html#v:lookupColor">lookupColor</a></code>, <code><a href="Graphics-X11-Xlib-Display.html#v:openDisplay">openDisplay</a></code>,
<code><a href="Graphics-X11-Xlib-Color.html#v:parseColor">parseColor</a></code>, <code><a href="Graphics-X11-Xlib-Misc.html#v:queryBestCursor">queryBestCursor</a></code>, <code><a href="Graphics-X11-Xlib-Misc.html#v:queryBestSize">queryBestSize</a></code>, <code><a href="Graphics-X11-Xlib-Misc.html#v:queryBestStipple">queryBestStipple</a></code>,
<code><a href="Graphics-X11-Xlib-Misc.html#v:queryBestTile">queryBestTile</a></code>, <code><a href="Graphics-X11-Xlib-Misc.html#v:rotateBuffers">rotateBuffers</a></code>, <code><a href="Graphics-X11-Xlib-Event.html#v:selectInput">selectInput</a></code>, <code><a href="Graphics-X11-Xlib-Misc.html#v:storeBuffer">storeBuffer</a></code>,
<code><a href="Graphics-X11-Xlib-Misc.html#v:storeBytes">storeBytes</a></code>, <code><a href="Graphics-X11-Xlib-Window.html#v:withdrawWindow">withdrawWindow</a></code>.
</p></div><h1 id="g:2">Types
</h1><div class="top"><p class="src">module <a href="Graphics-X11-Types.html">Graphics.X11.Types</a></p></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:Display" class="def">Display</a> <a href="src/Graphics-X11-Xlib-Types.html#Display" class="link">Source</a></p><div class="doc"><p>pointer to an X11 <code>Display</code> structure
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Display" class="def">Display</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="Graphics-X11-Xlib.html#t:Display">Display</a>)</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Display" class="caption collapser" onclick="toggleSection('i:Display')">Instances</p><div id="section.i:Display" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-X11-Xlib.html#t:Display">Display</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Data.html#t:Data">Data</a> <a href="Graphics-X11-Xlib.html#t:Display">Display</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-X11-Xlib.html#t:Display">Display</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-X11-Xlib.html#t:Display">Display</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Graphics-X11-Xlib.html#t:Display">Display</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Screen" class="def">Screen</a> <a href="src/Graphics-X11-Xlib-Types.html#Screen" class="link">Source</a></p><div class="doc"><p>pointer to an X11 <code>Screen</code> structure
</p></div><div class="subs instances"><p id="control.i:Screen" class="caption collapser" onclick="toggleSection('i:Screen')">Instances</p><div id="section.i:Screen" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-X11-Xlib.html#t:Screen">Screen</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Data.html#t:Data">Data</a> <a href="Graphics-X11-Xlib.html#t:Screen">Screen</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-X11-Xlib.html#t:Screen">Screen</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-X11-Xlib.html#t:Screen">Screen</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Graphics-X11-Xlib.html#t:Screen">Screen</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Visual" class="def">Visual</a> <a href="src/Graphics-X11-Xlib-Types.html#Visual" class="link">Source</a></p><div class="doc"><p>pointer to an X11 <code>Visual</code> structure
</p></div><div class="subs instances"><p id="control.i:Visual" class="caption collapser" onclick="toggleSection('i:Visual')">Instances</p><div id="section.i:Visual" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-X11-Xlib.html#t:Visual">Visual</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Data.html#t:Data">Data</a> <a href="Graphics-X11-Xlib.html#t:Visual">Visual</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-X11-Xlib.html#t:Visual">Visual</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-X11-Xlib.html#t:Visual">Visual</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Graphics-X11-Xlib.html#t:Visual">Visual</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:GC" class="def">GC</a> <a href="src/Graphics-X11-Xlib-Types.html#GC" class="link">Source</a></p><div class="doc"><p>pointer to an X11 <code>GC</code> structure
</p></div><div class="subs instances"><p id="control.i:GC" class="caption collapser" onclick="toggleSection('i:GC')">Instances</p><div id="section.i:GC" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-X11-Xlib.html#t:GC">GC</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Data.html#t:Data">Data</a> <a href="Graphics-X11-Xlib.html#t:GC">GC</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-X11-Xlib.html#t:GC">GC</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-X11-Xlib.html#t:GC">GC</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Graphics-X11-Xlib.html#t:GC">GC</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:SetWindowAttributes" class="def">SetWindowAttributes</a> <a href="src/Graphics-X11-Xlib-Types.html#SetWindowAttributes" class="link">Source</a></p><div class="doc"><p>pointer to an X11 <code>XSetWindowAttributes</code> structure
</p></div><div class="subs instances"><p id="control.i:SetWindowAttributes" class="caption collapser" onclick="toggleSection('i:SetWindowAttributes')">Instances</p><div id="section.i:SetWindowAttributes" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-X11-Xlib.html#t:SetWindowAttributes">SetWindowAttributes</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Data.html#t:Data">Data</a> <a href="Graphics-X11-Xlib.html#t:SetWindowAttributes">SetWindowAttributes</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-X11-Xlib.html#t:SetWindowAttributes">SetWindowAttributes</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-X11-Xlib.html#t:SetWindowAttributes">SetWindowAttributes</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Graphics-X11-Xlib.html#t:SetWindowAttributes">SetWindowAttributes</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Point" class="def">Point</a> <a href="src/Graphics-X11-Xlib-Types.html#Point" class="link">Source</a></p><div class="doc"><p>counterpart of an X11 <code>XPoint</code> structure
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Point" class="def">Point</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:pt_x" class="def">pt_x</a> :: !<a href="Graphics-X11-Xlib.html#t:Position">Position</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:pt_y" class="def">pt_y</a> :: !<a href="Graphics-X11-Xlib.html#t:Position">Position</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Point" class="caption collapser" onclick="toggleSection('i:Point')">Instances</p><div id="section.i:Point" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-X11-Xlib.html#t:Point">Point</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Data.html#t:Data">Data</a> <a href="Graphics-X11-Xlib.html#t:Point">Point</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-X11-Xlib.html#t:Point">Point</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Graphics-X11-Xlib.html#t:Point">Point</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> <a href="Graphics-X11-Xlib.html#t:Point">Point</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Rectangle" class="def">Rectangle</a> <a href="src/Graphics-X11-Xlib-Types.html#Rectangle" class="link">Source</a></p><div class="doc"><p>counterpart of an X11 <code>XRectangle</code> structure
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Rectangle" class="def">Rectangle</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:rect_x" class="def">rect_x</a> :: !<a href="Graphics-X11-Xlib.html#t:Position">Position</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:rect_y" class="def">rect_y</a> :: !<a href="Graphics-X11-Xlib.html#t:Position">Position</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:rect_width" class="def">rect_width</a> :: !<a href="Graphics-X11-Xlib.html#t:Dimension">Dimension</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:rect_height" class="def">rect_height</a> :: !<a href="Graphics-X11-Xlib.html#t:Dimension">Dimension</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Rectangle" class="caption collapser" onclick="toggleSection('i:Rectangle')">Instances</p><div id="section.i:Rectangle" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-X11-Xlib.html#t:Rectangle">Rectangle</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Data.html#t:Data">Data</a> <a href="Graphics-X11-Xlib.html#t:Rectangle">Rectangle</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> <a href="Graphics-X11-Xlib.html#t:Rectangle">Rectangle</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-X11-Xlib.html#t:Rectangle">Rectangle</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Graphics-X11-Xlib.html#t:Rectangle">Rectangle</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> <a href="Graphics-X11-Xlib.html#t:Rectangle">Rectangle</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Arc" class="def">Arc</a> <a href="src/Graphics-X11-Xlib-Types.html#Arc" class="link">Source</a></p><div class="doc"><p>counterpart of an X11 <code>XArc</code> structure
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Arc" class="def">Arc</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:arc_x" class="def">arc_x</a> :: <a href="Graphics-X11-Xlib.html#t:Position">Position</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:arc_y" class="def">arc_y</a> :: <a href="Graphics-X11-Xlib.html#t:Position">Position</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:arc_width" class="def">arc_width</a> :: <a href="Graphics-X11-Xlib.html#t:Dimension">Dimension</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:arc_height" class="def">arc_height</a> :: <a href="Graphics-X11-Xlib.html#t:Dimension">Dimension</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:arc_angle1" class="def">arc_angle1</a> :: <a href="Graphics-X11-Xlib.html#t:Angle">Angle</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:arc_angle2" class="def">arc_angle2</a> :: <a href="Graphics-X11-Xlib.html#t:Angle">Angle</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Arc" class="caption collapser" onclick="toggleSection('i:Arc')">Instances</p><div id="section.i:Arc" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-X11-Xlib.html#t:Arc">Arc</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-X11-Xlib.html#t:Arc">Arc</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Graphics-X11-Xlib.html#t:Arc">Arc</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> <a href="Graphics-X11-Xlib.html#t:Arc">Arc</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Segment" class="def">Segment</a> <a href="src/Graphics-X11-Xlib-Types.html#Segment" class="link">Source</a></p><div class="doc"><p>counterpart of an X11 <code>XSegment</code> structure
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Segment" class="def">Segment</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:seg_x1" class="def">seg_x1</a> :: <a href="Graphics-X11-Xlib.html#t:Position">Position</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:seg_y1" class="def">seg_y1</a> :: <a href="Graphics-X11-Xlib.html#t:Position">Position</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:seg_x2" class="def">seg_x2</a> :: <a href="Graphics-X11-Xlib.html#t:Position">Position</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:seg_y2" class="def">seg_y2</a> :: <a href="Graphics-X11-Xlib.html#t:Position">Position</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Segment" class="caption collapser" onclick="toggleSection('i:Segment')">Instances</p><div id="section.i:Segment" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-X11-Xlib.html#t:Segment">Segment</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Data.html#t:Data">Data</a> <a href="Graphics-X11-Xlib.html#t:Segment">Segment</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-X11-Xlib.html#t:Segment">Segment</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Graphics-X11-Xlib.html#t:Segment">Segment</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> <a href="Graphics-X11-Xlib.html#t:Segment">Segment</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Color" class="def">Color</a> <a href="src/Graphics-X11-Xlib-Types.html#Color" class="link">Source</a></p><div class="doc"><p>counterpart of an X11 <code>XColor</code> structure
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Color" class="def">Color</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:color_pixel" class="def">color_pixel</a> :: <a href="Graphics-X11-Xlib.html#t:Pixel">Pixel</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:color_red" class="def">color_red</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:color_green" class="def">color_green</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:color_blue" class="def">color_blue</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:color_flags" class="def">color_flags</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word8">Word8</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Color" class="caption collapser" onclick="toggleSection('i:Color')">Instances</p><div id="section.i:Color" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-X11-Xlib.html#t:Color">Color</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Data.html#t:Data">Data</a> <a href="Graphics-X11-Xlib.html#t:Color">Color</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-X11-Xlib.html#t:Color">Color</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Graphics-X11-Xlib.html#t:Color">Color</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> <a href="Graphics-X11-Xlib.html#t:Color">Color</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Pixel" class="def">Pixel</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word64">Word64</a><a href="src/Graphics-X11-Xlib-Types.html#Pixel" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Position" class="def">Position</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int32">Int32</a><a href="src/Graphics-X11-Xlib-Types.html#Position" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Dimension" class="def">Dimension</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word32">Word32</a><a href="src/Graphics-X11-Xlib-Types.html#Dimension" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Angle" class="def">Angle</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-C-Types.html#t:CInt">CInt</a><a href="src/Graphics-X11-Xlib-Types.html#Angle" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:ScreenNumber" class="def">ScreenNumber</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word32">Word32</a><a href="src/Graphics-X11-Xlib-Types.html#ScreenNumber" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Buffer" class="def">Buffer</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-C-Types.html#t:CInt">CInt</a><a href="src/Graphics-X11-Xlib-Types.html#Buffer" class="link">Source</a></p></div><h1 id="g:3">X11 library functions
</h1><div class="top"><p class="src">module <a href="Graphics-X11-Xlib-Event.html">Graphics.X11.Xlib.Event</a></p></div><div class="top"><p class="src">module <a href="Graphics-X11-Xlib-Display.html">Graphics.X11.Xlib.Display</a></p></div><div class="top"><p class="src">module <a href="Graphics-X11-Xlib-Screen.html">Graphics.X11.Xlib.Screen</a></p></div><div class="top"><p class="src">module <a href="Graphics-X11-Xlib-Window.html">Graphics.X11.Xlib.Window</a></p></div><div class="top"><p class="src">module <a href="Graphics-X11-Xlib-Context.html">Graphics.X11.Xlib.Context</a></p></div><div class="top"><p class="src">module <a href="Graphics-X11-Xlib-Color.html">Graphics.X11.Xlib.Color</a></p></div><div class="top"><p class="src">module <a href="Graphics-X11-Xlib-Cursor.html">Graphics.X11.Xlib.Cursor</a></p></div><div class="top"><p class="src">module <a href="Graphics-X11-Xlib-Font.html">Graphics.X11.Xlib.Font</a></p></div><div class="top"><p class="src">module <a href="Graphics-X11-Xlib-Atom.html">Graphics.X11.Xlib.Atom</a></p></div><div class="top"><p class="src">module <a href="Graphics-X11-Xlib-Region.html">Graphics.X11.Xlib.Region</a></p></div><div class="top"><p class="src">module <a href="Graphics-X11-Xlib-Image.html">Graphics.X11.Xlib.Image</a></p></div><div class="top"><p class="src">module <a href="Graphics-X11-Xlib-Misc.html">Graphics.X11.Xlib.Misc</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>
|