Gtk.CellRenderer.activate
Description: Reference for Gtk.CellRenderer.activate

### Virtual Method

# Gtk CellRendereractivate

#### Declaration [src]

    gboolean
    activate (
      GtkCellRenderer* cell,
      GdkEvent* event,
      GtkWidget* widget,
      const char* path,
      const GdkRectangle* background_area,
      const GdkRectangle* cell_area,
      GtkCellRendererState flags
    )

#### Description [src]

Passes an activate event to the cell renderer for possible processing. Some cell renderers may use events; for example, `GtkCellRendererToggle` toggles when it gets a mouse click.

#### Parameters

`event` | `GdkEvent`
| A `GdkEvent`
| The data is owned by the caller of the function.
`widget` | `GtkWidget`
| Widget that received the event.
| The data is owned by the caller of the function.
`path` | `const char*`
| Widget-dependent string representation of the event location; e.g. for `GtkTreeView`, a string representation of `GtkTreePath`
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`background_area` | `GdkRectangle`
| Background area as passed to `gtk_cell_renderer_render()`
| The data is owned by the caller of the function.
`cell_area` | `GdkRectangle`
| Cell area as passed to `gtk_cell_renderer_render()`
| The data is owned by the caller of the function.
`flags` | `GtkCellRendererState`
| Render flags.

#### Return value

Returns: | `gboolean`
| `TRUE` if the event was consumed/handled.