Method

CogViewportget_nth_view

Declaration [src]

CogView*
cog_viewport_get_nth_view (
  CogViewport* self,
  gsize index
)

Description [src]

Gets a view from the viewport given its index.

This is typically used along cog_viewport_get_n_views() to iterate over the views:

CogViewport *viewport = get_viewport();
for (gsize i = 0; i < cog_viewport_get_n_views(viewport); i++)
    handle_view(cog_viewport_get_nth_view(viewport, i));

Parameters

index gsize
 

Index of the view to get.

Return value

Returns: CogView
 

View at the given index.

 The data is owned by the instance.