📄 gtkiconview.html
字号:
<div class="refsect2" lang="en"><a name="id3780428"></a><h3><a name="gtk-icon-view-get-text-column"></a>gtk_icon_view_get_text_column ()</h3><a class="indexterm" name="id3780444"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> gtk_icon_view_get_text_column (<a class="link" href="GtkIconView.html" title="GtkIconView">GtkIconView</a> *icon_view);</pre><p>Returns the column with text for <em class="parameter"><code>icon_view</code></em>.</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>icon_view</code></em> :</span></p></td><td> A <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the text column, or -1 if it's unset.</td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3780525"></a><h3><a name="gtk-icon-view-set-markup-column"></a>gtk_icon_view_set_markup_column ()</h3><a class="indexterm" name="id3780541"></a><pre class="programlisting">void gtk_icon_view_set_markup_column (<a class="link" href="GtkIconView.html" title="GtkIconView">GtkIconView</a> *icon_view, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> column);</pre><p>Sets the column with markup information for <em class="parameter"><code>icon_view</code></em> to be<em class="parameter"><code>column</code></em>. The markup column must be of type <ahref="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"><span class="type">G_TYPE_STRING</span></a>.If the markup column is set to something, it overridesthe text column set by <a class="link" href="GtkIconView.html#gtk-icon-view-set-text-column"><code class="function">gtk_icon_view_set_text_column()</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>icon_view</code></em> :</span></p></td><td> A <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>column</code></em> :</span></p></td><td> A column in the currently used model, or -1 to display no text</td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3780662"></a><h3><a name="gtk-icon-view-get-markup-column"></a>gtk_icon_view_get_markup_column ()</h3><a class="indexterm" name="id3780678"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> gtk_icon_view_get_markup_column (<a class="link" href="GtkIconView.html" title="GtkIconView">GtkIconView</a> *icon_view);</pre><p>Returns the column with markup text for <em class="parameter"><code>icon_view</code></em>.</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>icon_view</code></em> :</span></p></td><td> A <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the markup column, or -1 if it's unset.</td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3780760"></a><h3><a name="gtk-icon-view-set-pixbuf-column"></a>gtk_icon_view_set_pixbuf_column ()</h3><a class="indexterm" name="id3780776"></a><pre class="programlisting">void gtk_icon_view_set_pixbuf_column (<a class="link" href="GtkIconView.html" title="GtkIconView">GtkIconView</a> *icon_view, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> column);</pre><p>Sets the column with pixbufs for <em class="parameter"><code>icon_view</code></em> to be <em class="parameter"><code>column</code></em>. The pixbufcolumn must be of type <span class="type">GDK_TYPE_PIXBUF</span></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>icon_view</code></em> :</span></p></td><td> A <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>column</code></em> :</span></p></td><td> A column in the currently used model, or -1 to disable</td></tr></tbody></table></div><p class="since">Since 2.6 </p></div><hr><div class="refsect2" lang="en"><a name="id3780885"></a><h3><a name="gtk-icon-view-get-pixbuf-column"></a>gtk_icon_view_get_pixbuf_column ()</h3><a class="indexterm" name="id3780900"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> gtk_icon_view_get_pixbuf_column (<a class="link" href="GtkIconView.html" title="GtkIconView">GtkIconView</a> *icon_view);</pre><p>Returns the column with pixbufs for <em class="parameter"><code>icon_view</code></em>.</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>icon_view</code></em> :</span></p></td><td> A <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the pixbuf column, or -1 if it's unset.</td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3780982"></a><h3><a name="gtk-icon-view-get-path-at-pos"></a>gtk_icon_view_get_path_at_pos ()</h3><a class="indexterm" name="id3780998"></a><pre class="programlisting"><a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a>* gtk_icon_view_get_path_at_pos (<a class="link" href="GtkIconView.html" title="GtkIconView">GtkIconView</a> *icon_view, <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>Finds the path at the point (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>), relative to bin_window coordinates.See <a class="link" href="GtkIconView.html#gtk-icon-view-get-item-at-pos"><code class="function">gtk_icon_view_get_item_at_pos()</code></a>, if you are also interested inthe cell at the specified position. See <a class="link" href="GtkIconView.html#gtk-icon-view-convert-widget-to-bin-window-coords"><code class="function">gtk_icon_view_convert_widget_to_bin_window_coords()</code></a> for convertingwidget coordinates to bin_window coordinates.</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>icon_view</code></em> :</span></p></td><td> A <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td><td> The x position to be identified</td></tr><tr><td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td><td> The y position to be identified</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> The <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> corresponding to the icon or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>if no icon exists at that position.</td></tr></tbody></table></div><p class="since">Since 2.6 </p></div><hr><div class="refsect2" lang="en"><a name="id3781173"></a><h3><a name="gtk-icon-view-get-item-at-pos"></a>gtk_icon_view_get_item_at_pos ()</h3><a class="indexterm" name="id3781188"></a><pre class="programlisting"><a
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -