onscreen: add scope annotations

Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Lionel Landwerlin 2013-09-03 22:02:12 +01:00 committed by Robert Bragg
parent 6ed5a43b82
commit 9d2fc82077

View File

@ -549,10 +549,10 @@ typedef struct _CoglClosure CoglFrameClosure;
/** /**
* cogl_onscreen_add_frame_callback: * cogl_onscreen_add_frame_callback:
* @onscreen: A #CoglOnscreen framebuffer * @onscreen: A #CoglOnscreen framebuffer
* @callback: A callback function to call for frame events * @callback: (scope notified): A callback function to call for frame events
* @user_data: A private pointer to be passed to @callback * @user_data: (closure): A private pointer to be passed to @callback
* @destroy: An optional callback to destroy @user_data when the * @destroy: (allow-none): An optional callback to destroy @user_data
* @callback is removed or @onscreen is freed. * when the @callback is removed or @onscreen is freed.
* *
* Installs a @callback function that will be called for significant * Installs a @callback function that will be called for significant
* events relating to the given @onscreen framebuffer. * events relating to the given @onscreen framebuffer.
@ -615,8 +615,9 @@ typedef void (*CoglSwapBuffersNotify) (CoglFramebuffer *framebuffer,
/** /**
* cogl_onscreen_add_swap_buffers_callback: * cogl_onscreen_add_swap_buffers_callback:
* @onscreen: A #CoglOnscreen framebuffer * @onscreen: A #CoglOnscreen framebuffer
* @callback: A callback function to call when a swap has completed * @callback: (scope notified): A callback function to call when a swap
* @user_data: A private pointer to be passed to @callback * has completed
* @user_data: (closure): A private pointer to be passed to @callback
* *
* Installs a @callback function that should be called whenever a swap buffers * Installs a @callback function that should be called whenever a swap buffers
* request (made using cogl_onscreen_swap_buffers()) for the given * request (made using cogl_onscreen_swap_buffers()) for the given
@ -766,11 +767,11 @@ typedef struct _CoglClosure CoglOnscreenResizeClosure;
/** /**
* cogl_onscreen_add_resize_callback: * cogl_onscreen_add_resize_callback:
* @onscreen: A #CoglOnscreen framebuffer * @onscreen: A #CoglOnscreen framebuffer
* @callback: A #CoglOnscreenResizeCallback to call when the @onscreen * @callback: (scope notified): A #CoglOnscreenResizeCallback to call when
* changes size. * the @onscreen changes size.
* @user_data: Private data to be passed to @callback. * @user_data: (closure): Private data to be passed to @callback.
* @destroy: An optional callback to destroy @user_data when the * @destroy: (allow-none): An optional callback to destroy @user_data
* @callback is removed or @onscreen is freed. * when the @callback is removed or @onscreen is freed.
* *
* Registers a @callback with @onscreen that will be called whenever * Registers a @callback with @onscreen that will be called whenever
* the @onscreen framebuffer changes size. * the @onscreen framebuffer changes size.
@ -873,9 +874,9 @@ typedef struct _CoglClosure CoglOnscreenDirtyClosure;
/** /**
* cogl_onscreen_add_dirty_callback: * cogl_onscreen_add_dirty_callback:
* @onscreen: A #CoglOnscreen framebuffer * @onscreen: A #CoglOnscreen framebuffer
* @callback: A callback function to call for dirty events * @callback: (scope notified): A callback function to call for dirty events
* @user_data: A private pointer to be passed to @callback * @user_data: (closure): A private pointer to be passed to @callback
* @destroy: An optional callback to destroy @user_data when the * @destroy: (allow-none): An optional callback to destroy @user_data when the
* @callback is removed or @onscreen is freed. * @callback is removed or @onscreen is freed.
* *
* Installs a @callback function that will be called whenever the * Installs a @callback function that will be called whenever the