Function

Gdkquery_visual_types

Declaration [src]

void
gdk_query_visual_types (
  GdkVisualType** visual_types,
  gint* count
)

Description [src]

This function returns the available visual types for the default screen. It’s equivalent to listing the visuals (gdk_list_visuals()) and then looking at the type field in each visual, removing duplicates.

The array returned by this function should not be freed.

Deprecated since:3.22

Visual selection should be done using gdk_screen_get_system_visual() and gdk_screen_get_rgba_visual()

Parameters

visual_types An array of GdkVisualType
 

Return location for the available visual types.

 The argument will be set by the function.
 The length of the array is specified in the count argument.
 The data is owned by the caller of the function.
count gint*
 

Return location for the number of available visual types.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.