Class
GdkDisplay
Description [src]
final class Gdk.Display : GObject.Object
{
/* No available fields */
}
GdkDisplay
objects are the GDK representation of a workstation.
Their purpose are two-fold:
- To manage and provide information about input devices (pointers, keyboards, etc)
- To manage and provide information about output devices (monitors, projectors, etc)
Most of the input device handling has been factored out into separate
GdkSeat
objects. Every display has a one or more seats, which
can be accessed with gdk_display_get_default_seat()
and
gdk_display_list_seats()
.
Output devices are represented by GdkMonitor
objects, which can
be accessed with gdk_display_get_monitor_at_surface()
and similar APIs.
Instance methods
gdk_display_get_app_launch_context
Returns a GdkAppLaunchContext
suitable for launching
applications on the given display.
gdk_display_get_dmabuf_formats
Returns the dma-buf formats that are supported on this display.
since: 4.14
gdk_display_get_startup_notification_id
Gets the startup notification ID for a Wayland display, or NULL
if no ID has been defined.
deprecated: 4.10
gdk_display_is_composited
Returns whether surfaces can reasonably be expected to have their alpha channel drawn correctly on the screen.
gdk_display_map_keyval
Obtains a list of keycode/group/level combinations that will
generate keyval
.
gdk_display_notify_startup_complete
Indicates to the GUI environment that the application has finished loading, using a given identifier.
deprecated: 4.10
gdk_display_prepare_gl
Checks that OpenGL is available for self
and ensures that it is
properly initialized.
When this fails, an error
will be set describing the error and this
function returns FALSE
.
since: 4.4
gdk_display_supports_shadow_width
Returns whether it’s possible for a surface to draw outside of the window area.
since: 4.14
gdk_display_sync
Flushes any requests queued for the windowing system and waits until all requests have been handled.
gdk_display_translate_key
Translates the contents of a GdkEventKey
into a keyval, effective group,
and level.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.