Class: GdkX11::X11Surface
- Inherits:
-
Gdk::Surface
- Object
- Gdk::Surface
- GdkX11::X11Surface
- Defined in:
- (unknown)
Class Method Summary collapse
-
.lookup_for_display(display, window) ⇒ GdkX11::X11Surface
Looks up the
GdkSurfacethat wraps the given native window handle.
Instance Method Summary collapse
-
#desktop ⇒ Integer
Gets the number of the workspace surface is on.
-
#frame_sync_enabled=(frame_sync_enabled) ⇒ nil
This function can be used to disable frame synchronization for a surface.
-
#group ⇒ Gdk::Surface
Returns the group this surface belongs to.
-
#group=(leader) ⇒ nil
Sets the group leader of surface to be leader.
-
#move_to_current_desktop ⇒ nil
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.
-
#move_to_desktop(desktop) ⇒ nil
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.
-
#set_utf8_property(name, value) ⇒ nil
This function modifies or removes an arbitrary X11 window property of type UTF8_STRING.
-
#skip_pager_hint=(skips_pager) ⇒ nil
Sets a hint on surface that pagers should not display it.
-
#skip_taskbar_hint=(skips_taskbar) ⇒ nil
Sets a hint on surface that taskbars should not display it.
-
#theme_variant=(variant) ⇒ nil
GTK applications can request a dark theme variant.
-
#urgency_hint=(urgent) ⇒ nil
Sets a hint on surface that it needs user attention.
-
#user_time=(timestamp) ⇒ nil
The application can use this call to update the _NET_WM_USER_TIME property on a toplevel surface.
-
#xid ⇒ xlib::Window
Returns the X resource (surface) belonging to a
GdkSurface.
Methods inherited from Gdk::Surface
#beep, #create_cairo_context, #create_gl_context, #create_similar_surface, #create_vulkan_context, #cursor, #cursor=, #destroy, #display, #display=, #frame_clock, #frame_clock=, #get_device_cursor, #get_device_position, #height, #height=, #hide, #initialize, #input_region=, #is_destroyed, #mapped, #mapped=, #mapped?, #opaque_region=, #queue_render, #request_layout, #scale, #scale=, #scale_factor, #scale_factor=, #set_device_cursor, #translate_coordinates, #width, #width=
Constructor Details
This class inherits a constructor from Gdk::Surface
Class Method Details
.lookup_for_display(display, window) ⇒ GdkX11::X11Surface
Looks up the GdkSurface that wraps the given native window handle.
Instance Method Details
#desktop ⇒ Integer
Gets the number of the workspace surface is on.
#frame_sync_enabled=(frame_sync_enabled) ⇒ nil
This function can be used to disable frame synchronization for a surface. Normally frame synchronziation will be enabled or disabled based on whether the system has a compositor that supports frame synchronization, but if the surface is not directly managed by the window manager, then frame synchronziation may need to be disabled. This is the case for a surface embedded via the XEMBED protocol.
#group ⇒ Gdk::Surface
Returns the group this surface belongs to.
#group=(leader) ⇒ nil
Sets the group leader of surface to be leader. See the ICCCM for details.
#move_to_current_desktop ⇒ nil
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. Will not do anything if the surface is already on all workspaces.
#move_to_desktop(desktop) ⇒ nil
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.
#set_utf8_property(name, value) ⇒ nil
This function modifies or removes an arbitrary X11 window property of type UTF8_STRING. If the given surface is not a toplevel surface, it is ignored.
#skip_pager_hint=(skips_pager) ⇒ nil
Sets a hint on surface that pagers should not display it. See the EWMH for details.
#skip_taskbar_hint=(skips_taskbar) ⇒ nil
Sets a hint on surface that taskbars should not display it. See the EWMH for details.
#theme_variant=(variant) ⇒ nil
GTK applications can request a dark theme variant. In order to make other applications - namely window managers using GTK for themeing - aware of this choice, GTK uses this function to export the requested theme variant as _GTK_THEME_VARIANT property on toplevel surfaces.
Note that this property is automatically updated by GTK, so this function should only be used by applications which do not use GTK to create toplevel surfaces.
#urgency_hint=(urgent) ⇒ nil
Sets a hint on surface that it needs user attention. See the ICCCM for details.
#user_time=(timestamp) ⇒ nil
The application can use this call to update the _NET_WM_USER_TIME property on a toplevel surface. This property stores an Xserver time which represents the time of the last user input event received for this surface. This property may be used by the window manager to alter the focus, stacking, and/or placement behavior of surfaces when they are mapped depending on whether the new surface was created by a user action or is a "pop-up" surface activated by a timer or some other event.
Note that this property is automatically updated by GDK, so this function should only be used by applications which handle input events bypassing GDK.
#xid ⇒ xlib::Window
Returns the X resource (surface) belonging to a GdkSurface.