KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/share/gtk-doc/html/gtk/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/gtk-doc/html/gtk/GtkCellLayout.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GtkCellLayout</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="prev" href="GtkTreeModelFilter.html" title="GtkTreeModelFilter">
<link rel="next" href="GtkCellRenderer.html" title="GtkCellRenderer">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part&#160;I.&#160;GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part&#160;II.&#160;GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part&#160;III.&#160;GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part&#160;IV.&#160;Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and 
         GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="part" href="pt05.html" title="Part&#160;V.&#160;GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkTreeModelFilter.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="TreeWidgetObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkCellRenderer.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3207982" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id3208480" class="shortcut">Description</a>
                  &#160;|&#160;
                  <a href="#id3208376" class="shortcut">Object Hierarchy</a>
                  &#160;|&#160;
                  <a href="#" class="shortcut"></a>
                  &#160;|&#160;
                  <a href="#id3208423" class="shortcut">Known Implementations</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkCellLayout"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3207982"></a><span class="refentrytitle">GtkCellLayout</span>
</h2>
<p>GtkCellLayout &#8212; An interface for packing cells</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;gtk/gtk.h&gt;


            <a href="GtkCellLayout.html#GtkCellLayout-struct">GtkCellLayout</a>;
            <a href="GtkCellLayout.html#GtkCellLayoutIface">GtkCellLayoutIface</a>;
void        (<a href="GtkCellLayout.html#GtkCellLayoutDataFunc">*GtkCellLayoutDataFunc</a>)        (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,
                                             <a href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a> *tree_model,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
void        <a href="GtkCellLayout.html#gtk-cell-layout-pack-start">gtk_cell_layout_pack_start</a>      (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> expand);
void        <a href="GtkCellLayout.html#gtk-cell-layout-pack-end">gtk_cell_layout_pack_end</a>        (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> expand);
void        <a href="GtkCellLayout.html#gtk-cell-layout-reorder">gtk_cell_layout_reorder</a>         (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> position);
void        <a href="GtkCellLayout.html#gtk-cell-layout-clear">gtk_cell_layout_clear</a>           (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout);
void        <a href="GtkCellLayout.html#gtk-cell-layout-set-attributes">gtk_cell_layout_set_attributes</a>  (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,
                                             ...);
void        <a href="GtkCellLayout.html#gtk-cell-layout-add-attribute">gtk_cell_layout_add_attribute</a>   (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *attribute,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> column);
void        <a href="GtkCellLayout.html#gtk-cell-layout-set-cell-data-func">gtk_cell_layout_set_cell_data_func</a>
                                            (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,
                                             <a href="GtkCellLayout.html#GtkCellLayoutDataFunc">GtkCellLayoutDataFunc</a> func,
                                             <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> func_data,
                                             <a
href="../glib/glib-Datasets.html#GDestroyNotify"
>GDestroyNotify</a> destroy);
void        <a href="GtkCellLayout.html#gtk-cell-layout-clear-attributes">gtk_cell_layout_clear_attributes</a>
                                            (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell);


</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3208376"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">

  GInterface
   +----GtkCellLayout
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3208401"></a><h2>Prerequisites</h2>
<p>
GtkCellLayout requires
 <a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>.</p>
</div>
<div class="refsect1" lang="en">
<a name="id3208423"></a><h2>Known Implementations</h2>
<p>
GtkCellLayout is implemented by
 <a href="GtkCellView.html" title="GtkCellView">GtkCellView</a>,  <a href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a>,  <a href="GtkTreeViewColumn.html" title="GtkTreeViewColumn">GtkTreeViewColumn</a>,  <a href="GtkComboBox.html" title="GtkComboBox">GtkComboBox</a>,  <a href="GtkIconView.html" title="GtkIconView">GtkIconView</a> and  <a href="GtkComboBoxEntry.html" title="GtkComboBoxEntry">GtkComboBoxEntry</a>.</p>
</div>
<div class="refsect1" lang="en">
<a name="id3208480"></a><h2>Description</h2>
<p>
<a href="GtkCellLayout.html" title="GtkCellLayout"><span class="type">GtkCellLayout</span></a> is an interface to be implemented by all objects which
want to provide a <span class="type">GtkTreeViewColumn-like</span> API for packing cells, setting
attributes and data funcs. 
</p>
<p>
One of the notable features provided by implementations of GtkCellLayout
are <span class="emphasis"><em>attributes</em></span>. Attributes let you set the properties
in flexible ways. They can just be set to constant values like regular
properties. But they can also be mapped to a column of the underlying 
tree model with <a href="GtkCellLayout.html#gtk-cell-layout-set-attributes"><code class="function">gtk_cell_layout_set_attributes()</code></a>, which means that the value 
of the attribute can change from cell to cell as they are rendered by the 
cell renderer. Finally, it is possible to specify a function with 
<a href="GtkCellLayout.html#gtk-cell-layout-set-cell-data-func"><code class="function">gtk_cell_layout_set_cell_data_func()</code></a> that is called to determine the value 
of the attribute for each cell that is rendered.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3208554"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3208565"></a><h3>
<a name="GtkCellLayout-struct"></a>GtkCellLayout</h3>
<a class="indexterm" name="id3208578"></a><pre class="programlisting">typedef struct _GtkCellLayout GtkCellLayout;</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3208594"></a><h3>
<a name="GtkCellLayoutIface"></a>GtkCellLayoutIface</h3>
<a class="indexterm" name="id3208606"></a><pre class="programlisting">typedef struct {
  GTypeInterface g_iface;

  /* Virtual Table */
  void (* pack_start)         (GtkCellLayout         *cell_layout,
                               GtkCellRenderer       *cell,
                               gboolean               expand);
  void (* pack_end)           (GtkCellLayout         *cell_layout,
                               GtkCellRenderer       *cell,
                               gboolean               expand);
  void (* clear)              (GtkCellLayout         *cell_layout);
  void (* add_attribute)      (GtkCellLayout         *cell_layout,
                               GtkCellRenderer       *cell,
                               const gchar           *attribute,
                               gint                   column);
  void (* set_cell_data_func) (GtkCellLayout         *cell_layout,
                               GtkCellRenderer       *cell,
                               GtkCellLayoutDataFunc  func,
                               gpointer               func_data,
                               GDestroyNotify         destroy);
  void (* clear_attributes)   (GtkCellLayout         *cell_layout,
                               GtkCellRenderer       *cell);
  void (* reorder)            (GtkCellLayout         *cell_layout,
                               GtkCellRenderer       *cell,
                               gint                   position);
} GtkCellLayoutIface;
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3208669"></a><h3>
<a name="GtkCellLayoutDataFunc"></a>GtkCellLayoutDataFunc ()</h3>
<a class="indexterm" name="id3208682"></a><pre class="programlisting">void        (*GtkCellLayoutDataFunc)        (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,
                                             <a href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a> *tree_model,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
A function which should set the value of <em class="parameter"><code>cell_layout</code></em>'s cell renderer(s)
as appropriate. 
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell_layout</code></em>&#160;:</span></td>
<td>a <a href="GtkCellLayout.html" title="GtkCellLayout"><span class="type">GtkCellLayout</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell</code></em>&#160;:</span></td>
<td>the cell renderer whose value is to be set
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tree_model</code></em>&#160;:</span></td>
<td>the model
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></td>
<td>a <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> indicating the row to set the value for
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
<td>user data passed to <a href="GtkCellLayout.html#gtk-cell-layout-set-cell-data-func"><code class="function">gtk_cell_layout_set_cell_data_func()</code></a>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3208851"></a><h3>
<a name="gtk-cell-layout-pack-start"></a>gtk_cell_layout_pack_start ()</h3>
<a class="indexterm" name="id3208867"></a><pre class="programlisting">void        gtk_cell_layout_pack_start      (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> expand);</pre>
<p>
Packs the <em class="parameter"><code>cell</code></em> into the beginning of <em class="parameter"><code>cell_layout</code></em>. If <em class="parameter"><code>expand</code></em> is <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>,
then the <em class="parameter"><code>cell</code></em> is allocated no more space than it needs. Any unused space
is divided evenly between cells for which <em class="parameter"><code>expand</code></em> is <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>.
</p>
<p>
Note that reusing the same cell renderer is not supported.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell_layout</code></em>&#160;:</span></td>
<td> A <a href="GtkCellLayout.html" title="GtkCellLayout"><span class="type">GtkCellLayout</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell</code></em>&#160;:</span></td>
<td> A <a href="GtkCellRenderer.html" title="GtkCellRenderer"><span class="type">GtkCellRenderer</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>expand</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>cell</code></em> is to be given extra space allocated to <em class="parameter"><code>cell_layout</code></em>.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3209059"></a><h3>
<a name="gtk-cell-layout-pack-end"></a>gtk_cell_layout_pack_end ()</h3>
<a class="indexterm" name="id3209074"></a><pre class="programlisting">void        gtk_cell_layout_pack_end        (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> expand);</pre>
<p>
Adds the <em class="parameter"><code>cell</code></em> to the end of <em class="parameter"><code>cell_layout</code></em>. If <em class="parameter"><code>expand</code></em> is <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>, then the
<em class="parameter"><code>cell</code></em> is allocated no more space than it needs. Any unused space is
divided evenly between cells for which <em class="parameter"><code>expand</code></em> is <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>.
</p>
<p>
Note that reusing the same cell renderer is not supported.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell_layout</code></em>&#160;:</span></td>
<td> A <a href="GtkCellLayout.html" title="GtkCellLayout"><span class="type">GtkCellLayout</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell</code></em>&#160;:</span></td>
<td> A <a href="GtkCellRenderer.html" title="GtkCellRenderer"><span class="type">GtkCellRenderer</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>expand</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>cell</code></em> is to be given extra space allocated to <em class="parameter"><code>cell_layout</code></em>.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3209267"></a><h3>
<a name="gtk-cell-layout-reorder"></a>gtk_cell_layout_reorder ()</h3>
<a class="indexterm" name="id3209282"></a><pre class="programlisting">void        gtk_cell_layout_reorder         (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> position);</pre>
<p>
Re-inserts <em class="parameter"><code>cell</code></em> at <em class="parameter"><code>position</code></em>. Note that <em class="parameter"><code>cell</code></em> has already to be packed
into <em class="parameter"><code>cell_layout</code></em> for this to function properly.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell_layout</code></em>&#160;:</span></td>
<td> A <a href="GtkCellLayout.html" title="GtkCellLayout"><span class="type">GtkCellLayout</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell</code></em>&#160;:</span></td>
<td> A <a href="GtkCellRenderer.html" title="GtkCellRenderer"><span class="type">GtkCellRenderer</span></a> to reorder.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></td>
<td> New position to insert <em class="parameter"><code>cell</code></em> at.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3209428"></a><h3>
<a name="gtk-cell-layout-clear"></a>gtk_cell_layout_clear ()</h3>
<a class="indexterm" name="id3209443"></a><pre class="programlisting">void        gtk_cell_layout_clear           (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout);</pre>
<p>
Unsets all the mappings on all renderers on <em class="parameter"><code>cell_layout</code></em> and
removes all renderers from <em class="parameter"><code>cell_layout</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>cell_layout</code></em>&#160;:</span></td>
<td> A <a href="GtkCellLayout.html" title="GtkCellLayout"><span class="type">GtkCellLayout</span></a>.
</td>
</tr></tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3209519"></a><h3>
<a name="gtk-cell-layout-set-attributes"></a>gtk_cell_layout_set_attributes ()</h3>
<a class="indexterm" name="id3209535"></a><pre class="programlisting">void        gtk_cell_layout_set_attributes  (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,
                                             ...);</pre>
<p>
Sets the attributes in list as the attributes of <em class="parameter"><code>cell_layout</code></em>. The
attributes should be in attribute/column order, as in
<a href="GtkCellLayout.html#gtk-cell-layout-add-attribute"><code class="function">gtk_cell_layout_add_attribute()</code></a>. All existing attributes are removed, and
replaced with the new attributes.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell_layout</code></em>&#160;:</span></td>
<td> A <a href="GtkCellLayout.html" title="GtkCellLayout"><span class="type">GtkCellLayout</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell</code></em>&#160;:</span></td>
<td> A <a href="GtkCellRenderer.html" title="GtkCellRenderer"><span class="type">GtkCellRenderer</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>...</code></em>&#160;:</span></td>
<td> A <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>-terminated list of attributes.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3209672"></a><h3>
<a name="gtk-cell-layout-add-attribute"></a>gtk_cell_layout_add_attribute ()</h3>
<a class="indexterm" name="id3209688"></a><pre class="programlisting">void        gtk_cell_layout_add_attribute   (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *attribute,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> column);</pre>
<p>
Adds an attribute mapping to the list in <em class="parameter"><code>cell_layout</code></em>. The <em class="parameter"><code>column</code></em> is the
column of the model to get a value from, and the <em class="parameter"><code>attribute</code></em> is the
parameter on <em class="parameter"><code>cell</code></em> to be set from the value. So for example if column 2
of the model contains strings, you could have the "text" attribute of a
<a href="GtkCellRendererText.html" title="GtkCellRendererText"><span class="type">GtkCellRendererText</span></a> get its values from column 2.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell_layout</code></em>&#160;:</span></td>
<td> A <a href="GtkCellLayout.html" title="GtkCellLayout"><span class="type">GtkCellLayout</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell</code></em>&#160;:</span></td>
<td> A <a href="GtkCellRenderer.html" title="GtkCellRenderer"><span class="type">GtkCellRenderer</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>attribute</code></em>&#160;:</span></td>
<td> An attribute on the renderer.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>column</code></em>&#160;:</span></td>
<td> The column position on the model to get the attribute from.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3209861"></a><h3>
<a name="gtk-cell-layout-set-cell-data-func"></a>gtk_cell_layout_set_cell_data_func ()</h3>
<a class="indexterm" name="id3209878"></a><pre class="programlisting">void        gtk_cell_layout_set_cell_data_func
                                            (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell,
                                             <a href="GtkCellLayout.html#GtkCellLayoutDataFunc">GtkCellLayoutDataFunc</a> func,
                                             <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> func_data,
                                             <a
href="../glib/glib-Datasets.html#GDestroyNotify"
>GDestroyNotify</a> destroy);</pre>
<p>
Sets the <a href="GtkCellLayout.html#GtkCellLayoutDataFunc"><span class="type">GtkCellLayoutDataFunc</span></a> to use for <em class="parameter"><code>cell_layout</code></em>. This function
is used instead of the standard attributes mapping for setting the
column value, and should set the value of <em class="parameter"><code>cell_layout</code></em>'s cell renderer(s)
as appropriate. <em class="parameter"><code>func</code></em> may be <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to remove and older one.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell_layout</code></em>&#160;:</span></td>
<td> A <a href="GtkCellLayout.html" title="GtkCellLayout"><span class="type">GtkCellLayout</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell</code></em>&#160;:</span></td>
<td> A <a href="GtkCellRenderer.html" title="GtkCellRenderer"><span class="type">GtkCellRenderer</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></td>
<td> The <a href="GtkCellLayout.html#GtkCellLayoutDataFunc"><span class="type">GtkCellLayoutDataFunc</span></a> to use.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>func_data</code></em>&#160;:</span></td>
<td> The user data for <em class="parameter"><code>func</code></em>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>destroy</code></em>&#160;:</span></td>
<td> The destroy notification for <em class="parameter"><code>func_data</code></em>.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3210097"></a><h3>
<a name="gtk-cell-layout-clear-attributes"></a>gtk_cell_layout_clear_attributes ()</h3>
<a class="indexterm" name="id3210112"></a><pre class="programlisting">void        gtk_cell_layout_clear_attributes
                                            (<a href="GtkCellLayout.html" title="GtkCellLayout">GtkCellLayout</a> *cell_layout,
                                             <a href="GtkCellRenderer.html" title="GtkCellRenderer">GtkCellRenderer</a> *cell);</pre>
<p>
Clears all existing attributes previously set with
<a href="GtkCellLayout.html#gtk-cell-layout-set-attributes"><code class="function">gtk_cell_layout_set_attributes()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell_layout</code></em>&#160;:</span></td>
<td> A <a href="GtkCellLayout.html" title="GtkCellLayout"><span class="type">GtkCellLayout</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>cell</code></em>&#160;:</span></td>
<td> A <a href="GtkCellRenderer.html" title="GtkCellRenderer"><span class="type">GtkCellRenderer</span></a> to clear the attribute mapping on.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
</div>
</div>
</body>
</html>

Anon7 - 2021