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

📄 gtkiconview.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
  "<a class="link" href="GtkIconView.html#GtkIconView-set-scroll-adjustments">set-scroll-adjustments</a>"                         : Run Last  "<a class="link" href="GtkIconView.html#GtkIconView-toggle-cursor-item">toggle-cursor-item</a>"                             : Run Last / Action  "<a class="link" href="GtkIconView.html#GtkIconView-unselect-all">unselect-all</a>"                                   : Run Last / Action</pre></div><div class="refsect1" lang="en"><a name="id3779630"></a><h2>Description</h2><p><a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a> provides an alternative view on a list model. It displays the model as a grid of icons with labels. Like <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a>, it allows to select one or multiple items (depending on the selection mode, see <a class="link" href="GtkIconView.html#gtk-icon-view-set-selection-mode"><code class="function">gtk_icon_view_set_selection_mode()</code></a>).In addition to selection with the arrow keys, <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a> supportsrubberband selection, which is controlled by dragging the pointer.</p></div><div class="refsect1" lang="en"><a name="id3779684"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id3779694"></a><h3><a name="GtkIconView-struct"></a>GtkIconView</h3><a class="indexterm" name="id3779706"></a><pre class="programlisting">typedef struct _GtkIconView GtkIconView;</pre><p>The <span class="structname">GtkIconView</span> struct contains onlyprivate fields and should not be directly accessed.</p></div><hr><div class="refsect2" lang="en"><a name="id3779726"></a><h3><a name="GtkIconViewForeachFunc"></a>GtkIconViewForeachFunc ()</h3><a class="indexterm" name="id3779739"></a><pre class="programlisting">void                (*GtkIconViewForeachFunc)           (<a class="link" href="GtkIconView.html" title="GtkIconView">GtkIconView</a> *icon_view,                                                         <a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> data);</pre><p>A function used by <a class="link" href="GtkIconView.html#gtk-icon-view-selected-foreach"><code class="function">gtk_icon_view_selected_foreach()</code></a> to map allselected rows.  It will be called on every selected row in the view.</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>&#160;:</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>path</code></em>&#160;:</span></p></td><td>The <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> of a selected row</td></tr><tr><td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td><td>user data</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3779858"></a><h3><a name="gtk-icon-view-new"></a>gtk_icon_view_new ()</h3><a class="indexterm" name="id3779874"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_icon_view_new                   (void);</pre><p>Creates a new <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a> widget</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> A newly created <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a> widget</td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3779936"></a><h3><a name="gtk-icon-view-new-with-model"></a>gtk_icon_view_new_with_model ()</h3><a class="indexterm" name="id3779951"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_icon_view_new_with_model        (<a class="link" href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a> *model);</pre><p>Creates a new <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a> widget with the model <em class="parameter"><code>model</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>model</code></em>&#160;:</span></p></td><td> The model.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> A newly created <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a> widget.</td></tr></tbody></table></div><p class="since">Since  2.6 </p></div><hr><div class="refsect2" lang="en"><a name="id3780041"></a><h3><a name="gtk-icon-view-set-model"></a>gtk_icon_view_set_model ()</h3><a class="indexterm" name="id3780057"></a><pre class="programlisting">void                gtk_icon_view_set_model             (<a class="link" href="GtkIconView.html" title="GtkIconView">GtkIconView</a> *icon_view,                                                         <a class="link" href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a> *model);</pre><p>Sets the model for a <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a>.  If the <em class="parameter"><code>icon_view</code></em> already has a model set, it will remove it before setting the new model.  If <em class="parameter"><code>model</code></em> is <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, thenit will unset the old model.</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>&#160;:</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>model</code></em>&#160;:</span></p></td><td> The model.</td></tr></tbody></table></div><p class="since">Since  2.6 </p></div><hr><div class="refsect2" lang="en"><a name="id3780175"></a><h3><a name="gtk-icon-view-get-model"></a>gtk_icon_view_get_model ()</h3><a class="indexterm" name="id3780191"></a><pre class="programlisting"><a class="link" href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a>*       gtk_icon_view_get_model             (<a class="link" href="GtkIconView.html" title="GtkIconView">GtkIconView</a> *icon_view);</pre><p>Returns the model the <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a> is based on.  Returns <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if themodel is unset.</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>&#160;:</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>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if none is currently being used.</td></tr></tbody></table></div><p class="since">Since  2.6 </p></div><hr><div class="refsect2" lang="en"><a name="id3780304"></a><h3><a name="gtk-icon-view-set-text-column"></a>gtk_icon_view_set_text_column ()</h3><a class="indexterm" name="id3780320"></a><pre class="programlisting">void                gtk_icon_view_set_text_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 text for <em class="parameter"><code>icon_view</code></em> to be <em class="parameter"><code>column</code></em>. The textcolumn 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>.</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>&#160;:</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>&#160;:</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>

⌨️ 快捷键说明

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