📄 gtkmisc.html
字号:
</tr><tr><td><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> <em class="structfield"><code>ypad</code></em>;</td><td>the amount of space to add on the top and bottom of the widget,in pixels.</td></tr></tbody></table></div><p></p></div><hr><div class="refsect2" lang="en"><a name="id4274438"></a><h3><a name="gtk-misc-set-alignment"></a>gtk_misc_set_alignment ()</h3><a class="indexterm" name="id4274452"></a><pre class="programlisting">void gtk_misc_set_alignment (<a class="link" href="GtkMisc.html" title="GtkMisc">GtkMisc</a> *misc, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> xalign, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> yalign);</pre><p>Sets the alignment of the widget.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>misc</code></em> :</span></p></td><td>a <a class="link" href="GtkMisc.html" title="GtkMisc"><span class="type">GtkMisc</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>xalign</code></em> :</span></p></td><td>the horizontal alignment, from 0 (left) to 1 (right).</td></tr><tr><td><p><span class="term"><em class="parameter"><code>yalign</code></em> :</span></p></td><td>the vertical alignment, from 0 (top) to 1 (bottom).</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4274551"></a><h3><a name="gtk-misc-set-padding"></a>gtk_misc_set_padding ()</h3><a class="indexterm" name="id4274565"></a><pre class="programlisting">void gtk_misc_set_padding (<a class="link" href="GtkMisc.html" title="GtkMisc">GtkMisc</a> *misc, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> xpad, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> ypad);</pre><p>Sets the amount of space to add around the widget.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>misc</code></em> :</span></p></td><td>a <a class="link" href="GtkMisc.html" title="GtkMisc"><span class="type">GtkMisc</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>xpad</code></em> :</span></p></td><td>the amount of space to add on the left and right of the widget,in pixels.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>ypad</code></em> :</span></p></td><td>the amount of space to add on the top and bottom of the widget,in pixels.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4274665"></a><h3><a name="gtk-misc-get-alignment"></a>gtk_misc_get_alignment ()</h3><a class="indexterm" name="id4274678"></a><pre class="programlisting">void gtk_misc_get_alignment (<a class="link" href="GtkMisc.html" title="GtkMisc">GtkMisc</a> *misc, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> *xalign, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> *yalign);</pre><p>Gets the X and Y alignment of the widget within its allocation. See <a class="link" href="GtkMisc.html#gtk-misc-set-alignment"><code class="function">gtk_misc_set_alignment()</code></a>.</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>misc</code></em> :</span></p></td><td> a <a class="link" href="GtkMisc.html" title="GtkMisc"><span class="type">GtkMisc</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>xalign</code></em> :</span></p></td><td> location to store X alignment of <em class="parameter"><code>misc</code></em>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>yalign</code></em> :</span></p></td><td> location to store Y alignment of <em class="parameter"><code>misc</code></em>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4274824"></a><h3><a name="gtk-misc-get-padding"></a>gtk_misc_get_padding ()</h3><a class="indexterm" name="id4274837"></a><pre class="programlisting">void gtk_misc_get_padding (<a class="link" href="GtkMisc.html" title="GtkMisc">GtkMisc</a> *misc, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *xpad, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *ypad);</pre><p>Gets the padding in the X and Y directions of the widget. See <a class="link" href="GtkMisc.html#gtk-misc-set-padding"><code class="function">gtk_misc_set_padding()</code></a>.</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>misc</code></em> :</span></p></td><td> a <a class="link" href="GtkMisc.html" title="GtkMisc"><span class="type">GtkMisc</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>xpad</code></em> :</span></p></td><td> location to store padding in the X direction, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>ypad</code></em> :</span></p></td><td> location to store padding in the Y direction, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id4274972"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id4274983"></a><h3><a name="GtkMisc--xalign"></a>The <code class="literal">"xalign"</code> property</h3><a class="indexterm" name="id4274997"></a><pre class="programlisting"> "xalign" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> : Read / Write</pre><p>The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.</p><p>Allowed values: [0,1]</p><p>Default value: 0.5</p></div><hr><div class="refsect2" lang="en"><a name="id4275028"></a><h3><a name="GtkMisc--xpad"></a>The <code class="literal">"xpad"</code> property</h3><a class="indexterm" name="id4275044"></a><pre class="programlisting"> "xpad" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>The amount of space to add on the left and right of the widget, in pixels.</p><p>Allowed values: >= 0</p><p>Default value: 0</p></div><hr><div class="refsect2" lang="en"><a name="id4275076"></a><h3><a name="GtkMisc--yalign"></a>The <code class="literal">"yalign"</code> property</h3><a class="indexterm" name="id4275092"></a><pre class="programlisting"> "yalign" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> : Read / Write</pre><p>The vertical alignment, from 0 (top) to 1 (bottom).</p><p>Allowed values: [0,1]</p><p>Default value: 0.5</p></div><hr><div class="refsect2" lang="en"><a name="id4275124"></a><h3><a name="GtkMisc--ypad"></a>The <code class="literal">"ypad"</code> property</h3><a class="indexterm" name="id4275140"></a><pre class="programlisting"> "ypad" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>The amount of space to add on the top and bottom of the widget, in pixels.</p><p>Allowed values: >= 0</p><p>Default value: 0</p></div></div><div class="refsect1" lang="en"><a name="id4275173"></a><div class="refsect2" lang="en"><a name="id4275174"></a></div><hr><div class="refsect2" lang="en"><a name="id4275175"></a></div></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -