📄 gtktable.html
字号:
><TABLEBORDER="0"WIDTH="100%"BGCOLOR="#FFD0D0"CELLSPACING="0"CELLPADDING="4"CLASS="CALSTABLE"><TBODY><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>rows</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The number of rows the new table should have.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>columns</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The number of columns the new table should have.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>homogeneous</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">If set to TRUE, all table cells are resized to the size of the cellcontaining the largest widget.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><ICLASS="EMPHASIS">Returns</I> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">A pointer to the the newly created table widget. </TD></TR></TBODY></TABLE><P></P></DIV></DIV><HR><DIVCLASS="REFSECT2"><ANAME="AEN40182"></A><H3><ANAME="GTK-TABLE-RESIZE"></A>gtk_table_resize ()</H3><TABLEBORDER="0"BGCOLOR="#D6E8FF"WIDTH="100%"CELLPADDING="6"><TR><TD><PRECLASS="PROGRAMLISTING">void gtk_table_resize (<AHREF="gtktable.html">GtkTable</A> *table, <AHREF=../glib/glib-basic-types.html#GUINT>guint</A> rows, <AHREF=../glib/glib-basic-types.html#GUINT>guint</A> columns);</PRE></TD></TR></TABLE><P>If you need to change a table's size <ICLASS="EMPHASIS">after</I> it has been created, this function allows you to do so.</P><DIVCLASS="INFORMALTABLE"><ANAME="AEN40191"></A><P></P><TABLEBORDER="0"WIDTH="100%"BGCOLOR="#FFD0D0"CELLSPACING="0"CELLPADDING="4"CLASS="CALSTABLE"><TBODY><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>table</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The <AHREF="gtktable.html">GtkTable</A> you wish to change the size of.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>rows</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The new number of rows.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>columns</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The new number of columns. </TD></TR></TBODY></TABLE><P></P></DIV></DIV><HR><DIVCLASS="REFSECT2"><ANAME="AEN40209"></A><H3><ANAME="GTK-TABLE-ATTACH"></A>gtk_table_attach ()</H3><TABLEBORDER="0"BGCOLOR="#D6E8FF"WIDTH="100%"CELLPADDING="6"><TR><TD><PRECLASS="PROGRAMLISTING">void gtk_table_attach (<AHREF="gtktable.html">GtkTable</A> *table, <AHREF="gtkwidget.html">GtkWidget</A> *child, <AHREF=../glib/glib-basic-types.html#GUINT>guint</A> left_attach, <AHREF=../glib/glib-basic-types.html#GUINT>guint</A> right_attach, <AHREF=../glib/glib-basic-types.html#GUINT>guint</A> top_attach, <AHREF=../glib/glib-basic-types.html#GUINT>guint</A> bottom_attach, <AHREF="gtk-standard-enumerations.html#GTKATTACHOPTIONS">GtkAttachOptions</A> xoptions, <AHREF="gtk-standard-enumerations.html#GTKATTACHOPTIONS">GtkAttachOptions</A> yoptions, <AHREF=../glib/glib-basic-types.html#GUINT>guint</A> xpadding, <AHREF=../glib/glib-basic-types.html#GUINT>guint</A> ypadding);</PRE></TD></TR></TABLE><P>Adds a widget to a table. The number of 'cells' that a widget will occupy isspecified by <TTCLASS="PARAMETER"><I>left_attach</I></TT>, <TTCLASS="PARAMETER"><I>right_attach</I></TT>, <TTCLASS="PARAMETER"><I>top_attach</I></TT> and <TTCLASS="PARAMETER"><I>bottom_attach</I></TT>.These each represent the leftmost, rightmost, uppermost and lowest columnand row numbers of the table. (Columns and rows are indexed from zero).</P><DIVCLASS="INFORMALTABLE"><ANAME="AEN40228"></A><P></P><TABLEBORDER="0"WIDTH="100%"BGCOLOR="#FFD0D0"CELLSPACING="0"CELLPADDING="4"CLASS="CALSTABLE"><TBODY><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>table</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The <AHREF="gtktable.html">GtkTable</A> to add a new widget to.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>child</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The widget to add.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>left_attach</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">the column number to attach the left side of a child widget to.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>right_attach</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">the column number to attach the right side of a child widget to.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>top_attach</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">the row number to attach the left side of a child widget to.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>bottom_attach</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">the column number to attach the right side of a child widget to.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>xoptions</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">Used to specify the properties of the child widget when the table is resized.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>yoptions</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The same as xoptions, except this field determines behaviour of vertical resizing.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>xpadding</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">An integer value specifying the padding on the left and right of the widget being added to the table.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>ypadding</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The amount of padding above and below the child widget. </TD></TR></TBODY></TABLE><P></P></DIV></DIV><HR><DIVCLASS="REFSECT2"><ANAME="AEN40274"></A><H3><ANAME="GTK-TABLE-ATTACH-DEFAULTS"></A>gtk_table_attach_defaults ()</H3><TABLEBORDER="0"BGCOLOR="#D6E8FF"WIDTH="100%"CELLPADDING="6"><TR><TD><PRECLASS="PROGRAMLISTING">void gtk_table_attach_defaults (<AHREF="gtktable.html">GtkTable</A> *table, <AHREF="gtkwidget.html">GtkWidget</A> *widget, <AHREF=../glib/glib-basic-types.html#GUINT>guint</A> left_attach, <AHREF=../glib/glib-basic-types.html#GUINT>guint</A> right_attach, <AHREF=../glib/glib-basic-types.html#GUINT>guint</A> top_attach, <AHREF=../glib/glib-basic-types.html#GUINT>guint</A> bottom_attach);</PRE></TD></TR></TABLE><P>As there are many options associated with <AHREF="gtktable.html#GTK-TABLE-ATTACH">gtk_table_attach</A>(), this convenience function provides the programmer with a means to add children to a table with identical padding and expansion options.</P><DIVCLASS="INFORMALTABLE"><ANAME="AEN40286"></A><P></P><TABLEBORDER="0"WIDTH="100%"BGCOLOR="#FFD0D0"CELLSPACING="0"CELLPADDING="4"CLASS="CALSTABLE"><TBODY><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>table</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The table to add a new child widget to.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>widget</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The child widget to add.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>left_attach</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The column number to attach the left side of the child widget to.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>right_attach</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The column number to attach the right side of the child widget to.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>top_attach</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The row number to attach the top of the child widget to.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>bottom_attach</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">The row number to attach the bottom of the child widget to. </TD></TR></TBODY></TABLE><P></P></DIV></DIV><HR><DIVCLASS="REFSECT2"><ANAME="AEN40315"></A><H3><ANAME="GTK-TABLE-SET-ROW-SPACING"></A>gtk_table_set_row_spacing ()</H3><TABLEBORDER="0"BGCOLOR="#D6E8FF"WIDTH="100%"CELLPADDING="6"><TR><TD><PRECLASS="PROGRAMLISTING">void gtk_table_set_row_spacing (<AHREF="gtktable.html">GtkTable</A> *table, <AHREF=../glib/glib-basic-types.html#GUINT>guint</A> row, <AHREF=../glib/glib-basic-types.html#GUINT>guint</A> spacing);</PRE></TD></TR></TABLE><P>changes the space between a given table row and its surrounding rows.</P><DIVCLASS="INFORMALTABLE"><ANAME="AEN40323"></A><P></P><TABLEBORDER="0"WIDTH="100%"BGCOLOR="#FFD0D0"CELLSPACING="0"CELLPADDING="4"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -