Method

CogViewportset_visible_view

Declaration [src]

void
cog_viewport_set_visible_view (
  CogViewport* self,
  CogView* view
)

Description [src]

Sets the visible view for the viewport.

The view set as currently visible will gets its state flags %wpe_view_activity_state_visible set; and the previously visible one (if any) will get the flag removed, as well as the %wpe_view_activity_state_focused removed, too.

Note that the %wpe_view_activity_state_focused flag will not be enabled for the view that was made visible. The reasons is that in theory only one view should have this flag at a time, and there is no way to determine whether a focused view may already be present in another viewport.

Parameters

view CogView
 

The view to set as visible.

 The data is owned by the caller of the function.