4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>GtkFixed</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.78.0">
7
7
<link rel="home" href="index.html" title="GTK+ 2 Reference Manual">
8
8
<link rel="up" href="LayoutContainers.html" title="Layout Containers">
9
9
<link rel="prev" href="GtkVButtonBox.html" title="GtkVButtonBox">
50
50
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkFixed.html#gtk-fixed-new" title="gtk_fixed_new ()">gtk_fixed_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
51
51
<span class="returnvalue">void</span> <a class="link" href="GtkFixed.html#gtk-fixed-put" title="gtk_fixed_put ()">gtk_fixed_put</a> (<em class="parameter"><code><a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> *fixed</code></em>,
52
52
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget</code></em>,
53
<em class="parameter"><code><span class="type">gint</span> x</code></em>,
54
<em class="parameter"><code><span class="type">gint</span> y</code></em>);
53
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
54
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);
55
55
<span class="returnvalue">void</span> <a class="link" href="GtkFixed.html#gtk-fixed-move" title="gtk_fixed_move ()">gtk_fixed_move</a> (<em class="parameter"><code><a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> *fixed</code></em>,
56
56
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget</code></em>,
57
<em class="parameter"><code><span class="type">gint</span> x</code></em>,
58
<em class="parameter"><code><span class="type">gint</span> y</code></em>);
59
<span class="returnvalue">gboolean</span> <a class="link" href="GtkFixed.html#gtk-fixed-get-has-window" title="gtk_fixed_get_has_window ()">gtk_fixed_get_has_window</a> (<em class="parameter"><code><a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> *fixed</code></em>);
57
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
58
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);
59
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkFixed.html#gtk-fixed-get-has-window" title="gtk_fixed_get_has_window ()">gtk_fixed_get_has_window</a> (<em class="parameter"><code><a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> *fixed</code></em>);
60
60
<span class="returnvalue">void</span> <a class="link" href="GtkFixed.html#gtk-fixed-set-has-window" title="gtk_fixed_set_has_window ()">gtk_fixed_set_has_window</a> (<em class="parameter"><code><a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> *fixed</code></em>,
61
<em class="parameter"><code><span class="type">gboolean</span> has_window</code></em>);
61
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> has_window</code></em>);
64
64
<div class="refsect1">
65
65
<a name="GtkFixed.object-hierarchy"></a><h2>Object Hierarchy</h2>
66
66
<pre class="synopsis">
68
+----GInitiallyUnowned
67
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
68
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
69
69
+----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
70
70
+----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
71
71
+----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
81
81
<div class="refsect1">
82
82
<a name="GtkFixed.child-properties"></a><h2>Child Properties</h2>
83
83
<pre class="synopsis">
84
"<a class="link" href="GtkFixed.html#GtkFixed--c-x" title='The "x" child property'>x</a>" <span class="type">gint</span> : Read / Write
85
"<a class="link" href="GtkFixed.html#GtkFixed--c-y" title='The "y" child property'>y</a>" <span class="type">gint</span> : Read / Write
84
"<a class="link" href="GtkFixed.html#GtkFixed--c-x" title='The "x" child property'>x</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
85
"<a class="link" href="GtkFixed.html#GtkFixed--c-y" title='The "y" child property'>y</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
88
88
<div class="refsect1">
181
181
<a name="gtk-fixed-put"></a><h3>gtk_fixed_put ()</h3>
182
182
<pre class="programlisting"><span class="returnvalue">void</span> gtk_fixed_put (<em class="parameter"><code><a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> *fixed</code></em>,
183
183
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget</code></em>,
184
<em class="parameter"><code><span class="type">gint</span> x</code></em>,
185
<em class="parameter"><code><span class="type">gint</span> y</code></em>);</pre>
184
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
185
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre>
187
187
Adds a widget to a <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> container at the given position.
216
216
<a name="gtk-fixed-move"></a><h3>gtk_fixed_move ()</h3>
217
217
<pre class="programlisting"><span class="returnvalue">void</span> gtk_fixed_move (<em class="parameter"><code><a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> *fixed</code></em>,
218
218
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget</code></em>,
219
<em class="parameter"><code><span class="type">gint</span> x</code></em>,
220
<em class="parameter"><code><span class="type">gint</span> y</code></em>);</pre>
219
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
220
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre>
222
222
Moves a child of a <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> container to the given position.
250
250
<div class="refsect2">
251
251
<a name="gtk-fixed-get-has-window"></a><h3>gtk_fixed_get_has_window ()</h3>
252
<pre class="programlisting"><span class="returnvalue">gboolean</span> gtk_fixed_get_has_window (<em class="parameter"><code><a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> *fixed</code></em>);</pre>
252
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_fixed_get_has_window (<em class="parameter"><code><a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> *fixed</code></em>);</pre>
253
253
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
254
254
<h3 class="title">Warning</h3>
255
255
<p><code class="literal">gtk_fixed_get_has_window</code> has been deprecated since version 2.20 and should not be used in newly-written code. Use <a class="link" href="GtkWidget.html#gtk-widget-get-has-window" title="gtk_widget_get_has_window ()"><code class="function">gtk_widget_get_has_window()</code></a> instead.</p>
258
Gets whether the <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> has its own <a href="../gdk2/gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.
258
Gets whether the <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> has its own <a href="http://library.gnome.org/devel/gdk3/gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.
259
259
See <a class="link" href="GtkFixed.html#gtk-fixed-set-has-window" title="gtk_fixed_set_has_window ()"><code class="function">gtk_fixed_set_has_window()</code></a>.
261
261
<div class="variablelist"><table border="0" class="variablelist">
281
281
<div class="refsect2">
282
282
<a name="gtk-fixed-set-has-window"></a><h3>gtk_fixed_set_has_window ()</h3>
283
283
<pre class="programlisting"><span class="returnvalue">void</span> gtk_fixed_set_has_window (<em class="parameter"><code><a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> *fixed</code></em>,
284
<em class="parameter"><code><span class="type">gboolean</span> has_window</code></em>);</pre>
284
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> has_window</code></em>);</pre>
285
285
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
286
286
<h3 class="title">Warning</h3>
287
287
<p><code class="literal">gtk_fixed_set_has_window</code> has been deprecated since version 2.20 and should not be used in newly-written code. Use <a class="link" href="GtkWidget.html#gtk-widget-set-has-window" title="gtk_widget_set_has_window ()"><code class="function">gtk_widget_set_has_window()</code></a> instead.</p>
290
290
Sets whether a <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> widget is created with a separate
291
<a href="../gdk2/gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> for <em class="parameter"><code>widget->window</code></em> or not. (By default, it will be
292
created with no separate <a href="../gdk2/gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>). This function must be called
291
<a href="http://library.gnome.org/devel/gdk3/gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> for <em class="parameter"><code>widget->window</code></em> or not. (By default, it will be
292
created with no separate <a href="http://library.gnome.org/devel/gdk3/gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>). This function must be called
293
293
while the <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> is not realized, for instance, immediately after the
294
294
window is created.
321
321
<a name="GtkFixed.child-property-details"></a><h2>Child Property Details</h2>
322
322
<div class="refsect2">
323
323
<a name="GtkFixed--c-x"></a><h3>The <code class="literal">"x"</code> child property</h3>
324
<pre class="programlisting"> "x" <span class="type">gint</span> : Read / Write</pre>
324
<pre class="programlisting"> "x" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
325
325
<p>X position of child widget.</p>
326
326
<p>Default value: 0</p>
329
329
<div class="refsect2">
330
330
<a name="GtkFixed--c-y"></a><h3>The <code class="literal">"y"</code> child property</h3>
331
<pre class="programlisting"> "y" <span class="type">gint</span> : Read / Write</pre>
331
<pre class="programlisting"> "y" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
332
332
<p>Y position of child widget.</p>
333
333
<p>Default value: 0</p>