Cogl.xlib_renderer_add_filter
Description: Reference for Cogl.xlib_renderer_add_filter

### Function

# Coglxlib_renderer_add_filter

since: 13

#### Declaration [src]

    void
    cogl_xlib_renderer_add_filter (
      CoglRenderer* renderer,
      CoglXlibFilterFunc func,
      void* data
    )

#### Description [src]

Adds a callback function that will receive all native events. The function can stop further processing of the event by return `COGL_FILTER_REMOVE`.

Available since: 13

This function is not directly available to language bindings.

#### Parameters

`renderer`

  Type: `CoglRenderer*`

  A `CoglRenderer`.

  The data is owned by the caller of the function.

`func`

  Type: `CoglXlibFilterFunc`

  The callback function.

`data`

  Type: `void*`

  User data passed to `func` when called.

  The argument can be `NULL`.
  The data is owned by the caller of the function.