58
58
typedef <a class="link" href="gtk-Types.html#GtkClassInitFunc" title="GtkClassInitFunc">GtkClassInitFunc</a>;
59
59
typedef <a class="link" href="gtk-Types.html#GtkObjectInitFunc" title="GtkObjectInitFunc">GtkObjectInitFunc</a>;
60
60
<span class="returnvalue">void</span> (<a class="link" href="gtk-Types.html#GtkSignalFunc" title="GtkSignalFunc ()">*GtkSignalFunc</a>) (<em class="parameter"><code><span class="type">void</span></code></em>);
61
<span class="returnvalue">gboolean</span> (<a class="link" href="gtk-Types.html#GtkFunction" title="GtkFunction ()">*GtkFunction</a>) (<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
62
<span class="returnvalue">void</span> (<a class="link" href="gtk-Types.html#GtkDestroyNotify" title="GtkDestroyNotify ()">*GtkDestroyNotify</a>) (<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
61
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> (<a class="link" href="gtk-Types.html#GtkFunction" title="GtkFunction ()">*GtkFunction</a>) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);
62
<span class="returnvalue">void</span> (<a class="link" href="gtk-Types.html#GtkDestroyNotify" title="GtkDestroyNotify ()">*GtkDestroyNotify</a>) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);
63
63
<span class="returnvalue">void</span> (<a class="link" href="gtk-Types.html#GtkCallbackMarshal" title="GtkCallbackMarshal ()">*GtkCallbackMarshal</a>) (<em class="parameter"><code><a class="link" href="GtkObject.html" title="GtkObject"><span class="type">GtkObject</span></a> *object</code></em>,
64
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>,
65
<em class="parameter"><code><span class="type">guint</span> n_args</code></em>,
64
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
65
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> n_args</code></em>,
66
66
<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkArg" title="struct GtkArg"><span class="type">GtkArg</span></a> *args</code></em>);
67
67
typedef <a class="link" href="gtk-Types.html#GtkSignalMarshaller" title="GtkSignalMarshaller">GtkSignalMarshaller</a>;
68
68
typedef <a class="link" href="gtk-Types.html#GtkTypeObject" title="GtkTypeObject">GtkTypeObject</a>;
108
108
#define <a class="link" href="gtk-Types.html#gtk-type-name" title="gtk_type_name()">gtk_type_name</a> (type)
109
109
#define <a class="link" href="gtk-Types.html#gtk-type-from-name" title="gtk_type_from_name()">gtk_type_from_name</a> (name)
110
110
#define <a class="link" href="gtk-Types.html#gtk-type-parent" title="gtk_type_parent()">gtk_type_parent</a> (type)
111
<span class="returnvalue">gpointer</span> <a class="link" href="gtk-Types.html#gtk-type-class" title="gtk_type_class ()">gtk_type_class</a> (<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkType" title="GtkType"><span class="type">GtkType</span></a> type</code></em>);
112
<span class="returnvalue">gpointer</span> <a class="link" href="gtk-Types.html#gtk-type-new" title="gtk_type_new ()">gtk_type_new</a> (<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkType" title="GtkType"><span class="type">GtkType</span></a> type</code></em>);
111
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="gtk-Types.html#gtk-type-class" title="gtk_type_class ()">gtk_type_class</a> (<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkType" title="GtkType"><span class="type">GtkType</span></a> type</code></em>);
112
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="gtk-Types.html#gtk-type-new" title="gtk_type_new ()">gtk_type_new</a> (<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkType" title="GtkType"><span class="type">GtkType</span></a> type</code></em>);
113
113
#define <a class="link" href="gtk-Types.html#gtk-type-is-a" title="gtk_type_is_a()">gtk_type_is_a</a> (type,
115
115
<a class="link" href="gtk-Types.html#GtkEnumValue" title="GtkEnumValue"><span class="returnvalue">GtkEnumValue</span></a> * <a class="link" href="gtk-Types.html#gtk-type-enum-get-values" title="gtk_type_enum_get_values ()">gtk_type_enum_get_values</a> (<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkType" title="GtkType"><span class="type">GtkType</span></a> enum_type</code></em>);
116
116
<a class="link" href="gtk-Types.html#GtkFlagValue" title="GtkFlagValue"><span class="returnvalue">GtkFlagValue</span></a> * <a class="link" href="gtk-Types.html#gtk-type-flags-get-values" title="gtk_type_flags_get_values ()">gtk_type_flags_get_values</a> (<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkType" title="GtkType"><span class="type">GtkType</span></a> flags_type</code></em>);
117
117
<a class="link" href="gtk-Types.html#GtkEnumValue" title="GtkEnumValue"><span class="returnvalue">GtkEnumValue</span></a> * <a class="link" href="gtk-Types.html#gtk-type-enum-find-value" title="gtk_type_enum_find_value ()">gtk_type_enum_find_value</a> (<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkType" title="GtkType"><span class="type">GtkType</span></a> enum_type</code></em>,
118
<em class="parameter"><code>const <span class="type">gchar</span> *value_name</code></em>);
118
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value_name</code></em>);
119
119
<a class="link" href="gtk-Types.html#GtkFlagValue" title="GtkFlagValue"><span class="returnvalue">GtkFlagValue</span></a> * <a class="link" href="gtk-Types.html#gtk-type-flags-find-value" title="gtk_type_flags_find_value ()">gtk_type_flags_find_value</a> (<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkType" title="GtkType"><span class="type">GtkType</span></a> flags_type</code></em>,
120
<em class="parameter"><code>const <span class="type">gchar</span> *value_name</code></em>);
120
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value_name</code></em>);
123
123
<div class="refsect1">
214
214
<p><code class="literal">GTK_TYPE_IS_OBJECT</code> is deprecated and should not be used in newly-written code. Use <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#G-TYPE-IS-OBJECT:CAPS"><code class="function">G_TYPE_IS_OBJECT()</code></a> instead.</p>
217
Returns <code class="literal">TRUE</code> if <em class="parameter"><code>type</code></em> is a <code class="literal">GTK_TYPE_OBJECT</code>.
217
Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>type</code></em> is a <code class="literal">GTK_TYPE_OBJECT</code>.
219
219
<div class="variablelist"><table border="0" class="variablelist">
261
261
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
262
262
<h3 class="title">Warning</h3>
263
<p><code class="literal">GTK_STRUCT_OFFSET</code> is deprecated and should not be used in newly-written code. Use <code class="function">G_STRUCT_OFFSET()</code> instead.</p>
263
<p><code class="literal">GTK_STRUCT_OFFSET</code> is deprecated and should not be used in newly-written code. Use <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#G-STRUCT-OFFSET:CAPS"><code class="function">G_STRUCT_OFFSET()</code></a> instead.</p>
266
266
Use in place of <code class="function"><code class="function">offsetof()</code></code>, which is used if it exists.
403
403
<div class="refsect2">
404
404
<a name="GtkFunction"></a><h3>GtkFunction ()</h3>
405
<pre class="programlisting"><span class="returnvalue">gboolean</span> (*GtkFunction) (<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
405
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> (*GtkFunction) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
406
406
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
407
407
<h3 class="title">Warning</h3>
408
<p><code class="literal">GtkFunction</code> has been deprecated since version 2.24 and should not be used in newly-written code. Use <code class="function">GSourceFunc()</code> instead.</p>
408
<p><code class="literal">GtkFunction</code> has been deprecated since version 2.24 and should not be used in newly-written code. Use <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GSourceFunc"><code class="function">GSourceFunc()</code></a> instead.</p>
411
411
Defines a function pointer.
420
420
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
421
<td><span class="type">gpointer</span></td>
421
<td><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></td>
424
424
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
425
<td><span class="type">gint</span></td>
425
<td><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
431
431
<div class="refsect2">
432
432
<a name="GtkDestroyNotify"></a><h3>GtkDestroyNotify ()</h3>
433
<pre class="programlisting"><span class="returnvalue">void</span> (*GtkDestroyNotify) (<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
433
<pre class="programlisting"><span class="returnvalue">void</span> (*GtkDestroyNotify) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
434
434
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
435
435
<h3 class="title">Warning</h3>
436
436
<p><code class="literal">GtkDestroyNotify</code> is deprecated and should not be used in newly-written code.</p>
453
453
<div class="refsect2">
454
454
<a name="GtkCallbackMarshal"></a><h3>GtkCallbackMarshal ()</h3>
455
455
<pre class="programlisting"><span class="returnvalue">void</span> (*GtkCallbackMarshal) (<em class="parameter"><code><a class="link" href="GtkObject.html" title="GtkObject"><span class="type">GtkObject</span></a> *object</code></em>,
456
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>,
457
<em class="parameter"><code><span class="type">guint</span> n_args</code></em>,
456
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
457
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> n_args</code></em>,
458
458
<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkArg" title="struct GtkArg"><span class="type">GtkArg</span></a> *args</code></em>);</pre>
459
459
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
460
460
<h3 class="title">Warning</h3>
478
478
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
479
<td><span class="type">gpointer</span></td>
479
<td><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></td>
482
482
<td><p><span class="term"><em class="parameter"><code>n_args</code></em> :</span></p></td>
483
<td><span class="type">guint</span></td>
483
<td><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a></td>
486
486
<td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
1390
1390
<td><p><span class="term"><em class="parameter"><code>gtkinfo</code></em> :</span></p></td>
1391
<td>must not be <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>, and <em class="parameter"><code>type_info->type_name</code></em> must also not be <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
1391
<td>must not be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, and <em class="parameter"><code>type_info->type_name</code></em> must also not be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1409
1409
<p><code class="literal">gtk_type_name</code> is deprecated and should not be used in newly-written code.</p>
1412
Returns a pointer to the name of a type, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if it has none.
1412
Returns a pointer to the name of a type, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if it has none.
1414
1414
<div class="variablelist"><table border="0" class="variablelist">
1425
1425
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1426
<td>a pointer to the name of a type, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if it has none.</td>
1426
<td>a pointer to the name of a type, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if it has none.</td>
1490
1490
<div class="refsect2">
1491
1491
<a name="gtk-type-class"></a><h3>gtk_type_class ()</h3>
1492
<pre class="programlisting"><span class="returnvalue">gpointer</span> gtk_type_class (<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkType" title="GtkType"><span class="type">GtkType</span></a> type</code></em>);</pre>
1492
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> gtk_type_class (<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkType" title="GtkType"><span class="type">GtkType</span></a> type</code></em>);</pre>
1493
1493
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1494
1494
<h3 class="title">Warning</h3>
1495
1495
<p><code class="literal">gtk_type_class</code> has been deprecated since version 2.14 and should not be used in newly-written code. Use <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#g-type-class-peek"><code class="function">g_type_class_peek()</code></a> or <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#g-type-class-ref"><code class="function">g_type_class_ref()</code></a> instead.</p>
1498
Returns a pointer pointing to the class of <em class="parameter"><code>type</code></em> or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if there
1498
Returns a pointer pointing to the class of <em class="parameter"><code>type</code></em> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there
1499
1499
was any trouble identifying <em class="parameter"><code>type</code></em>. Initializes the class if
1503
Returns a pointer pointing to the class of <em class="parameter"><code>type</code></em> or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if there was
1503
Returns a pointer pointing to the class of <em class="parameter"><code>type</code></em> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there was
1504
1504
any trouble identifying <em class="parameter"><code>type</code></em>. Initializes the class if necessary.
1506
1506
<div class="variablelist"><table border="0" class="variablelist">
1524
1524
<div class="refsect2">
1525
1525
<a name="gtk-type-new"></a><h3>gtk_type_new ()</h3>
1526
<pre class="programlisting"><span class="returnvalue">gpointer</span> gtk_type_new (<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkType" title="GtkType"><span class="type">GtkType</span></a> type</code></em>);</pre>
1526
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> gtk_type_new (<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkType" title="GtkType"><span class="type">GtkType</span></a> type</code></em>);</pre>
1527
1527
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1528
1528
<h3 class="title">Warning</h3>
1529
1529
<p><code class="literal">gtk_type_new</code> is deprecated and should not be used in newly-written code.</p>
1532
1532
Creates a new object of a given type, and return a pointer to it.
1533
Returns <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if you give it an invalid type. It allocates the object
1533
Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if you give it an invalid type. It allocates the object
1534
1534
out of the type's memory chunk if there is a memory chunk. The object
1535
1535
has all the proper initializers called.
1582
1582
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1584
<code class="literal">TRUE</code> if <em class="parameter"><code>type</code></em> is a <em class="parameter"><code>is_a_type</code></em>.</td>
1584
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>type</code></em> is a <em class="parameter"><code>is_a_type</code></em>.</td>
1648
1648
<div class="refsect2">
1649
1649
<a name="gtk-type-enum-find-value"></a><h3>gtk_type_enum_find_value ()</h3>
1650
1650
<pre class="programlisting"><a class="link" href="gtk-Types.html#GtkEnumValue" title="GtkEnumValue"><span class="returnvalue">GtkEnumValue</span></a> * gtk_type_enum_find_value (<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkType" title="GtkType"><span class="type">GtkType</span></a> enum_type</code></em>,
1651
<em class="parameter"><code>const <span class="type">gchar</span> *value_name</code></em>);</pre>
1651
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value_name</code></em>);</pre>
1652
1652
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1653
1653
<h3 class="title">Warning</h3>
1654
1654
<p><code class="literal">gtk_type_enum_find_value</code> is deprecated and should not be used in newly-written code.</p>
1682
1682
<div class="refsect2">
1683
1683
<a name="gtk-type-flags-find-value"></a><h3>gtk_type_flags_find_value ()</h3>
1684
1684
<pre class="programlisting"><a class="link" href="gtk-Types.html#GtkFlagValue" title="GtkFlagValue"><span class="returnvalue">GtkFlagValue</span></a> * gtk_type_flags_find_value (<em class="parameter"><code><a class="link" href="gtk-Types.html#GtkType" title="GtkType"><span class="type">GtkType</span></a> flags_type</code></em>,
1685
<em class="parameter"><code>const <span class="type">gchar</span> *value_name</code></em>);</pre>
1685
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value_name</code></em>);</pre>
1686
1686
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1687
1687
<h3 class="title">Warning</h3>
1688
1688
<p><code class="literal">gtk_type_flags_find_value</code> is deprecated and should not be used in newly-written code.</p>