/usr/share/doc/libghc-gtk3-doc/html/Graphics-UI-Gtk-Gdk-Gdk.html is in libghc-gtk3-doc 0.14.8-1build1.
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 47 48 49 50 51 52 53 54 55 | <!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.UI.Gtk.Gdk.Gdk</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-UI-Gtk-Gdk-Gdk.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-Gdk-Gdk.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">gtk3-0.14.8: Binding to the Gtk+ 3 graphical user interface library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Maintainer</th><td>gtk2hs-users@lists.sourceforge.net</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable (depends on GHC)</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Graphics.UI.Gtk.Gdk.Gdk</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Gdk general functions.</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"><a href="#v:flush">flush</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:screenWidth">screenWidth</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:screenHeight">screenHeight</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:screenWidthMM">screenWidthMM</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:screenHeightMM">screenHeightMM</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:GrabStatus">GrabStatus</a><ul class="subs"><li>= <a href="#v:GrabSuccess">GrabSuccess</a></li><li>| <a href="#v:GrabAlreadyGrabbed">GrabAlreadyGrabbed</a></li><li>| <a href="#v:GrabInvalidTime">GrabInvalidTime</a></li><li>| <a href="#v:GrabNotViewable">GrabNotViewable</a></li><li>| <a href="#v:GrabFrozen">GrabFrozen</a></li><li>| <a href="#v:GrabFailed">GrabFailed</a></li></ul></li><li class="src short"><a href="#v:pointerGrab">pointerGrab</a> :: (<a href="Graphics-UI-Gtk-Gdk-DrawWindow.html#t:DrawWindowClass">DrawWindowClass</a> window, <a href="Graphics-UI-Gtk-Gdk-DrawWindow.html#t:DrawWindowClass">DrawWindowClass</a> confine_to) => window -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -> [<a href="Graphics-UI-Gtk-General-Enums.html#t:EventMask">EventMask</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> confine_to -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-UI-Gtk-Gdk-Cursor.html#t:Cursor">Cursor</a> -> <a href="Graphics-UI-Gtk-Gdk-Events.html#t:TimeStamp">TimeStamp</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a></li><li class="src short"><a href="#v:pointerUngrab">pointerUngrab</a> :: <a href="Graphics-UI-Gtk-Gdk-Events.html#t:TimeStamp">TimeStamp</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:pointerIsGrabbed">pointerIsGrabbed</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:keyboardGrab">keyboardGrab</a> :: <a href="Graphics-UI-Gtk-Gdk-DrawWindow.html#t:DrawWindowClass">DrawWindowClass</a> window => window -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="Graphics-UI-Gtk-Gdk-Events.html#t:TimeStamp">TimeStamp</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a></li><li class="src short"><a href="#v:keyboardUngrab">keyboardUngrab</a> :: <a href="Graphics-UI-Gtk-Gdk-Events.html#t:TimeStamp">TimeStamp</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:beep">beep</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><span class="keyword">data</span> <a href="#t:RGBA">RGBA</a> = <a href="#v:RGBA">RGBA</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:flush" class="def">flush</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Graphics-UI-Gtk-Gdk-Gdk.html#flush" class="link">Source</a> <a href="#v:flush" class="selflink">#</a></p><div class="doc"><p>Flushes the X output buffer and waits until all requests have been
processed by the server. This is rarely needed by applications.</p></div></div><div class="top"><p class="src"><a id="v:screenWidth" class="def">screenWidth</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="src/Graphics-UI-Gtk-Gdk-Gdk.html#screenWidth" class="link">Source</a> <a href="#v:screenWidth" class="selflink">#</a></p><div class="doc"><p>Returns the width of the default screen in pixels.</p></div></div><div class="top"><p class="src"><a id="v:screenHeight" class="def">screenHeight</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="src/Graphics-UI-Gtk-Gdk-Gdk.html#screenHeight" class="link">Source</a> <a href="#v:screenHeight" class="selflink">#</a></p><div class="doc"><p>Returns the height of the default screen in pixels.</p></div></div><div class="top"><p class="src"><a id="v:screenWidthMM" class="def">screenWidthMM</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="src/Graphics-UI-Gtk-Gdk-Gdk.html#screenWidthMM" class="link">Source</a> <a href="#v:screenWidthMM" class="selflink">#</a></p><div class="doc"><p>Returns the width of the default screen in millimeters. Note that on many
X servers this value will not be correct.</p></div></div><div class="top"><p class="src"><a id="v:screenHeightMM" class="def">screenHeightMM</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="src/Graphics-UI-Gtk-Gdk-Gdk.html#screenHeightMM" class="link">Source</a> <a href="#v:screenHeightMM" class="selflink">#</a></p><div class="doc"><p>Returns the height of the default screen in millimeters. Note that on many
X servers this value will not be correct.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:GrabStatus" class="def">GrabStatus</a> <a href="src/Graphics-UI-Gtk-Gdk-Enums.html#GrabStatus" class="link">Source</a> <a href="#t:GrabStatus" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:GrabSuccess" class="def">GrabSuccess</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:GrabAlreadyGrabbed" class="def">GrabAlreadyGrabbed</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:GrabInvalidTime" class="def">GrabInvalidTime</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:GrabNotViewable" class="def">GrabNotViewable</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:GrabFrozen" class="def">GrabFrozen</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:GrabFailed" class="def">GrabFailed</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:GrabStatus" class="caption collapser" onclick="toggleSection('i:GrabStatus')">Instances</p><div id="section.i:GrabStatus" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:GrabStatus:Enum:1" class="instance expander" onclick="toggleSection('i:id:GrabStatus:Enum:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Enum">Enum</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a></span> <a href="src/Graphics-UI-Gtk-Gdk-Enums.html#line-301" class="link">Source</a> <a href="#t:GrabStatus" class="selflink">#</a></td><td class="doc"><p>Specifies why a selection ownership was changed.</p><dl><dt><code>OwnerChangeNewOwner</code></dt><dd>some other application claimed the ownership</dd><dt><code>OwnerChangeDestroy</code></dt><dd>the window was destroyed</dd><dt><code>OwnerChangeClose</code></dt><dd>the client was closed</dd></dl></td></tr><tr><td colspan="2"><div id="section.i:id:GrabStatus:Enum:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:succ">succ</a> :: <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> <a href="#v:succ" class="selflink">#</a></p><p class="src"><a href="#v:pred">pred</a> :: <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> <a href="#v:pred" class="selflink">#</a></p><p class="src"><a href="#v:toEnum">toEnum</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> <a href="#v:toEnum" class="selflink">#</a></p><p class="src"><a href="#v:fromEnum">fromEnum</a> :: <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:fromEnum" class="selflink">#</a></p><p class="src"><a href="#v:enumFrom">enumFrom</a> :: <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> [<a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a>] <a href="#v:enumFrom" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThen">enumFromThen</a> :: <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> [<a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a>] <a href="#v:enumFromThen" class="selflink">#</a></p><p class="src"><a href="#v:enumFromTo">enumFromTo</a> :: <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> [<a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a>] <a href="#v:enumFromTo" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThenTo">enumFromThenTo</a> :: <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> [<a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a>] <a href="#v:enumFromThenTo" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:GrabStatus:Eq:2" class="instance expander" onclick="toggleSection('i:id:GrabStatus:Eq:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a></span> <a href="src/Graphics-UI-Gtk-Gdk-Enums.html#line-300" class="link">Source</a> <a href="#t:GrabStatus" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:GrabStatus:Eq:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:GrabStatus:Show:3" class="instance expander" onclick="toggleSection('i:id:GrabStatus:Show:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a></span> <a href="src/Graphics-UI-Gtk-Gdk-Enums.html#line-300" class="link">Source</a> <a href="#t:GrabStatus" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:GrabStatus:Show:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:pointerGrab" class="def">pointerGrab</a> <a href="src/Graphics-UI-Gtk-Gdk-Gdk.html#pointerGrab" class="link">Source</a> <a href="#v:pointerGrab" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Gdk-DrawWindow.html#t:DrawWindowClass">DrawWindowClass</a> window, <a href="Graphics-UI-Gtk-Gdk-DrawWindow.html#t:DrawWindowClass">DrawWindowClass</a> confine_to)</td><td class="doc empty"> </td></tr><tr><td class="src">=> window</td><td class="doc"><p><code>window</code> - the <code><a href="Graphics-UI-Gtk-Gdk-DrawWindow.html#t:DrawWindow">DrawWindow</a></code> which will own the grab (the grab
window).</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><code>owner_events</code> - if <code>False</code> then all pointer events are
reported with respect to <code>window</code> and are only reported if
selected by <code>event_mask</code>. If <code>True</code> then pointer events for this
application are reported as normal, but pointer events outside
this application are reported with respect to <code>window</code> and only
if selected by <code>event_mask</code>. In either mode, unreported events
are discarded.</p></td></tr><tr><td class="src">-> [<a href="Graphics-UI-Gtk-General-Enums.html#t:EventMask">EventMask</a>]</td><td class="doc"><p><code>event_mask</code> - specifies the event mask, which is used in
accordance with <code>owner_events</code>. Note that only pointer
events (i.e. button and motion events) may be selected.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> confine_to</td><td class="doc"><p><code>confine_to</code> If supplied, the pointer will be
confined to this window during the grab. If the
pointer is outside <code>confine_to</code>, it will automatically
be moved to the closest edge of <code>confine_to</code> and enter
and leave events will be generated as necessary.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-UI-Gtk-Gdk-Cursor.html#t:Cursor">Cursor</a></td><td class="doc"><p><code>cursor</code> - the cursor to display while the grab is
active. If this is <code>Nothing</code> then the normal cursors are
used for <code>window</code> and its descendants, and the cursor for
<code>window</code> is used for all other windows.</p></td></tr><tr><td class="src">-> <a href="Graphics-UI-Gtk-Gdk-Events.html#t:TimeStamp">TimeStamp</a></td><td class="doc"><p><code>time</code> - the timestamp of the event which led to this
pointer grab. This usually comes from an <code><a href="Graphics-UI-Gtk-Gdk-Events.html#t:Event">Event</a></code>, though
<code><a href="Graphics-UI-Gtk-Gdk-Events.html#v:currentTime">currentTime</a></code> can be used if the time isn't known.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a></td><td class="doc"><p><code>Returns</code> - <code><a href="Graphics-UI-Gtk-Gdk-Gdk.html#v:GrabSuccess">GrabSuccess</a></code> if the grab was successful.</p></td></tr></table></div><div class="doc"><p>Grabs the pointer (usually a mouse) so that all events are passed to this
application until the pointer is ungrabbed with <code><a href="Graphics-UI-Gtk-Gdk-Gdk.html#v:pointerUngrab">pointerUngrab</a></code>, or the grab
window becomes unviewable. This overrides any previous pointer grab by this
client.</p><p>Pointer grabs are used for operations which need complete control over mouse
events, even if the mouse leaves the application. For example in GTK+ it is
used for Drag and Drop, for dragging the handle in the GtkHPaned and
GtkVPaned widgets, and for resizing columns in GtkCList widgets.</p><p>Note that if the event mask of an X window has selected both button press
and button release events, then a button press event will cause an automatic
pointer grab until the button is released. X does this automatically since
most applications expect to receive button press and release events in
pairs. It is equivalent to a pointer grab on the window with <code>owner_events</code>
set to <code>True</code>.</p><p>If you set up anything at the time you take the grab that needs to be
cleaned up when the grab ends, you should handle the GdkEventGrabBroken
events that are emitted when the grab ends unvoluntarily.</p></div></div><div class="top"><p class="src"><a id="v:pointerUngrab" class="def">pointerUngrab</a> <a href="src/Graphics-UI-Gtk-Gdk-Gdk.html#pointerUngrab" class="link">Source</a> <a href="#v:pointerUngrab" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Gdk-Events.html#t:TimeStamp">TimeStamp</a></td><td class="doc"><p><code>time</code> - a timestamp from an <code><a href="Graphics-UI-Gtk-Gdk-Events.html#t:Event">Event</a></code>, or <code><a href="Graphics-UI-Gtk-Gdk-Events.html#v:currentTime">currentTime</a></code> if no
timestamp is available.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Ungrabs the pointer on the default display, if it is grabbed by this
application.</p></div></div><div class="top"><p class="src"><a id="v:pointerIsGrabbed" class="def">pointerIsGrabbed</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Graphics-UI-Gtk-Gdk-Gdk.html#pointerIsGrabbed" class="link">Source</a> <a href="#v:pointerIsGrabbed" class="selflink">#</a></p><div class="doc"><p>Returns <code>True</code> if the pointer on the default display is currently grabbed
by this application.</p><p>Note that this does not take the inmplicit pointer grab on button presses
into account.</p></div></div><div class="top"><p class="src"><a id="v:keyboardGrab" class="def">keyboardGrab</a> <a href="src/Graphics-UI-Gtk-Gdk-Gdk.html#keyboardGrab" class="link">Source</a> <a href="#v:keyboardGrab" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Gdk-DrawWindow.html#t:DrawWindowClass">DrawWindowClass</a> window</td><td class="doc empty"> </td></tr><tr><td class="src">=> window</td><td class="doc"><p><code>window</code> - the <code><a href="Graphics-UI-Gtk-Gdk-DrawWindow.html#t:DrawWindow">DrawWindow</a></code> which will own the grab (the grab
window).</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><code>owner_events</code> - if <code>False</code> then all keyboard events are
reported with respect to <code>window</code>. If <code>True</code> then keyboard events
for this application are reported as normal, but keyboard events
outside this application are reported with respect to <code>window</code>.
Both key press and key release events are always reported,
independant of the event mask set by the application.</p></td></tr><tr><td class="src">-> <a href="Graphics-UI-Gtk-Gdk-Events.html#t:TimeStamp">TimeStamp</a></td><td class="doc"><p><code>time</code> - a timestamp from an <code><a href="Graphics-UI-Gtk-Gdk-Events.html#t:Event">Event</a></code>, or <code><a href="Graphics-UI-Gtk-Gdk-Events.html#v:currentTime">currentTime</a></code> if
no timestamp is available.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:GrabStatus">GrabStatus</a></td><td class="doc"><p><code>Returns</code> - <code><a href="Graphics-UI-Gtk-Gdk-Gdk.html#v:GrabSuccess">GrabSuccess</a></code> if the grab was successful.</p></td></tr></table></div><div class="doc"><p>Grabs the keyboard so that all events are passed to this application until
the keyboard is ungrabbed with <code><a href="Graphics-UI-Gtk-Gdk-Gdk.html#v:keyboardUngrab">keyboardUngrab</a></code>. This overrides any previous
keyboard grab by this client.</p><p>If you set up anything at the time you take the grab that needs to be
cleaned up when the grab ends, you should handle the GdkEventGrabBroken
events that are emitted when the grab ends unvoluntarily.</p></div></div><div class="top"><p class="src"><a id="v:keyboardUngrab" class="def">keyboardUngrab</a> <a href="src/Graphics-UI-Gtk-Gdk-Gdk.html#keyboardUngrab" class="link">Source</a> <a href="#v:keyboardUngrab" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Gdk-Events.html#t:TimeStamp">TimeStamp</a></td><td class="doc"><p><code>time</code> - a timestamp from an <code><a href="Graphics-UI-Gtk-Gdk-Events.html#t:Event">Event</a></code>, or <code><a href="Graphics-UI-Gtk-Gdk-Events.html#v:currentTime">currentTime</a></code> if no
timestamp is available.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Ungrabs the keyboard on the default display, if it is grabbed by this
application.</p></div></div><div class="top"><p class="src"><a id="v:beep" class="def">beep</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Graphics-UI-Gtk-Gdk-Gdk.html#beep" class="link">Source</a> <a href="#v:beep" class="selflink">#</a></p><div class="doc"><p>Emits a short beep.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:RGBA" class="def">RGBA</a> <a href="src/Graphics-UI-Gtk-General-Structs.html#RGBA" class="link">Source</a> <a href="#t:RGBA" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:RGBA" class="def">RGBA</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:RGBA" class="caption collapser" onclick="toggleSection('i:RGBA')">Instances</p><div id="section.i:RGBA" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:RGBA:Storable:1" class="instance expander" onclick="toggleSection('i:id:RGBA:Storable:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Storable.html#t:Storable">Storable</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:RGBA">RGBA</a></span> <a href="src/Graphics-UI-Gtk-General-Structs.html#line-198" class="link">Source</a> <a href="#t:RGBA" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:RGBA:Storable:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:sizeOf">sizeOf</a> :: <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:RGBA">RGBA</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:sizeOf" class="selflink">#</a></p><p class="src"><a href="#v:alignment">alignment</a> :: <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:RGBA">RGBA</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:alignment" class="selflink">#</a></p><p class="src"><a href="#v:peekElemOff">peekElemOff</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:RGBA">RGBA</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:RGBA">RGBA</a> <a href="#v:peekElemOff" class="selflink">#</a></p><p class="src"><a href="#v:pokeElemOff">pokeElemOff</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:RGBA">RGBA</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:RGBA">RGBA</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="#v:pokeElemOff" class="selflink">#</a></p><p class="src"><a href="#v:peekByteOff">peekByteOff</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> b -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:RGBA">RGBA</a> <a href="#v:peekByteOff" class="selflink">#</a></p><p class="src"><a href="#v:pokeByteOff">pokeByteOff</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> b -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:RGBA">RGBA</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="#v:pokeByteOff" class="selflink">#</a></p><p class="src"><a href="#v:peek">peek</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:RGBA">RGBA</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:RGBA">RGBA</a> <a href="#v:peek" class="selflink">#</a></p><p class="src"><a href="#v:poke">poke</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:RGBA">RGBA</a> -> <a href="Graphics-UI-Gtk-Gdk-Gdk.html#t:RGBA">RGBA</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="#v:poke" class="selflink">#</a></p></div></div></td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>
|