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

📄 gtkiconview.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_icon_view_get_item_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,                                                         <a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> **path,                                                         <a class="link" href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> **cell);</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.In contrast to <a class="link" href="GtkIconView.html#gtk-icon-view-get-path-at-pos"><code class="function">gtk_icon_view_get_path_at_pos()</code></a>, this function also obtains the cell at the specified position. The returned path shouldbe freed with <a class="link" href="GtkTreeModel.html#gtk-tree-path-free"><code class="function">gtk_tree_path_free()</code></a>.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>&#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>x</code></em>&#160;:</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>&#160;:</span></p></td><td> The y position to be identified</td></tr><tr><td><p><span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></p></td><td> Return location for the path, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>cell</code></em>&#160;:</span></p></td><td> Return location for the renderer responsible for the cell  at (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>), or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></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 an item exists at the specified position</td></tr></tbody></table></div><p class="since">Since  2.8</p></div><hr><div class="refsect2" lang="en"><a name="id3781443"></a><h3><a name="gtk-icon-view-convert-widget-to-bin-window-coords"></a>gtk_icon_view_convert_widget_to_bin_window_coords ()</h3><a class="indexterm" name="id3781460"></a><pre class="programlisting">void                gtk_icon_view_convert_widget_to_bin_window_coords                                                        (<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> wx,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> wy,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *bx,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *by);</pre><p>Converts widget coordinates to coordinates for the bin_window,as expected by e.g. <a class="link" href="GtkIconView.html#gtk-icon-view-get-path-at-pos"><code class="function">gtk_icon_view_get_path_at_pos()</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>&#160;:</span></p></td><td></td></tr><tr><td><p><span class="term"><em class="parameter"><code>wx</code></em>&#160;:</span></p></td><td> X coordinate relative to the widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>wy</code></em>&#160;:</span></p></td><td> Y coordinate relative to the widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>bx</code></em>&#160;:</span></p></td><td> return location for bin_window X coordinate</td></tr><tr><td><p><span class="term"><em class="parameter"><code>by</code></em>&#160;:</span></p></td><td> return location for bin_window Y coordinate</td></tr></tbody></table></div><p class="since">Since  2.12</p></div><hr><div class="refsect2" lang="en"><a name="id3781618"></a><h3><a name="gtk-icon-view-set-cursor"></a>gtk_icon_view_set_cursor ()</h3><a class="indexterm" name="id3781634"></a><pre class="programlisting">void                gtk_icon_view_set_cursor            (<a class="link" href="GtkIconView.html" title="GtkIconView">GtkIconView</a> *icon_view,                                                         <a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path,                                                         <a class="link" href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> start_editing);</pre><p>Sets the current keyboard focus to be at <em class="parameter"><code>path</code></em>, and selects it.  This isuseful when you want to focus the user's attention on a particular item.  If <em class="parameter"><code>cell</code></em> is not <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, then focus is given to the cell specified by it. Additionally, if <em class="parameter"><code>start_editing</code></em> is <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then editing should be started in the specified cell.  </p><p>This function is often followed by <code class="literal">gtk_widget_grab_focus (icon_view)</code> in order to give keyboard focus to the widget.  Please note that editing can only happen when the widget is realized.</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>path</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>cell</code></em>&#160;:</span></p></td><td> One of the cell renderers of <em class="parameter"><code>icon_view</code></em>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>start_editing</code></em>&#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 specified cell should start being edited.</td></tr></tbody></table></div><p class="since">Since  2.8</p></div><hr><div class="refsect2" lang="en"><a name="id3781853"></a><h3><a name="gtk-icon-view-get-cursor"></a>gtk_icon_view_get_cursor ()</h3><a class="indexterm" name="id3781869"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_icon_view_get_cursor            (<a class="link" href="GtkIconView.html" title="GtkIconView">GtkIconView</a> *icon_view,                                                         <a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> **path,                                                         <a class="link" href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> **cell);</pre><p>Fills in <em class="parameter"><code>path</code></em> and <em class="parameter"><code>cell</code></em> with the current cursor path and cell. If the cursor isn't currently set, then *<em class="parameter"><code>path</code></em> will be <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>.  If no cell currently has focus, then *<em class="parameter"><code>cell</code></em> will be <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p><p>The returned <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> must be freed with <a class="link" href="GtkTreeModel.html#gtk-tree-path-free"><code class="function">gtk_tree_path_free()</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>&#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> Ret

⌨️ 快捷键说明

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