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

📄 gtkcellview.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>pixbuf</code></em>&#160;:</span></p></td><td> the image to display in the cell view</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="GtkCellView.html" title="GtkCellView"><span class="type">GtkCellView</span></a> widget.</td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3774285"></a><h3><a name="gtk-cell-view-set-model"></a>gtk_cell_view_set_model ()</h3><a class="indexterm" name="id3774301"></a><pre class="programlisting">void                gtk_cell_view_set_model             (<a class="link" href="GtkCellView.html" title="GtkCellView">GtkCellView</a> *cell_view,                                                         <a class="link" href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a> *model);</pre><p>Sets the model for <em class="parameter"><code>cell_view</code></em>.  If <em class="parameter"><code>cell_view</code></em> already has a modelset, 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>, then it 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>cell_view</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkCellView.html" title="GtkCellView"><span class="type">GtkCellView</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>model</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTreeModel.html" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a></td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3774425"></a><h3><a name="gtk-cell-view-set-displayed-row"></a>gtk_cell_view_set_displayed_row ()</h3><a class="indexterm" name="id3774441"></a><pre class="programlisting">void                gtk_cell_view_set_displayed_row     (<a class="link" href="GtkCellView.html" title="GtkCellView">GtkCellView</a> *cell_view,                                                         <a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path);</pre><p>Sets the row of the model that is currently displayedby the <a class="link" href="GtkCellView.html" title="GtkCellView"><span class="type">GtkCellView</span></a>. If the path is unset, then thecontents of the cellview "stick" at their last value;this is not normally a desired result, but may bea needed intermediate state if say, the model forthe <a class="link" href="GtkCellView.html" title="GtkCellView"><span class="type">GtkCellView</span></a> becomes temporarily empty.</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>cell_view</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkCellView.html" title="GtkCellView"><span class="type">GtkCellView</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> or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset.</td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3774565"></a><h3><a name="gtk-cell-view-get-displayed-row"></a>gtk_cell_view_get_displayed_row ()</h3><a class="indexterm" name="id3774581"></a><pre class="programlisting"><a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a>*        gtk_cell_view_get_displayed_row     (<a class="link" href="GtkCellView.html" title="GtkCellView">GtkCellView</a> *cell_view);</pre><p>Returns a <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> referring to the currently displayed row. If no row is currently displayed, <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</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>cell_view</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkCellView.html" title="GtkCellView"><span class="type">GtkCellView</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the currently displayed row or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3774685"></a><h3><a name="gtk-cell-view-get-size-of-row"></a>gtk_cell_view_get_size_of_row ()</h3><a class="indexterm" name="id3774701"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_cell_view_get_size_of_row       (<a class="link" href="GtkCellView.html" title="GtkCellView">GtkCellView</a> *cell_view,                                                         <a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path,                                                         <a class="link" href="GtkWidget.html#GtkRequisition">GtkRequisition</a> *requisition);</pre><p>Sets <em class="parameter"><code>requisition</code></em> to the size needed by <em class="parameter"><code>cell_view</code></em> to display the model row pointed to by <em class="parameter"><code>path</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>cell_view</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkCellView.html" title="GtkCellView"><span class="type">GtkCellView</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>requisition</code></em>&#160;:</span></p></td><td> return location for the size </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></td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3774856"></a><h3><a name="gtk-cell-view-set-background-color"></a>gtk_cell_view_set_background_color ()</h3><a class="indexterm" name="id3774873"></a><pre class="programlisting">void                gtk_cell_view_set_background_color  (<a class="link" href="GtkCellView.html" title="GtkCellView">GtkCellView</a> *cell_view,                                                         const <ahref="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor">GdkColor</a> *color);</pre><p>Sets the background color of <em class="parameter"><code>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>cell_view</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkCellView.html" title="GtkCellView"><span class="type">GtkCellView</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></p></td><td> the new background color</td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3774965"></a><h3><a name="gtk-cell-view-get-cell-renderers"></a>gtk_cell_view_get_cell_renderers ()</h3><a class="indexterm" name="id3774981"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a>*              gtk_cell_view_get_cell_renderers    (<a class="link" href="GtkCellView.html" title="GtkCellView">GtkCellView</a> *cell_view);</pre><p>Returns the cell renderers which have been added to <em class="parameter"><code>cell_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>cell_view</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkCellView.html" title="GtkCellView"><span class="type">GtkCellView</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a list of cell renderers. The list, but not the  renderers has been newly allocated and should be freed with  <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a> when no longer needed.</td></tr></tbody></table></div><p class="since">Since  2.6</p></div></div><div class="refsect1" lang="en"><a name="id3775075"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id3775086"></a><h3><a name="GtkCellView--background"></a>The <code class="literal">"background"</code> property</h3><a class="indexterm" name="id3775102"></a><pre class="programlisting">  "background"               <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a>            : Write</pre><p>Background color as a string.</p><p>Default value: NULL</p></div><hr><div class="refsect2" lang="en"><a name="id3775128"></a><h3><a name="GtkCellView--background-gdk"></a>The <code class="literal">"background-gdk"</code> property</h3><a class="indexterm" name="id3775145"></a><pre class="programlisting">  "background-gdk"           <ahref="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor">GdkColor</a>              : Read / Write</pre><p>Background color as a GdkColor.</p></div><hr><div class="refsect2" lang="en"><a name="id3775168"></a><h3><a name="GtkCellView--background-set"></a>The <code class="literal">"background-set"</code> property</h3><a class="indexterm" name="id3775185"></a><pre class="programlisting">  "background-set"           <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>Whether this tag affects the background color.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3775212"></a><h3><a name="GtkCellView--model"></a>The <code class="literal">"model"</code> property</h3><a class="indexterm" name="id3775228"></a><pre class="programlisting">  "model"                    <a class="link" href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a>          : Read / Write</pre><p>The model for cell view</p><p>since 2.10</p><p></p></div></div><div class="refsect1" lang="en"><a name="id3775260"></a><div class="refsect2" lang="en"><a name="id3775261"></a></div><hr><div class="refsect2" lang="en"><a name="id3775262"></a></div></div></div></body></html>

⌨️ 快捷键说明

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