This file is indexed.

/usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html is in libghc-glib-doc 0.12.4-3.

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>System.Glib.GObject</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_System-Glib-GObject.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/System-Glib-GObject.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">glib-0.12.4: Binding to the GLIB library for Gtk2Hs.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable (depends on GHC)</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>gtk2hs-users@lists.sourceforge.net</td></tr><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">System.Glib.GObject</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Types
</a></li><li><a href="#g:2">Low level binding functions
</a><ul><li><a href="#g:3">GType queries
</a></li><li><a href="#g:4">Callback support
</a></li><li><a href="#g:5">User-Defined Attributes
</a></li></ul></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The base object type for all glib objects
</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"><span class="keyword">newtype</span>  <a href="#t:GObject">GObject</a>  = <a href="#v:GObject">GObject</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:ForeignPtr">ForeignPtr</a> <a href="System-Glib-GObject.html#t:GObject">GObject</a>)</li><li class="src short"><span class="keyword">class</span>  <a href="#t:GObjectClass">GObjectClass</a> o  <span class="keyword">where</span><ul class="subs"><li><a href="#v:toGObject">toGObject</a> :: o -&gt; <a href="System-Glib-GObject.html#t:GObject">GObject</a></li><li><a href="#v:unsafeCastGObject">unsafeCastGObject</a> :: <a href="System-Glib-GObject.html#t:GObject">GObject</a> -&gt; o</li></ul></li><li class="src short"><a href="#v:mkGObject">mkGObject</a> ::  (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:ForeignPtr">ForeignPtr</a> <a href="System-Glib-GObject.html#t:GObject">GObject</a> -&gt; <a href="System-Glib-GObject.html#t:GObject">GObject</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:FinalizerPtr">FinalizerPtr</a> a)</li><li class="src short"><a href="#v:unGObject">unGObject</a> :: <a href="System-Glib-GObject.html#t:GObject">GObject</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:ForeignPtr">ForeignPtr</a> <a href="System-Glib-GObject.html#t:GObject">GObject</a></li><li class="src short"><a href="#v:castToGObject">castToGObject</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; obj</li><li class="src short"><a href="#v:objectUnref">objectUnref</a> ::  <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:FinalizerPtr">FinalizerPtr</a> a</li><li class="src short"><a href="#v:objectNew">objectNew</a> :: <a href="System-Glib-GType.html#t:GType">GType</a> -&gt; [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="System-Glib-GValue.html#t:GValue">GValue</a>)] -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="System-Glib-GObject.html#t:GObject">GObject</a>)</li><li class="src short"><a href="#v:objectRef">objectRef</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> obj -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:objectRefSink">objectRefSink</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> obj -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:makeNewGObject">makeNewGObject</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:ForeignPtr">ForeignPtr</a> obj -&gt; obj, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:FinalizerPtr">FinalizerPtr</a> obj) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> obj) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> obj</li><li class="src short"><a href="#v:constructNewGObject">constructNewGObject</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:ForeignPtr">ForeignPtr</a> obj -&gt; obj, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:FinalizerPtr">FinalizerPtr</a> obj) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> obj) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> obj</li><li class="src short"><a href="#v:wrapNewGObject">wrapNewGObject</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:ForeignPtr">ForeignPtr</a> obj -&gt; obj, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:FinalizerPtr">FinalizerPtr</a> obj) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> obj) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> obj</li><li class="src short"><a href="#v:gTypeGObject">gTypeGObject</a> :: <a href="System-Glib-GType.html#t:GType">GType</a></li><li class="src short"><a href="#v:isA">isA</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o =&gt; o -&gt; <a href="System-Glib-GType.html#t:GType">GType</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:DestroyNotify">DestroyNotify</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:FunPtr">FunPtr</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> () -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ())</li><li class="src short"><a href="#v:destroyFunPtr">destroyFunPtr</a> :: <a href="System-Glib-GObject.html#t:DestroyNotify">DestroyNotify</a></li><li class="src short"><a href="#v:destroyStablePtr">destroyStablePtr</a> :: <a href="System-Glib-GObject.html#t:DestroyNotify">DestroyNotify</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Quark">Quark</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CUInt">CUInt</a></li><li class="src short"><a href="#v:quarkFromString">quarkFromString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="System-Glib-GObject.html#t:Quark">Quark</a></li><li class="src short"><a href="#v:objectCreateAttribute">objectCreateAttribute</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="System-Glib-Attributes.html#t:Attr">Attr</a> o (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a))</li><li class="src short"><a href="#v:objectSetAttribute">objectSetAttribute</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o =&gt; <a href="System-Glib-GObject.html#t:Quark">Quark</a> -&gt; o -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:objectGetAttributeUnsafe">objectGetAttributeUnsafe</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o =&gt; <a href="System-Glib-GObject.html#t:Quark">Quark</a> -&gt; o -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a)</li></ul></div><div id="interface"><h1 id="g:1">Types
</h1><div class="top"><p class="src"><span class="keyword">newtype</span>  <a name="t:GObject" class="def">GObject</a>  <a href="src/System-Glib-Types.html#GObject" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:GObject" class="def">GObject</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:ForeignPtr">ForeignPtr</a> <a href="System-Glib-GObject.html#t:GObject">GObject</a>)</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:GObject" class="caption collapser" onclick="toggleSection('i:GObject')">Instances</p><div id="section.i:GObject" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="System-Glib-GObject.html#t:GObject">GObject</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="System-Glib-GObject.html#t:GObject">GObject</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span>  <a name="t:GObjectClass" class="def">GObjectClass</a> o  <span class="keyword">where</span><a href="src/System-Glib-Types.html#GObjectClass" class="link">Source</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:toGObject" class="def">toGObject</a> :: o -&gt; <a href="System-Glib-GObject.html#t:GObject">GObject</a><a href="src/System-Glib-Types.html#toGObject" class="link">Source</a></p><div class="doc"><p>Safe upcast.
</p></div><p class="src"><a name="v:unsafeCastGObject" class="def">unsafeCastGObject</a> :: <a href="System-Glib-GObject.html#t:GObject">GObject</a> -&gt; o<a href="src/System-Glib-Types.html#unsafeCastGObject" class="link">Source</a></p><div class="doc"><p>Unchecked downcast.
</p></div></div><div class="subs instances"><p id="control.i:GObjectClass" class="caption collapser" onclick="toggleSection('i:GObjectClass')">Instances</p><div id="section.i:GObjectClass" class="show"><table><tr><td class="src"><a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="System-Glib-GObject.html#t:GObject">GObject</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:mkGObject" class="def">mkGObject</a> ::  (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:ForeignPtr">ForeignPtr</a> <a href="System-Glib-GObject.html#t:GObject">GObject</a> -&gt; <a href="System-Glib-GObject.html#t:GObject">GObject</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:FinalizerPtr">FinalizerPtr</a> a)<a href="src/System-Glib-Types.html#mkGObject" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:unGObject" class="def">unGObject</a> :: <a href="System-Glib-GObject.html#t:GObject">GObject</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:ForeignPtr">ForeignPtr</a> <a href="System-Glib-GObject.html#t:GObject">GObject</a><a href="src/System-Glib-Types.html#unGObject" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:castToGObject" class="def">castToGObject</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; obj<a href="src/System-Glib-Types.html#castToGObject" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:objectUnref" class="def">objectUnref</a> ::  <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:FinalizerPtr">FinalizerPtr</a> a<a href="src/System-Glib-Types.html#objectUnref" class="link">Source</a></p><div class="doc"><p>Decrease the reference counter of an object
</p></div></div><h1 id="g:2">Low level binding functions
</h1><div class="doc"><p>All these functions are internal and are only interesting to people
 writing bindings to GObject-style C libraries.
</p></div><div class="top"><p class="src"><a name="v:objectNew" class="def">objectNew</a> :: <a href="System-Glib-GType.html#t:GType">GType</a> -&gt; [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>, <a href="System-Glib-GValue.html#t:GValue">GValue</a>)] -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="System-Glib-GObject.html#t:GObject">GObject</a>)<a href="src/System-Glib-GObject.html#objectNew" class="link">Source</a></p><div class="doc"><p>Construct a new object (should rairly be used directly)
</p></div></div><div class="top"><p class="src"><a name="v:objectRef" class="def">objectRef</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> obj -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/System-Glib-GObject.html#objectRef" class="link">Source</a></p><div class="doc"><p>Increase the reference counter of an object
</p></div></div><div class="top"><p class="src"><a name="v:objectRefSink" class="def">objectRefSink</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> obj -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/System-Glib-GObject.html#objectRefSink" class="link">Source</a></p><div class="doc"><p>Reference and sink an object.
</p></div></div><div class="top"><p class="src"><a name="v:makeNewGObject" class="def">makeNewGObject</a><a href="src/System-Glib-GObject.html#makeNewGObject" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:ForeignPtr">ForeignPtr</a> obj -&gt; obj, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:FinalizerPtr">FinalizerPtr</a> obj)</td><td class="doc"><p>constructor for the Haskell object and finalizer C function
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> obj)</td><td class="doc"><p>action which yields a pointer to the C object
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> obj</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>This function wraps any object that does not derive from Object.
 It should be used whenever a function returns a pointer to an existing
 <code><a href="System-Glib-GObject.html#t:GObject">GObject</a></code> (as opposed to a function that constructs a new object).
</p><ul><li> The first argument is the contructor of the specific object.
</li></ul></div></div><div class="top"><p class="src"><a name="v:constructNewGObject" class="def">constructNewGObject</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:ForeignPtr">ForeignPtr</a> obj -&gt; obj, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:FinalizerPtr">FinalizerPtr</a> obj) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> obj) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> obj<a href="src/System-Glib-GObject.html#constructNewGObject" class="link">Source</a></p><div class="doc"><p>This function wraps any newly created objects that derives from
 GInitiallyUnowned also known as objects with
 &quot;floating-references&quot;. The object will be refSink (for glib
 versions &gt;= 2.10). On non-floating objects, this function behaves
 exactly the same as <a href="makeNewGObject.html">makeNewGObject</a>.
</p></div></div><div class="top"><p class="src"><a name="v:wrapNewGObject" class="def">wrapNewGObject</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:ForeignPtr">ForeignPtr</a> obj -&gt; obj, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-ForeignPtr-Safe.html#t:FinalizerPtr">FinalizerPtr</a> obj) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> obj) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> obj<a href="src/System-Glib-GObject.html#wrapNewGObject" class="link">Source</a></p><div class="doc"><p>This function wraps any newly created object that does not derived
 from GInitiallyUnowned (that is a GObject with no floating
 reference). Since newly created <code><a href="System-Glib-GObject.html#t:GObject">GObject</a></code>s have a reference count of
 one, they don't need ref'ing.
</p></div></div><h2 id="g:3">GType queries
</h2><div class="top"><p class="src"><a name="v:gTypeGObject" class="def">gTypeGObject</a> :: <a href="System-Glib-GType.html#t:GType">GType</a><a href="src/System-Glib-GObject.html#gTypeGObject" class="link">Source</a></p><div class="doc"><p>The type constant to check if an instance is of <code><a href="System-Glib-GObject.html#t:GObject">GObject</a></code> type.
</p></div></div><div class="top"><p class="src"><a name="v:isA" class="def">isA</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o =&gt; o -&gt; <a href="System-Glib-GType.html#t:GType">GType</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/System-Glib-GObject.html#isA" class="link">Source</a></p><div class="doc"><p>Determine if this is an instance of a particular GTK type
</p></div></div><h2 id="g:4">Callback support
</h2><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:DestroyNotify" class="def">DestroyNotify</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:FunPtr">FunPtr</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> () -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ())<a href="src/System-Glib-GObject.html#DestroyNotify" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:destroyFunPtr" class="def">destroyFunPtr</a> :: <a href="System-Glib-GObject.html#t:DestroyNotify">DestroyNotify</a><a href="src/System-Glib-GObject.html#destroyFunPtr" class="link">Source</a></p><div class="doc"><p>Many methods in classes derived from GObject take a callback function and
 a destructor function which is called to free that callback function when
 it is no longer required. This constants is an address of a functions in
 C land that will free a function pointer.
</p></div></div><div class="top"><p class="src"><a name="v:destroyStablePtr" class="def">destroyStablePtr</a> :: <a href="System-Glib-GObject.html#t:DestroyNotify">DestroyNotify</a><a href="src/System-Glib-GObject.html#destroyStablePtr" class="link">Source</a></p><div class="doc"><p>The address of a function freeing a <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-StablePtr.html#t:StablePtr">StablePtr</a></code>. See <code><a href="System-Glib-GObject.html#v:destroyFunPtr">destroyFunPtr</a></code>.
</p></div></div><h2 id="g:5">User-Defined Attributes
</h2><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Quark" class="def">Quark</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CUInt">CUInt</a><a href="src/System-Glib-GObject.html#Quark" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:quarkFromString" class="def">quarkFromString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="System-Glib-GObject.html#t:Quark">Quark</a><a href="src/System-Glib-GObject.html#quarkFromString" class="link">Source</a></p><div class="doc"><p>Create a unique id based on the given string.
</p></div></div><div class="top"><p class="src"><a name="v:objectCreateAttribute" class="def">objectCreateAttribute</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="System-Glib-Attributes.html#t:Attr">Attr</a> o (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a))<a href="src/System-Glib-GObject.html#objectCreateAttribute" class="link">Source</a></p><div class="doc"><p>Add an attribute to this object.
</p><ul><li> The function returns a new attribute that can be set or retrieved from
 any <code><a href="System-Glib-GObject.html#t:GObject">GObject</a></code>. The attribute is wrapped in a <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a></code> type to reflect
 the circumstance when the attribute is not set or if it should be unset.
</li></ul></div></div><div class="top"><p class="src"><a name="v:objectSetAttribute" class="def">objectSetAttribute</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o =&gt; <a href="System-Glib-GObject.html#t:Quark">Quark</a> -&gt; o -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/System-Glib-GObject.html#objectSetAttribute" class="link">Source</a></p><div class="doc"><p>Set the value of an association.
</p></div></div><div class="top"><p class="src"><a name="v:objectGetAttributeUnsafe" class="def">objectGetAttributeUnsafe</a> :: <a href="System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o =&gt; <a href="System-Glib-GObject.html#t:Quark">Quark</a> -&gt; o -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a)<a href="src/System-Glib-GObject.html#objectGetAttributeUnsafe" class="link">Source</a></p><div class="doc"><p>Get the value of an association.
</p><ul><li> Note that this function may crash the Haskell run-time since the
 returned type can be forced to be anything. See <code><a href="System-Glib-GObject.html#v:objectCreateAttribute">objectCreateAttribute</a></code>
 for a safe wrapper around this funciton.
</li></ul></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>