⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gtkmisc.sgml

📁 This GTK+ version 2.12.3. GTK+ is a multi-platform toolkit for creating graphical user interfaces.
💻 SGML
字号:
<!-- ##### SECTION Title ##### -->GtkMisc<!-- ##### SECTION Short_Description ##### -->Base class for widgets with alignments and padding<!-- ##### SECTION Long_Description ##### --><para>The #GtkMisc widget is an abstract widget which is not useful itself, butis used to derive subclasses which have alignment and padding attributes.</para><para>The horizontal and vertical padding attributes allows extra space to beadded around the widget.</para><para>The horizontal and vertical alignment attributes enable the widget to bepositioned within its allocated area. Note that if the widget is added toa container in such a way that it expands automatically to fill itsallocated area, the alignment settings will not alter the widgets position.</para><!-- ##### SECTION See_Also ##### --><para></para><!-- ##### SECTION Stability_Level ##### --><!-- ##### STRUCT GtkMisc ##### --><para>The #GtkMisc-struct struct contains the following fields.(These fields should be considered read-only. They should never be set byan application.)<informaltable pgwide="1" frame="none" role="struct"><tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/><tbody><row><entry>#gfloat <structfield>xalign</structfield>;</entry><entry>the horizontal alignment, from 0 (left) to 1 (right).</entry></row><row><entry>#gfloat <structfield>yalign</structfield>;</entry><entry>the vertical alignment, from 0 (top) to 1 (bottom).</entry></row><row><entry>#guint16 <structfield>xpad</structfield>;</entry><entry>the amount of space to add on the left and right of the widget,in pixels.</entry></row><row><entry>#guint16 <structfield>ypad</structfield>;</entry><entry>the amount of space to add on the top and bottom of the widget,in pixels.</entry></row></tbody></tgroup></informaltable></para><!-- ##### ARG GtkMisc:xalign ##### --><para></para><!-- ##### ARG GtkMisc:xpad ##### --><para></para><!-- ##### ARG GtkMisc:yalign ##### --><para></para><!-- ##### ARG GtkMisc:ypad ##### --><para></para><!-- ##### FUNCTION gtk_misc_set_alignment ##### --><para>Sets the alignment of the widget.</para>@misc: a #GtkMisc.@xalign: the horizontal alignment, from 0 (left) to 1 (right).@yalign: the vertical alignment, from 0 (top) to 1 (bottom).<!-- ##### FUNCTION gtk_misc_set_padding ##### --><para>Sets the amount of space to add around the widget.</para>@misc: a #GtkMisc.@xpad: the amount of space to add on the left and right of the widget,in pixels.@ypad: the amount of space to add on the top and bottom of the widget,in pixels.<!-- ##### FUNCTION gtk_misc_get_alignment ##### --><para></para>@misc: @xalign: @yalign: <!-- ##### FUNCTION gtk_misc_get_padding ##### --><para></para>@misc: @xpad: @ypad: 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -