activate


Description:

public virtual bool activate (Event event, Widget widget, string path, Rectangle background_area, Rectangle cell_area, CellRendererState flags)

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:

this

a `GtkCellRenderer`

event

a `GdkEvent`

widget

widget that received the event

path

widget-dependent string representation of the event location; e.g. for `GtkTreeView`, a string representation of `GtkTreePath`

background_area

background area as passed to gtk_cell_renderer_render

cell_area

cell area as passed to gtk_cell_renderer_render

flags

render flags

Returns:

true if the event was consumed/handled




2022 vala-language.org