since: 2.8

Declaration [src]

gdk_screen_get_rgba_visual (
  GdkScreen* screen

Description [src]

Gets a visual to use for creating windows with an alpha channel. The windowing system on which GTK+ is running may not support this capability, in which case NULL will be returned. Even if a non-NULL value is returned, its possible that the window’s alpha channel won’t be honored when displaying the window on the screen: in particular, for X an appropriate windowing manager and compositing manager must be running to provide appropriate display.

This functionality is not implemented in the Windows backend.

For setting an overall opacity for a top-level window, see gdk_window_set_opacity().

Available since: 2.8

Return value

Type: GdkVisual

A visual to use for windows with an alpha channel or NULL if the capability is not available.

The returned data is owned by the instance.
The return value can be NULL.