Class
GdkSurface
Description [src]
abstract class Gdk.Surface : GObject.Object
{
/* No available fields */
}
A GdkSurface
is a rectangular region on the screen.
It’s a low-level object, used to implement high-level objects such as GtkWindow.
The surfaces you see in practice are either GdkToplevel
or
GdkPopup
, 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.
Instance methods
gdk_surface_create_similar_surface
Create a new Cairo surface that is as compatible as possible with the
given surface
.
deprecated: 4.12
gdk_surface_destroy
Destroys the window system resources associated with surface
and
decrements surface
‘s reference count.
gdk_surface_get_cursor
Retrieves a GdkCursor
pointer for the cursor currently set on the
GdkSurface
.
gdk_surface_get_device_cursor
Retrieves a GdkCursor
pointer for the device
currently set on the
specified GdkSurface
.
gdk_surface_get_scale
Returns the internal scale that maps from surface coordinates to the actual device pixels.
since: 4.12
gdk_surface_get_scale_factor
Returns the internal scale factor that maps from surface coordinates to the actual device pixels.
gdk_surface_set_device_cursor
Sets a specific GdkCursor
for a given device when it gets inside surface
.
Signals
Gdk.Surface::layout
Emitted when the size of surface
is changed, or when relayout should
be performed.
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.