Cogl.FrameCallback
Description: Reference for Cogl.FrameCallback

### Function

# CoglFrameCallback

since: 1.14

#### Declaration

    void
    (* CoglFrameCallback) (
      CoglOnscreen* onscreen,
      CoglFrameEvent event,
      CoglFrameInfo* info,
      void* user_data
    )

#### Description [src]

Is a callback that can be registered via `cogl_onscreen_add_frame_callback()` to be called when a frame progresses in some notable way.

Please see the documentation for `CoglFrameEvent` and `cogl_onscreen_add_frame_callback()` for more details about what events can be notified.

Stability: Unstable

Available since: 1.14

#### Parameters

`onscreen`

  Type: `CoglOnscreen`

  The onscreen that the frame is associated with.

  The data is owned by the caller of the function.

`event`

  Type: `CoglFrameEvent`

  A `CoglFrameEvent` notifying how the frame has progressed.

`info`

  Type: `CoglFrameInfo`

  The meta information, such as timing information, about the frame that has progressed.

  The data is owned by the caller of the function.

`user_data`

  Type: `void*`

  The user pointer passed to `cogl_onscreen_add_frame_callback()`

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