summaryrefslogtreecommitdiff
path: root/gtk/gtkcellarea.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-12-17 19:14:35 -0500
committerMatthias Clasen <mclasen@redhat.com>2010-12-17 19:14:35 -0500
commita2dda0c2bb88c1f009f7a10e0e344c4a301ff3b9 (patch)
tree4cb7957d47840b21426d7273d3998b29d93d67e2 /gtk/gtkcellarea.h
parent453bf477ed3088fd9d3310e070d0248b84821d21 (diff)
downloadgtk+-a2dda0c2bb88c1f009f7a10e0e344c4a301ff3b9.tar.gz
Trivial changes
Whitespace fixes, comment formatting, etc
Diffstat (limited to 'gtk/gtkcellarea.h')
-rw-r--r--gtk/gtkcellarea.h474
1 files changed, 243 insertions, 231 deletions
diff --git a/gtk/gtkcellarea.h b/gtk/gtkcellarea.h
index f9c1c45b90..d8d06cfecc 100644
--- a/gtk/gtkcellarea.h
+++ b/gtk/gtkcellarea.h
@@ -34,10 +34,10 @@
G_BEGIN_DECLS
-#define GTK_TYPE_CELL_AREA (gtk_cell_area_get_type ())
-#define GTK_CELL_AREA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_AREA, GtkCellArea))
-#define GTK_CELL_AREA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_AREA, GtkCellAreaClass))
-#define GTK_IS_CELL_AREA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_AREA))
+#define GTK_TYPE_CELL_AREA (gtk_cell_area_get_type ())
+#define GTK_CELL_AREA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_AREA, GtkCellArea))
+#define GTK_CELL_AREA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_AREA, GtkCellAreaClass))
+#define GTK_IS_CELL_AREA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_AREA))
#define GTK_IS_CELL_AREA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_AREA))
#define GTK_CELL_AREA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_AREA, GtkCellAreaClass))
@@ -49,7 +49,7 @@ typedef struct _GtkCellAreaContext GtkCellAreaContext;
/**
* GTK_CELL_AREA_WARN_INVALID_CELL_PROPERTY_ID:
* @object: the #GObject on which set_cell_property() or get_get_property()
- * was called
+ * was called
* @property_id: the numeric id of the property
* @pspec: the #GParamSpec of the property
*
@@ -70,26 +70,27 @@ typedef struct _GtkCellAreaContext GtkCellAreaContext;
* Return value: %TRUE to stop iterating over cells.
*/
typedef gboolean (*GtkCellCallback) (GtkCellRenderer *renderer,
- gpointer data);
+ gpointer data);
/**
* GtkCellAllocCallback:
* @renderer: the cell renderer to operate on
- * @cell_area: the area allocated to @renderer inside the rectangle provided to gtk_cell_area_foreach_alloc().
- * @cell_background: the background area for @renderer inside the background
- * area provided to gtk_cell_area_foreach_alloc().
+ * @cell_area: the area allocated to @renderer inside the rectangle
+ * provided to gtk_cell_area_foreach_alloc().
+ * @cell_background: the background area for @renderer inside the
+ * background area provided to gtk_cell_area_foreach_alloc().
* @data: user-supplied data
*
- * The type of the callback functions used for iterating over
- * the cell renderers and their allocated areas inside a #GtkCellArea,
+ * The type of the callback functions used for iterating over the
+ * cell renderers and their allocated areas inside a #GtkCellArea,
* see gtk_cell_area_foreach_alloc().
*
* Return value: %TRUE to stop iterating over cells.
*/
typedef gboolean (*GtkCellAllocCallback) (GtkCellRenderer *renderer,
- const GdkRectangle *cell_area,
- const GdkRectangle *cell_background,
- gpointer data);
+ const GdkRectangle *cell_area,
+ const GdkRectangle *cell_background,
+ gpointer data);
struct _GtkCellArea
@@ -105,60 +106,71 @@ struct _GtkCellArea
* GtkCellAreaClass:
* @add: adds a #GtkCellRenderer to the area.
* @remove: removes a #GtkCellRenderer from the area.
- * @foreach: Calls the #GtkCellCallback function on every #GtkCellRenderer in the area
- * with the provided user data until the callback returns %TRUE.
- * @foreach_alloc: Calls the #GtkCellAllocCallback function on every #GtkCellRenderer in the area
- * with the allocated area for the cell and the provided user data until the callback returns %TRUE.
- * @event: Handle an event in the area, this is generally used to activate a cell
- * at the event location for button events but can also be used to generically pass
- * events to #GtkWidgets drawn onto the area.
- * @render: Actually render the area's cells to the specified rectangle, @background_area
- * should be correctly distributed to the cells coresponding background areas.
- * @apply_attributes: Apply the cell attributes to the cells. This is implemented as a signal and
- * generally #GtkCellArea subclasses dont need to implement this since it's handled by the base
- * class but can be overridden to apply some custom attributes.
- * @create_context: Creates and returns a class specific #GtkCellAreaContext to store cell
- * alignment and allocation details for a said #GtkCellArea class.
- * @copy_context: Creates a new #GtkCellAreaContext in the same state as the passed @context
- * with any cell alignment data and allocations in tact.
- * @get_request_mode: This allows an area to tell its layouting widget whether it prefers to
- * be allocated in %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH or %GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT mode.
- * @get_preferred_width: Calculates the minimum and natural width of the area's cells
- * with the current attributes applied while considering the particular layouting details
- * of the said #GtkCellArea. While requests are performed over a series of rows, alignments
- * and overall minimum and natural sizes should be stored in the corresponding #GtkCellAreaContext.
- * @get_preferred_height_for_width: Calculates the minimum and natural height for the area
- * if the passed @context would be allocated the given width. When implementing this virtual
- * method it is safe to assume that @context has already stored the aligned cell widths
- * for every #GtkTreeModel row that @context will be allocated for since this information
- * was stored at #GtkCellAreaClass.get_preferred_width() time. This virtual method should
- * also store any necessary alignments of cell heights for the case that the context is
- * allocated a height.
- * @get_preferred_height: Calculates the minimum and natural height of the area's cells
- * with the current attributes applied. Essentially this is the same as
- * #GtkCellAreaClass.get_preferred_width() only for areas that are being requested as
- * %GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT.
- * @get_preferred_width_for_height: Calculates the minimum and natural width for the area
- * if the passed @context would be allocated the given height. The same as
- * #GtkCellAreaClass.get_preferred_height_for_width() only for handling requests in the
- * %GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT mode.
- * @set_cell_property: This should be implemented to handle changes in child cell properties
- * for a given #GtkCellRenderer that were previously installed on the #GtkCellAreaClass with
- * gtk_cell_area_class_install_cell_property().
- * @get_cell_property: This should be implemented to report the values of child cell properties
- * for a given child #GtkCellRenderer.
- * @focus: This virtual method should be implemented to navigate focus from cell to cell
- * inside the #GtkCellArea. The #GtkCellArea should move focus from cell to cell inside
- * the area and return %FALSE if focus logically leaves the area with the following exceptions:
- * When the area contains no activatable cells, the entire area recieves focus. Focus should not
- * be given to cells that are actually "focus siblings" of other sibling cells
- * (see gtk_cell_area_get_focus_from_sibling()). Focus is set by calling gtk_cell_area_set_focus_cell().
- * @is_activatable: Returns whether the #GtkCellArea can respond to #GtkCellAreaClass.activate(),
- * usually this does not need to be implemented since the base class takes care of this however
- * it can be enhanced if the #GtkCellArea subclass can handle activation in other ways than
- * activating its #GtkCellRenderers.
- * @activate: This is called when the layouting widget rendering the #GtkCellArea activates
- * the focus cell (see gtk_cell_area_get_focus_cell()).
+ * @foreach: calls the #GtkCellCallback function on every #GtkCellRenderer in
+ * the area with the provided user data until the callback returns %TRUE.
+ * @foreach_alloc: Calls the #GtkCellAllocCallback function on every
+ * #GtkCellRenderer in the area with the allocated area for the cell
+ * and the provided user data until the callback returns %TRUE.
+ * @event: Handle an event in the area, this is generally used to activate
+ * a cell at the event location for button events but can also be used
+ * to generically pass events to #GtkWidgets drawn onto the area.
+ * @render: Actually render the area's cells to the specified rectangle,
+ * @background_area should be correctly distributed to the cells
+ * corresponding background areas.
+ * @apply_attributes: Apply the cell attributes to the cells. This is
+ * implemented as a signal and generally #GtkCellArea subclasses don't
+ * need to implement it since it is handled by the base class.
+ * @create_context: Creates and returns a class specific #GtkCellAreaContext
+ * to store cell alignment and allocation details for a said #GtkCellArea
+ * class.
+ * @copy_context: Creates a new #GtkCellAreaContext in the same state as
+ * the passed @context with any cell alignment data and allocations intact.
+ * @get_request_mode: This allows an area to tell its layouting widget whether
+ * it prefers to be allocated in %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH or
+ * %GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT mode.
+ * @get_preferred_width: Calculates the minimum and natural width of the
+ * areas cells with the current attributes applied while considering
+ * the particular layouting details of the said #GtkCellArea. While
+ * requests are performed over a series of rows, alignments and overall
+ * minimum and natural sizes should be stored in the corresponding
+ * #GtkCellAreaContext.
+ * @get_preferred_height_for_width: Calculates the minimum and natural height
+ * for the area if the passed @context would be allocated the given width.
+ * When implementing this virtual method it is safe to assume that @context
+ * has already stored the aligned cell widths for every #GtkTreeModel row
+ * that @context will be allocated for since this information was stored
+ * at #GtkCellAreaClass.get_preferred_width() time. This virtual method
+ * should also store any necessary alignments of cell heights for the
+ * case that the context is allocated a height.
+ * @get_preferred_height: Calculates the minimum and natural height of the
+ * areas cells with the current attributes applied. Essentially this is
+ * the same as #GtkCellAreaClass.get_preferred_width() only for areas
+ * that are being requested as %GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT.
+ * @get_preferred_width_for_height: Calculates the minimum and natural width
+ * for the area if the passed @context would be allocated the given
+ * height. The same as #GtkCellAreaClass.get_preferred_height_for_width()
+ * only for handling requests in the %GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT
+ * mode.
+ * @set_cell_property: This should be implemented to handle changes in child
+ * cell properties for a given #GtkCellRenderer that were previously
+ * installed on the #GtkCellAreaClass with gtk_cell_area_class_install_cell_property().
+ * @get_cell_property: This should be implemented to report the values of
+ * child cell properties for a given child #GtkCellRenderer.
+ * @focus: This virtual method should be implemented to navigate focus from
+ * cell to cell inside the #GtkCellArea. The #GtkCellArea should move
+ * focus from cell to cell inside the area and return %FALSE if focus
+ * logically leaves the area with the following exceptions: When the
+ * area contains no activatable cells, the entire area recieves focus.
+ * Focus should not be given to cells that are actually "focus siblings"
+ * of other sibling cells (see gtk_cell_area_get_focus_from_sibling()).
+ * Focus is set by calling gtk_cell_area_set_focus_cell().
+ * @is_activatable: Returns whether the #GtkCellArea can respond to
+ * #GtkCellAreaClass.activate(), usually this does not need to be
+ * implemented since the base class takes care of this however it can
+ * be enhanced if the #GtkCellArea subclass can handle activation in
+ * other ways than activating its #GtkCellRenderers.
+ * @activate: This is called when the layouting widget rendering the
+ * #GtkCellArea activates the focus cell (see gtk_cell_area_get_focus_cell()).
*/
struct _GtkCellAreaClass
{
@@ -169,62 +181,62 @@ struct _GtkCellAreaClass
/* Basic methods */
void (* add) (GtkCellArea *area,
- GtkCellRenderer *renderer);
+ GtkCellRenderer *renderer);
void (* remove) (GtkCellArea *area,
- GtkCellRenderer *renderer);
+ GtkCellRenderer *renderer);
void (* foreach) (GtkCellArea *area,
- GtkCellCallback callback,
- gpointer callback_data);
+ GtkCellCallback callback,
+ gpointer callback_data);
void (* foreach_alloc) (GtkCellArea *area,
- GtkCellAreaContext *context,
- GtkWidget *widget,
- const GdkRectangle *cell_area,
- const GdkRectangle *background_area,
- GtkCellAllocCallback callback,
- gpointer callback_data);
+ GtkCellAreaContext *context,
+ GtkWidget *widget,
+ const GdkRectangle *cell_area,
+ const GdkRectangle *background_area,
+ GtkCellAllocCallback callback,
+ gpointer callback_data);
gint (* event) (GtkCellArea *area,
- GtkCellAreaContext *context,
- GtkWidget *widget,
- GdkEvent *event,
- const GdkRectangle *cell_area,
- GtkCellRendererState flags);
+ GtkCellAreaContext *context,
+ GtkWidget *widget,
+ GdkEvent *event,
+ const GdkRectangle *cell_area,
+ GtkCellRendererState flags);
void (* render) (GtkCellArea *area,
- GtkCellAreaContext *context,
- GtkWidget *widget,
- cairo_t *cr,
- const GdkRectangle *background_area,
- const GdkRectangle *cell_area,
- GtkCellRendererState flags,
- gboolean paint_focus);
+ GtkCellAreaContext *context,
+ GtkWidget *widget,
+ cairo_t *cr,
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
+ GtkCellRendererState flags,
+ gboolean paint_focus);
void (* apply_attributes) (GtkCellArea *area,
- GtkTreeModel *tree_model,
- GtkTreeIter *iter,
- gboolean is_expander,
- gboolean is_expanded);
+ GtkTreeModel *tree_model,
+ GtkTreeIter *iter,
+ gboolean is_expander,
+ gboolean is_expanded);
/* Geometry */
GtkCellAreaContext *(* create_context) (GtkCellArea *area);
GtkCellAreaContext *(* copy_context) (GtkCellArea *area,
- GtkCellAreaContext *context);
+ GtkCellAreaContext *context);
GtkSizeRequestMode (* get_request_mode) (GtkCellArea *area);
void (* get_preferred_width) (GtkCellArea *area,
- GtkCellAreaContext *context,
+ GtkCellAreaContext *context,
GtkWidget *widget,
gint *minimum_width,
gint *natural_width);
void (* get_preferred_height_for_width) (GtkCellArea *area,
- GtkCellAreaContext *context,
+ GtkCellAreaContext *context,
GtkWidget *widget,
gint width,
gint *minimum_height,
gint *natural_height);
void (* get_preferred_height) (GtkCellArea *area,
- GtkCellAreaContext *context,
+ GtkCellAreaContext *context,
GtkWidget *widget,
gint *minimum_height,
gint *natural_height);
void (* get_preferred_width_for_height) (GtkCellArea *area,
- GtkCellAreaContext *context,
+ GtkCellAreaContext *context,
GtkWidget *widget,
gint height,
gint *minimum_width,
@@ -232,26 +244,26 @@ struct _GtkCellAreaClass
/* Cell Properties */
void (* set_cell_property) (GtkCellArea *area,
- GtkCellRenderer *renderer,
- guint property_id,
- const GValue *value,
- GParamSpec *pspec);
+ GtkCellRenderer *renderer,
+ guint property_id,
+ const GValue *value,
+ GParamSpec *pspec);
void (* get_cell_property) (GtkCellArea *area,
- GtkCellRenderer *renderer,
- guint property_id,
- GValue *value,
- GParamSpec *pspec);
+ GtkCellRenderer *renderer,
+ guint property_id,
+ GValue *value,
+ GParamSpec *pspec);
/* Focus */
gboolean (* focus) (GtkCellArea *area,
- GtkDirectionType direction);
+ GtkDirectionType direction);
gboolean (* is_activatable) (GtkCellArea *area);
gboolean (* activate) (GtkCellArea *area,
- GtkCellAreaContext *context,
- GtkWidget *widget,
- const GdkRectangle *cell_area,
- GtkCellRendererState flags,
- gboolean edit_only);
+ GtkCellAreaContext *context,
+ GtkWidget *widget,
+ const GdkRectangle *cell_area,
+ GtkCellRendererState flags,
+ gboolean edit_only);
/*< private >*/
@@ -270,193 +282,193 @@ GType gtk_cell_area_get_type (void) G_GNUC
/* Basic methods */
void gtk_cell_area_add (GtkCellArea *area,
- GtkCellRenderer *renderer);
+ GtkCellRenderer *renderer);
void gtk_cell_area_remove (GtkCellArea *area,
- GtkCellRenderer *renderer);
+ GtkCellRenderer *renderer);
gboolean gtk_cell_area_has_renderer (GtkCellArea *area,
- GtkCellRenderer *renderer);
+ GtkCellRenderer *renderer);
void gtk_cell_area_foreach (GtkCellArea *area,
- GtkCellCallback callback,
- gpointer callback_data);
+ GtkCellCallback callback,
+ gpointer callback_data);
void gtk_cell_area_foreach_alloc (GtkCellArea *area,
- GtkCellAreaContext *context,
- GtkWidget *widget,
- const GdkRectangle *cell_area,
- const GdkRectangle *background_area,
- GtkCellAllocCallback callback,
- gpointer callback_data);
+ GtkCellAreaContext *context,
+ GtkWidget *widget,
+ const GdkRectangle *cell_area,
+ const GdkRectangle *background_area,
+ GtkCellAllocCallback callback,
+ gpointer callback_data);
gint gtk_cell_area_event (GtkCellArea *area,
- GtkCellAreaContext *context,
- GtkWidget *widget,
- GdkEvent *event,
- const GdkRectangle *cell_area,
- GtkCellRendererState flags);
+ GtkCellAreaContext *context,
+ GtkWidget *widget,
+ GdkEvent *event,
+ const GdkRectangle *cell_area,
+ GtkCellRendererState flags);
void gtk_cell_area_render (GtkCellArea *area,
- GtkCellAreaContext *context,
- GtkWidget *widget,
- cairo_t *cr,
- const GdkRectangle *background_area,
- const GdkRectangle *cell_area,
- GtkCellRendererState flags,
- gboolean paint_focus);
+ GtkCellAreaContext *context,
+ GtkWidget *widget,
+ cairo_t *cr,
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
+ GtkCellRendererState flags,
+ gboolean paint_focus);
void gtk_cell_area_set_style_detail (GtkCellArea *area,
- const gchar *detail);
+ const gchar *detail);
G_CONST_RETURN gchar *gtk_cell_area_get_style_detail (GtkCellArea *area);
void gtk_cell_area_get_cell_allocation (GtkCellArea *area,
- GtkCellAreaContext *context,
- GtkWidget *widget,
- GtkCellRenderer *renderer,
- const GdkRectangle *cell_area,
- GdkRectangle *allocation);
+ GtkCellAreaContext *context,
+ GtkWidget *widget,
+ GtkCellRenderer *renderer,
+ const GdkRectangle *cell_area,
+ GdkRectangle *allocation);
GtkCellRenderer *gtk_cell_area_get_cell_at_position (GtkCellArea *area,
- GtkCellAreaContext *context,
- GtkWidget *widget,
- const GdkRectangle *cell_area,
- gint x,
- gint y,
- GdkRectangle *alloc_area);
+ GtkCellAreaContext *context,
+ GtkWidget *widget,
+ const GdkRectangle *cell_area,
+ gint x,
+ gint y,
+ GdkRectangle *alloc_area);
/* Geometry */
GtkCellAreaContext *gtk_cell_area_create_context (GtkCellArea *area);
GtkCellAreaContext *gtk_cell_area_copy_context (GtkCellArea *area,
- GtkCellAreaContext *context);
+ GtkCellAreaContext *context);
GtkSizeRequestMode gtk_cell_area_get_request_mode (GtkCellArea *area);
void gtk_cell_area_get_preferred_width (GtkCellArea *area,
- GtkCellAreaContext *context,
- GtkWidget *widget,
- gint *minimum_width,
- gint *natural_width);
+ GtkCellAreaContext *context,
+ GtkWidget *widget,
+ gint *minimum_width,
+ gint *natural_width);
void gtk_cell_area_get_preferred_height_for_width (GtkCellArea *area,
- GtkCellAreaContext *context,
- GtkWidget *widget,
- gint width,
- gint *minimum_height,
- gint *natural_height);
+ GtkCellAreaContext *context,
+ GtkWidget *widget,
+ gint width,
+ gint *minimum_height,
+ gint *natural_height);
void gtk_cell_area_get_preferred_height (GtkCellArea *area,
- GtkCellAreaContext *context,
- GtkWidget *widget,
- gint *minimum_height,
- gint *natural_height);
+ GtkCellAreaContext *context,
+ GtkWidget *widget,
+ gint *minimum_height,
+ gint *natural_height);
void gtk_cell_area_get_preferred_width_for_height (GtkCellArea *area,
- GtkCellAreaContext *context,
- GtkWidget *widget,
- gint height,
- gint *minimum_width,
- gint *natural_width);
+ GtkCellAreaContext *context,
+ GtkWidget *widget,
+ gint height,
+ gint *minimum_width,
+ gint *natural_width);
G_CONST_RETURN gchar *gtk_cell_area_get_current_path_string (GtkCellArea *area);
/* Attributes */
void gtk_cell_area_apply_attributes (GtkCellArea *area,
- GtkTreeModel *tree_model,
- GtkTreeIter *iter,
- gboolean is_expander,
- gboolean is_expanded);
+ GtkTreeModel *tree_model,
+ GtkTreeIter *iter,
+ gboolean is_expander,
+ gboolean is_expanded);
void gtk_cell_area_attribute_connect (GtkCellArea *area,
- GtkCellRenderer *renderer,
- const gchar *attribute,
- gint column);
+ GtkCellRenderer *renderer,
+ const gchar *attribute,
+ gint column);
void gtk_cell_area_attribute_disconnect (GtkCellArea *area,
- GtkCellRenderer *renderer,
- const gchar *attribute);
+ GtkCellRenderer *renderer,
+ const gchar *attribute);
/* Cell Properties */
void gtk_cell_area_class_install_cell_property (GtkCellAreaClass *aclass,
- guint property_id,
- GParamSpec *pspec);
+ guint property_id,
+ GParamSpec *pspec);
GParamSpec* gtk_cell_area_class_find_cell_property (GtkCellAreaClass *aclass,
- const gchar *property_name);
+ const gchar *property_name);
GParamSpec** gtk_cell_area_class_list_cell_properties (GtkCellAreaClass *aclass,
- guint *n_properties);
+ guint *n_properties);
void gtk_cell_area_add_with_properties (GtkCellArea *area,
- GtkCellRenderer *renderer,
- const gchar *first_prop_name,
- ...) G_GNUC_NULL_TERMINATED;
+ GtkCellRenderer *renderer,
+ const gchar *first_prop_name,
+ ...) G_GNUC_NULL_TERMINATED;
void gtk_cell_area_cell_set (GtkCellArea *area,
- GtkCellRenderer *renderer,
- const gchar *first_prop_name,
- ...) G_GNUC_NULL_TERMINATED;
+ GtkCellRenderer *renderer,
+ const gchar *first_prop_name,
+ ...) G_GNUC_NULL_TERMINATED;
void gtk_cell_area_cell_get (GtkCellArea *area,
- GtkCellRenderer *renderer,
- const gchar *first_prop_name,
- ...) G_GNUC_NULL_TERMINATED;
+ GtkCellRenderer *renderer,
+ const gchar *first_prop_name,
+ ...) G_GNUC_NULL_TERMINATED;
void gtk_cell_area_cell_set_valist (GtkCellArea *area,
- GtkCellRenderer *renderer,
- const gchar *first_property_name,
- va_list var_args);
+ GtkCellRenderer *renderer,
+ const gchar *first_property_name,
+ va_list var_args);
void gtk_cell_area_cell_get_valist (GtkCellArea *area,
- GtkCellRenderer *renderer,
- const gchar *first_property_name,
- va_list var_args);
+ GtkCellRenderer *renderer,
+ const gchar *first_property_name,
+ va_list var_args);
void gtk_cell_area_cell_set_property (GtkCellArea *area,
- GtkCellRenderer *renderer,
- const gchar *property_name,
- const GValue *value);
+ GtkCellRenderer *renderer,
+ const gchar *property_name,
+ const GValue *value);
void gtk_cell_area_cell_get_property (GtkCellArea *area,
- GtkCellRenderer *renderer,
- const gchar *property_name,
- GValue *value);
+ GtkCellRenderer *renderer,
+ const gchar *property_name,
+ GValue *value);
/* Focus */
gboolean gtk_cell_area_is_activatable (GtkCellArea *area);
gboolean gtk_cell_area_activate (GtkCellArea *area,
- GtkCellAreaContext *context,
- GtkWidget *widget,
- const GdkRectangle *cell_area,
- GtkCellRendererState flags,
- gboolean edit_only);
+ GtkCellAreaContext *context,
+ GtkWidget *widget,
+ const GdkRectangle *cell_area,
+ GtkCellRendererState flags,
+ gboolean edit_only);
gboolean gtk_cell_area_focus (GtkCellArea *area,
- GtkDirectionType direction);
+ GtkDirectionType direction);
void gtk_cell_area_set_focus_cell (GtkCellArea *area,
- GtkCellRenderer *renderer);
+ GtkCellRenderer *renderer);
GtkCellRenderer *gtk_cell_area_get_focus_cell (GtkCellArea *area);
/* Focus siblings */
void gtk_cell_area_add_focus_sibling (GtkCellArea *area,
- GtkCellRenderer *renderer,
- GtkCellRenderer *sibling);
+ GtkCellRenderer *renderer,
+ GtkCellRenderer *sibling);
void gtk_cell_area_remove_focus_sibling (GtkCellArea *area,
- GtkCellRenderer *renderer,
- GtkCellRenderer *sibling);
+ GtkCellRenderer *renderer,
+ GtkCellRenderer *sibling);
gboolean gtk_cell_area_is_focus_sibling (GtkCellArea *area,
- GtkCellRenderer *renderer,
- GtkCellRenderer *sibling);
+ GtkCellRenderer *renderer,
+ GtkCellRenderer *sibling);
G_CONST_RETURN GList *gtk_cell_area_get_focus_siblings (GtkCellArea *area,
- GtkCellRenderer *renderer);
+ GtkCellRenderer *renderer);
GtkCellRenderer *gtk_cell_area_get_focus_from_sibling (GtkCellArea *area,
- GtkCellRenderer *renderer);
+ GtkCellRenderer *renderer);
/* Cell Activation/Editing */
GtkCellRenderer *gtk_cell_area_get_edited_cell (GtkCellArea *area);
GtkCellEditable *gtk_cell_area_get_edit_widget (GtkCellArea *area);
gboolean gtk_cell_area_activate_cell (GtkCellArea *area,
- GtkWidget *widget,
- GtkCellRenderer *renderer,
- GdkEvent *event,
- const GdkRectangle *cell_area,
- GtkCellRendererState flags);
+ GtkWidget *widget,
+ GtkCellRenderer *renderer,
+ GdkEvent *event,
+ const GdkRectangle *cell_area,
+ GtkCellRendererState flags);
void gtk_cell_area_stop_editing (GtkCellArea *area,
- gboolean canceled);
+ gboolean canceled);
/* Functions for area implementations */
/* Distinguish the inner cell area from the whole requested area including margins */
void gtk_cell_area_inner_cell_area (GtkCellArea *area,
- GtkWidget *widget,
- const GdkRectangle *cell_area,
- GdkRectangle *inner_area);
+ GtkWidget *widget,
+ const GdkRectangle *cell_area,
+ GdkRectangle *inner_area);
/* Request the size of a cell while respecting the cell margins (requests are margin inclusive) */
void gtk_cell_area_request_renderer (GtkCellArea *area,
- GtkCellRenderer *renderer,
- GtkOrientation orientation,
- GtkWidget *widget,
- gint for_size,
- gint *minimum_size,
- gint *natural_size);
+ GtkCellRenderer *renderer,
+ GtkOrientation orientation,
+ GtkWidget *widget,
+ gint for_size,
+ gint *minimum_size,
+ gint *natural_size);
G_END_DECLS