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

📄 gtktable.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 4 页
字号:
                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> left_attach,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> right_attach,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> top_attach,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> bottom_attach);</pre><p>As there are many options associated with <a class="link" href="GtkTable.html#gtk-table-attach"><code class="function">gtk_table_attach()</code></a>, this convenience function provides the programmer with a means to add children to a table with identical padding and expansion options. The values used for the <a class="link" href="gtk-Standard-Enumerations.html#GtkAttachOptions"><span class="type">GtkAttachOptions</span></a> are <code class="literal">GTK_EXPAND | GTK_FILL</code>, and the padding is set to 0.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>table</code></em>&#160;:</span></p></td><td>The table to add a new child widget to.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></p></td><td>The child widget to add.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>left_attach</code></em>&#160;:</span></p></td><td>The column number to attach the left side of the child widget to.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>right_attach</code></em>&#160;:</span></p></td><td>The column number to attach the right side of the child widget to.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>top_attach</code></em>&#160;:</span></p></td><td>The row number to attach the top of the child widget to.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>bottom_attach</code></em>&#160;:</span></p></td><td>The row number to attach the bottom of the child widget to.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4102515"></a><h3><a name="gtk-table-set-row-spacing"></a>gtk_table_set_row_spacing ()</h3><a class="indexterm" name="id4102529"></a><pre class="programlisting">void                gtk_table_set_row_spacing           (<a class="link" href="GtkTable.html" title="GtkTable">GtkTable</a> *table,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> row,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> spacing);</pre><p>Changes the space between a given table row and the subsequent row.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>table</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> containing the row whose properties you wish to change.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>row</code></em>&#160;:</span></p></td><td>row number whose spacing will be changed.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>spacing</code></em>&#160;:</span></p></td><td>number of pixels that the spacing should take up.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4102629"></a><h3><a name="gtk-table-set-col-spacing"></a>gtk_table_set_col_spacing ()</h3><a class="indexterm" name="id4102643"></a><pre class="programlisting">void                gtk_table_set_col_spacing           (<a class="link" href="GtkTable.html" title="GtkTable">GtkTable</a> *table,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> column,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> spacing);</pre><p>Alters the amount of space between a given table column and the following column.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>table</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>column</code></em>&#160;:</span></p></td><td>the column whose spacing should be changed.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>spacing</code></em>&#160;:</span></p></td><td>number of pixels that the spacing should take up.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4102743"></a><h3><a name="gtk-table-set-row-spacings"></a>gtk_table_set_row_spacings ()</h3><a class="indexterm" name="id4102757"></a><pre class="programlisting">void                gtk_table_set_row_spacings          (<a class="link" href="GtkTable.html" title="GtkTable">GtkTable</a> *table,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> spacing);</pre><p>Sets the space between every row in <em class="parameter"><code>table</code></em> equal to <em class="parameter"><code>spacing</code></em>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>table</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>spacing</code></em>&#160;:</span></p></td><td>the number of pixels of space to place between every row in the table.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4102845"></a><h3><a name="gtk-table-set-col-spacings"></a>gtk_table_set_col_spacings ()</h3><a class="indexterm" name="id4102859"></a><pre class="programlisting">void                gtk_table_set_col_spacings          (<a class="link" href="GtkTable.html" title="GtkTable">GtkTable</a> *table,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> spacing);</pre><p>Sets the space between every column in <em class="parameter"><code>table</code></em> equal to <em class="parameter"><code>spacing</code></em>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>table</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>spacing</code></em>&#160;:</span></p></td><td>the number of pixels of space to place between every column in the table.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4102948"></a><h3><a name="gtk-table-set-homogeneous"></a>gtk_table_set_homogeneous ()</h3><a class="indexterm" name="id4102962"></a><pre class="programlisting">void                gtk_table_set_homogeneous           (<a class="link" href="GtkTable.html" title="GtkTable">GtkTable</a> *table,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> homogeneous);</pre><p>Changes the homogenous property of table cells, ie. whether all cells are an equal size or not.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>table</code></em>&#160;:</span></p></td><td>The <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> you wish to set the homogeneous properties of.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>homogeneous</code></em>&#160;:</span></p></td><td>Set to <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to ensure all table cells are the same size. Setto <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if this is not your desired behaviour.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4103062"></a><h3><a name="gtk-table-get-default-row-spacing"></a>gtk_table_get_default_row_spacing ()</h3><a class="indexterm" name="id4103077"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a>               gtk_table_get_default_row_spacing   (<a class="link" href="GtkTable.html" title="GtkTable">GtkTable</a> *table);</pre><p>Gets the default row spacing for the table. This isthe spacing that will be used for newly added rows.(See <a class="link" href="GtkTable.html#gtk-table-set-row-spacings"><code class="function">gtk_table_set_row_spacings()</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>table</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the default row spacing</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4103157"></a><h3><a name="gtk-table-get-homogeneous"></a>gtk_table_get_homogeneous ()</h3><a class="indexterm" name="id4103170"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_table_get_homogeneous           (<a class="link" href="GtkTable.html" title="GtkTable">GtkTable</a> *table);</pre><p>Returns whether the table cells are all constrained to the samewidth and height. (See <code class="function">gtk_table_set_homogenous()</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>table</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the cells are all constrained to the same size

⌨️ 快捷键说明

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