2000-10-30 23:21:38 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GtkCellRenderer
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2002-11-03 18:25:05 +00:00
|
|
|
An object for rendering a single cell on a #GdkDrawable
|
2000-10-30 23:21:38 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2002-11-03 18:25:05 +00:00
|
|
|
The #GtkCellRenderer is a base class of a set of objects used for
|
|
|
|
rendering a cell to a #GdkDrawable. These objects are used primarily by
|
|
|
|
the #GtkTreeView widget, though they aren't tied to them in any
|
|
|
|
specific way. It is worth noting that #GtkCellRenderer is not a
|
|
|
|
#GtkWidget and cannot be treated as such.
|
|
|
|
</para>
|
2000-10-30 23:21:38 +00:00
|
|
|
|
2002-11-03 18:25:05 +00:00
|
|
|
<para>
|
|
|
|
The primary use of a #GtkCellRenderer is for drawing a certain graphical
|
|
|
|
elements on a #GdkDrawable. Typically, one cell renderer is used to
|
|
|
|
draw many cells on the screen. To this extent, it isn't expected that a
|
|
|
|
CellRenderer keep any permanent state around. Instead, any state is set
|
|
|
|
just prior to use using #GObject<!-- -->s property system. Then, the
|
|
|
|
cell is measured using @gtk_cell_renderer_get_size. Finally, the cell
|
|
|
|
is rendered in the correct location using @gtk_cell_renderer_render.
|
2000-10-30 23:21:38 +00:00
|
|
|
</para>
|
|
|
|
|
2002-11-03 18:25:05 +00:00
|
|
|
<para>
|
|
|
|
There are a number of rules that must be followed when writing a new
|
|
|
|
#GtkCellRenderer. First and formost, it's important that a certain set
|
|
|
|
of properties will always yield a cell renderer of the same size,
|
|
|
|
barring a #GtkStyle change. The #GtkCellRenderer also has a number of
|
|
|
|
generic properties that are expected to be honored by all children.
|
|
|
|
</para>
|
2002-11-08 19:41:50 +00:00
|
|
|
|
2000-10-30 23:21:38 +00:00
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
2002-11-03 18:25:05 +00:00
|
|
|
#GtkCellRendererText,#GtkCellRendererPixbuf,#GtkCellRendererToggle
|
2000-10-30 23:21:38 +00:00
|
|
|
</para>
|
|
|
|
|
2001-01-09 16:41:17 +00:00
|
|
|
<!-- ##### ENUM GtkCellRendererState ##### -->
|
2000-10-30 23:21:38 +00:00
|
|
|
<para>
|
2002-11-03 18:25:05 +00:00
|
|
|
Tells how a cell is to be rendererd.
|
2000-10-30 23:21:38 +00:00
|
|
|
</para>
|
|
|
|
|
2002-11-03 18:25:05 +00:00
|
|
|
@GTK_CELL_RENDERER_SELECTED: The cell is currently selected, and
|
|
|
|
probably has a selection colored background to render to.
|
|
|
|
@GTK_CELL_RENDERER_PRELIT: The mouse is hovering over the cell.
|
|
|
|
@GTK_CELL_RENDERER_INSENSITIVE: The cell is drawn in an insensitive manner
|
|
|
|
@GTK_CELL_RENDERER_SORTED: The cell is in a sorted row
|
2002-11-28 00:33:17 +00:00
|
|
|
@GTK_CELL_RENDERER_FOCUSED:
|
2000-10-30 23:21:38 +00:00
|
|
|
|
2001-09-27 00:09:41 +00:00
|
|
|
<!-- ##### ENUM GtkCellRendererMode ##### -->
|
|
|
|
<para>
|
2002-11-03 18:25:05 +00:00
|
|
|
Identifies how the user can interact with a particular cell.
|
2001-09-27 00:09:41 +00:00
|
|
|
</para>
|
|
|
|
|
2002-11-03 18:25:05 +00:00
|
|
|
@GTK_CELL_RENDERER_MODE_INERT: The cell is just for display
|
|
|
|
and cannot be interacted with. Note that this doesn't mean that eg. the
|
|
|
|
row being drawn can't be selected -- just that a particular element of
|
|
|
|
it cannot be individually modified.
|
|
|
|
@GTK_CELL_RENDERER_MODE_ACTIVATABLE: The cell can be clicked.
|
|
|
|
@GTK_CELL_RENDERER_MODE_EDITABLE: The cell can be edited or otherwise modified.
|
2001-09-27 00:09:41 +00:00
|
|
|
|
2000-10-30 23:21:38 +00:00
|
|
|
<!-- ##### STRUCT GtkCellRenderer ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2004-01-22 06:48:20 +00:00
|
|
|
<!-- ##### SIGNAL GtkCellRenderer::editing-canceled ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@cellrenderer: the object which received the signal.
|
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
<!-- ##### ARG GtkCellRenderer:cell-background ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkCellRenderer:cell-background-gdk ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkCellRenderer:cell-background-set ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkCellRenderer:height ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkCellRenderer:is-expanded ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkCellRenderer:is-expander ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkCellRenderer:mode ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkCellRenderer:visible ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkCellRenderer:width ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkCellRenderer:xalign ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkCellRenderer:xpad ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkCellRenderer:yalign ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkCellRenderer:ypad ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2000-10-30 23:21:38 +00:00
|
|
|
<!-- ##### FUNCTION gtk_cell_renderer_get_size ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@cell:
|
|
|
|
@widget:
|
2001-03-16 20:12:40 +00:00
|
|
|
@cell_area:
|
|
|
|
@x_offset:
|
|
|
|
@y_offset:
|
2000-10-30 23:21:38 +00:00
|
|
|
@width:
|
|
|
|
@height:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_cell_renderer_render ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@cell:
|
|
|
|
@window:
|
|
|
|
@widget:
|
|
|
|
@background_area:
|
|
|
|
@cell_area:
|
|
|
|
@expose_area:
|
|
|
|
@flags:
|
|
|
|
|
|
|
|
|
2001-09-27 00:09:41 +00:00
|
|
|
<!-- ##### FUNCTION gtk_cell_renderer_activate ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@cell:
|
|
|
|
@event:
|
|
|
|
@widget:
|
|
|
|
@path:
|
|
|
|
@background_area:
|
|
|
|
@cell_area:
|
|
|
|
@flags:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_cell_renderer_start_editing ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@cell:
|
|
|
|
@event:
|
|
|
|
@widget:
|
|
|
|
@path:
|
|
|
|
@background_area:
|
|
|
|
@cell_area:
|
|
|
|
@flags:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_cell_renderer_get_fixed_size ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@cell:
|
|
|
|
@width:
|
|
|
|
@height:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_cell_renderer_set_fixed_size ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@cell:
|
|
|
|
@width:
|
|
|
|
@height:
|
|
|
|
|
|
|
|
|