Gtk.CellAreaContext
Description: Reference for Gtk.CellAreaContext

### Class

# GtkCellAreaContext

#### Description [src]

    class Gtk.CellAreaContext : GObject.Object {
      /* No available fields */
    }

Stores geometrical information for a series of rows in a GtkCellArea

The `GtkCellAreaContext` object is created by a given `GtkCellArea` implementation via its `GtkCellAreaClass.create_context()` virtual method and is used to store cell sizes and alignments for a series of `GtkTreeModel` rows that are requested and rendered in the same context.

`GtkCellLayout` widgets can create any number of contexts in which to request and render groups of data rows. However, it’s important that the same context which was used to request sizes for a given `GtkTreeModel` row also be used for the same row when calling other `GtkCellArea` APIs such as `gtk_cell_area_render()` and gtk_cell_area_event().

#### Hierarchy

#### Ancestors

- GObject

#### Instance methods

###### gtk_cell_area_context_allocate

Allocates a width and/or a height for all rows which are to be rendered with `context`.

###### gtk_cell_area_context_get_allocation

Fetches the current allocation size for `context`.

###### gtk_cell_area_context_get_area

Fetches the `GtkCellArea` this `context` was created by.

###### gtk_cell_area_context_get_preferred_height

Gets the accumulative preferred height for all rows which have been requested with this context.

###### gtk_cell_area_context_get_preferred_height_for_width

Gets the accumulative preferred height for `width` for all rows which have been requested for the same said `width` with this context.

###### gtk_cell_area_context_get_preferred_width

Gets the accumulative preferred width for all rows which have been requested with this context.

###### gtk_cell_area_context_get_preferred_width_for_height

Gets the accumulative preferred width for `height` for all rows which have been requested for the same said `height` with this context.

###### gtk_cell_area_context_push_preferred_height

Causes the minimum and/or natural height to grow if the new proposed sizes exceed the current minimum and natural height.

###### gtk_cell_area_context_push_preferred_width

Causes the minimum and/or natural width to grow if the new proposed sizes exceed the current minimum and natural width.

###### gtk_cell_area_context_reset

Resets any previously cached request and allocation data.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### Gtk.CellAreaContext:area

The `GtkCellArea` this context was created by.

###### Gtk.CellAreaContext:minimum-height

The minimum height for the `GtkCellArea` in this context for all `GtkTreeModel` rows that this context was requested for using gtk_cell_area_get_preferred_height().

###### Gtk.CellAreaContext:minimum-width

The minimum width for the `GtkCellArea` in this context for all `GtkTreeModel` rows that this context was requested for using gtk_cell_area_get_preferred_width().

###### Gtk.CellAreaContext:natural-height

The natural height for the `GtkCellArea` in this context for all `GtkTreeModel` rows that this context was requested for using gtk_cell_area_get_preferred_height().

###### Gtk.CellAreaContext:natural-width

The natural width for the `GtkCellArea` in this context for all `GtkTreeModel` rows that this context was requested for using gtk_cell_area_get_preferred_width().

#### Signals

##### Signals inherited from GObject (1)

###### GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct GtkCellAreaContextClass {
      void (* allocate) (
        GtkCellAreaContext* context,
        int width,
        int height
      );
      void (* reset) (
        GtkCellAreaContext* context
      );
      void (* get_preferred_height_for_width) (
        GtkCellAreaContext* context,
        int width,
        int* minimum_height,
        int* natural_height
      );
      void (* get_preferred_width_for_height) (
        GtkCellAreaContext* context,
        int height,
        int* minimum_width,
        int* natural_width
      );

    }

No description available.

###### Class members

`allocate` |
    void (* allocate) (
        GtkCellAreaContext* context,
        int width,
        int height
      )
| No description available.
`reset` |
    void (* reset) (
        GtkCellAreaContext* context
      )
| No description available.
`get_preferred_height_for_width` |
    void (* get_preferred_height_for_width) (
        GtkCellAreaContext* context,
        int width,
        int* minimum_height,
        int* natural_height
      )
| No description available.
`get_preferred_width_for_height` |
    void (* get_preferred_width_for_height) (
        GtkCellAreaContext* context,
        int height,
        int* minimum_width,
        int* natural_width
      )
| No description available.

#### Virtual methods

###### Gtk.CellAreaContextClass.allocate

Allocates a width and/or a height for all rows which are to be rendered with `context`.

###### Gtk.CellAreaContextClass.get_preferred_height_for_width

Gets the accumulative preferred height for `width` for all rows which have been requested for the same said `width` with this context.

###### Gtk.CellAreaContextClass.get_preferred_width_for_height

Gets the accumulative preferred width for `height` for all rows which have been requested for the same said `height` with this context.

###### Gtk.CellAreaContextClass.reset

Resets any previously cached request and allocation data.