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
method
create_similar_surface
: Return type cairo.Surface is unsupportedparameter
x
: x: Out parameter is not supportedparameter
region
: cairo.Regionparameter
region
: cairo.Regionmethod
translate_coordinates
: In/Out parameter is not supportedsignal
render
: Signal render is ignored
Constructors
Properties
Functions
Emitted when @surface starts being present on the monitor.
Emitted when GDK receives an input event for @surface.
Emitted when the size of @surface is changed, or when relayout should be performed.
Emitted when @surface stops being present on the monitor.
Creates a new GdkCairoContext
for rendering on @surface.
Creates a new GdkGLContext
for the GdkSurface
.
Sets an error and returns null.
Retrieves a GdkCursor
pointer for the @device currently set on the specified GdkSurface
.
Check to see if a surface is destroyed.
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.