Surface
Object Hierarchy:
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 [class@Gtk.Window] or [class@Gtk.Dialog] in GTK.
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.
Content:
Properties:
- public Cursor cursor { get; set; }
The mouse pointer for the `GdkSurface`.
- public Display display { get; construct; }
The `GdkDisplay` connection of the surface.
- public FrameClock frame_clock { get; construct; }
The `GdkFrameClock` of the surface.
- public int height { get; }
The height of the surface, in pixels.
- public bool mapped { get; }
Whether the surface is mapped.
- public int scale_factor { get; }
The scale factor of the surface.
- public int width { get; }
The width of the surface in pixels.
Creation methods:
Methods:
Signals:
- public signal void enter_monitor (Monitor monitor)
Emitted when surface
starts being present on the monitor.
- public signal bool event (Event event)
Emitted when GDK receives an input event for surface
.
- public signal void layout (int width, int height)
Emitted when the size of surface
is changed, or when relayout
should be performed.
- public signal void leave_monitor (Monitor monitor)
Emitted when surface
stops being present on the monitor.
- public signal bool render (Region region)
Emitted when part of the surface needs to be redrawn.
Inherited Members:
All known members inherited from class GLib.Object