📄 gtkfixed.html
字号:
The <span class="type">GtkFixedChild</span> struct contains the following fields.(These fields should be considered read-only. They should never be set byan application.)</p><div class="informaltable"><table width="100%" border="0"><colgroup><col><col></colgroup><tbody><tr><td><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget;</td><td>the child <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.</td></tr><tr><td><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x;</td><td>the horizontal position of the widget within the <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a>container.</td></tr><tr><td><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y;</td><td>the vertical position of the widget within the <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a>container.</td></tr></tbody></table></div><p></p></div><hr><div class="refsect2" lang="en"><a name="id4068232"></a><h3><a name="gtk-fixed-new"></a>gtk_fixed_new ()</h3><a class="indexterm" name="id4068244"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_fixed_new (void);</pre><p>Creates a new <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4068296"></a><h3><a name="gtk-fixed-put"></a>gtk_fixed_put ()</h3><a class="indexterm" name="id4068309"></a><pre class="programlisting">void gtk_fixed_put (<a class="link" href="GtkFixed.html" title="GtkFixed">GtkFixed</a> *fixed, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> x, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> y);</pre><p>Adds a widget to a <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> container at the given position.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>fixed</code></em> :</span></p></td><td>a <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td><td>the widget to add.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td><td>the horizontal position to place the widget at.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td><td>the vertical position to place the widget at.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4068437"></a><h3><a name="gtk-fixed-move"></a>gtk_fixed_move ()</h3><a class="indexterm" name="id4068450"></a><pre class="programlisting">void gtk_fixed_move (<a class="link" href="GtkFixed.html" title="GtkFixed">GtkFixed</a> *fixed, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> x, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> y);</pre><p>Moves a child of a <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> container to the given position.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>fixed</code></em> :</span></p></td><td>a <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td><td>the child widget.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td><td>the horizontal position to move the widget to.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td><td>the vertical position to move the widget to.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4068579"></a><h3><a name="gtk-fixed-get-has-window"></a>gtk_fixed_get_has_window ()</h3><a class="indexterm" name="id4068592"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> gtk_fixed_get_has_window (<a class="link" href="GtkFixed.html" title="GtkFixed">GtkFixed</a> *fixed);</pre><p>Gets whether the <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> has its own <ahref="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.See <code class="function">gdk_fixed_set_has_window()</code>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>fixed</code></em> :</span></p></td><td> a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>fixed</code></em> has its own window.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4068704"></a><h3><a name="gtk-fixed-set-has-window"></a>gtk_fixed_set_has_window ()</h3><a class="indexterm" name="id4068717"></a><pre class="programlisting">void gtk_fixed_set_has_window (<a class="link" href="GtkFixed.html" title="GtkFixed">GtkFixed</a> *fixed, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> has_window);</pre><p>Sets whether a <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> widget is created with a separate<ahref="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> for <em class="parameter"><code>widget->window</code></em> or not. (By default, it will becreated with no separate <ahref="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>). This function must be calledwhile the <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> is not realized, for instance, immediately after thewindow is created.</p><p>This function was added to provide an easy migration path forolder applications which may expect <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a> to have a separate window.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>fixed</code></em> :</span></p></td><td> a <a class="link" href="GtkFixed.html" title="GtkFixed"><span class="type">GtkFixed</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>has_window</code></em> :</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a separate window should be created</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id4068861"></a><h2>Child Property Details</h2><div class="refsect2" lang="en"><a name="id4068872"></a><h3><a name="GtkFixed--x"></a>The <code class="literal">"x"</code> child property</h3><a class="indexterm" name="id4068887"></a><pre class="programlisting"> "x" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>X position of child widget.</p><p>Default value: 0</p></div><hr><div class="refsect2" lang="en"><a name="id4068914"></a><h3><a name="GtkFixed--y"></a>The <code class="literal">"y"</code> child property</h3><a class="indexterm" name="id4068929"></a><pre class="programlisting"> "y" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>Y position of child widget.</p><p>Default value: 0</p></div></div><div class="refsect1" lang="en"><a name="id4068957"></a><div class="refsect2" lang="en"><a name="id4068958"></a></div><hr><div class="refsect2" lang="en"><a name="id4068960"></a></div></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -