OnscreenResizeCallback


Description:

public delegate void OnscreenResizeCallback (Onscreen onscreen, int width, int height)

Is a callback type used with the add_resize_callback allowing applications to be notified whenever an onscreen framebuffer is resized.

<note>Cogl automatically updates the viewport of an onscreen framebuffer that is resized so this callback is also an indication that the viewport has been modified too</note>

<note>A resize callback will only ever be called while dispatching Cogl events from the system mainloop; so for example during poll_renderer_dispatch. This is so that callbacks shouldn't occur while an application might have arbitrary locks held for example.</note>

Parameters:

onscreen

A Onscreen framebuffer that was resized

width

The new width of onscreen

height

The new height of onscreen

user_data

The private passed to add_resize_callback


Namespace: Cogl
Package: doc