Surface
A GdkSurface
is a rectangular region on the screen.
It’s a low-level object, used to implement high-level objects such as ../gtk4/class.Window.html.
The surfaces you see in practice are either iface@Gdk.Toplevel or iface@Gdk.Popup, and those interfaces provide much of the required API to interact with these surfaces. Other, more specialized surface types exist, but you will rarely interact with them directly.
Skipped during bindings generation
parameter
x
: x: Out parameter is not supportedmethod
translate_coordinates
: In/Out parameter is not supported
Inheritors
Constructors
Types
Properties
Functions
Creates a new GdkCairoContext
for rendering on @surface.
Creates a new GdkGLContext
for the GdkSurface
.
This is deprecated since version 4.12.
This is deprecated since version 4.14.
Emits the "enter-monitor" signal. See onEnterMonitor.
Emits the "layout" signal. See onLayout.
Emits the "leave-monitor" signal. See onLeaveMonitor.
Retrieves a GdkCursor
pointer for the @device currently set on the specified GdkSurface
.
Check to see if a surface is destroyed.
Emitted when @surface starts being present on the monitor.
Emitted when @surface stops being present on the monitor.
Forces a signal@Gdk.Surface::render signal emission for @surface to be scheduled.
Request a layout phase from the surface's frame clock.
Sets a specific GdkCursor
for a given device when it gets inside @surface.
Apply the region to the surface for the purpose of event handling.
This is deprecated since version 4.16.