Surface


Object Hierarchy:

Gdk.Surface Gdk.Surface Gdk.Surface GLib.Object GLib.Object GLib.Object->Gdk.Surface

Description:

[ CCode ( type_id = "gdk_surface_get_type ()" ) ]
public class Surface : Object

A `GdkSurface` is a rectangular region on the screen.

It’s a low-level object, used to implement high-level objects such as [GtkWindow](../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.

Required by:

Namespace: Gdk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members: