Surface
Object Hierarchy:
Description:
[ CCode ( type_id = "gdk_x11_surface_get_type ()" ) ]
[ GIR ( name = "X11Surface" ) ]
public sealed class Surface : Surface
[ GIR ( name = "X11Surface" ) ]
public sealed class Surface : Surface
Namespace: Gdk.X11
Package: gtk4-x11
Content:
Static methods:
- public static unowned Surface lookup_for_display (Display display, Window window)
Looks up the `GdkSurface` that wraps the given native window handle.
Creation methods:
- protected Surface ()
Methods:
- public uint32 get_desktop ()
Gets the number of the workspace this is on.
- public unowned Surface? get_group ()
Returns the group this surface belongs to.
- public uint32 get_server_time ()
Routine to get the current X server time stamp.
- public Window get_xid ()
Returns the X resource (surface) belonging to a `GdkSurface`.
- public void move_to_current_desktop ()
Moves the surface to the correct workspace when running under a window manager that supports multiple workspaces, as described in the Extended Window Manager Hints specification.
- public void move_to_desktop (uint32 desktop)
Moves the surface to the given workspace when running unde a window manager that supports multiple workspaces, as described in the Extended Window Manager Hints specification.
- public void set_frame_sync_enabled (bool frame_sync_enabled)
This function can be used to disable frame synchronization for a surface.
- public void set_group (Surface leader)
Sets the group leader of this to be
leader
. - public void set_skip_pager_hint (bool skips_pager)
Sets a hint on this that pagers should not display it.
- public void set_skip_taskbar_hint (bool skips_taskbar)
Sets a hint on this that taskbars should not display it.
- public void set_theme_variant (string variant)
GTK applications can request a dark theme variant.
- public void set_urgency_hint (bool urgent)
Sets a hint on this that it needs user attention.
- public void set_user_time (uint32 timestamp)
The application can use this call to update the _NET_WM_USER_TIME property on a toplevel surface.
- public void set_utf8_property (string name, string? value)
This function modifies or removes an arbitrary X11 window property of type UTF8_STRING.
Inherited Members:
All known members inherited from class Gdk.Surface
All known members inherited from class GLib.Object