Method

CogViewportremove

Declaration [src]

void
cog_viewport_remove (
  CogViewport* self,
  CogView* view
)

Description [src]

Removes a view from the viewport.

Removing a view preserves the relative ordering of the rest of views in the viewport. This also means that the index used to retrieve them may change after removal.

After removal, CogViewport:visible-view is updated if the view being removed was visible. If there are other views left associated with the viewport, the one at index zero will be set as visible; otherwise if there are no views left, the property is set to NULL.

Parameters

view CogView
 

The view to remove.

 The data is owned by the caller of the function.