Class
GdkSurface
since: 4.0
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.
Available since: 4.0
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 since: 4.0
gdk_surface_destroy
Destroys the window system resources associated with surface
and
decrements surface
‘s reference count.
since: 4.0
gdk_surface_get_cursor
Retrieves a GdkCursor
pointer for the cursor currently set on the
GdkSurface
.
since: 4.0
gdk_surface_get_device_cursor
Retrieves a GdkCursor
pointer for the device
currently set on the
specified GdkSurface
.
since: 4.0
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.
since: 4.0
gdk_surface_queue_render
Forces a GdkSurface::render
signal emission for surface
to be scheduled.
since: 4.0
gdk_surface_set_device_cursor
Sets a specific GdkCursor
for a given device when it gets inside surface
.
since: 4.0
gdk_surface_set_input_region
Apply the region to the surface for the purpose of event handling.
since: 4.0
Signals
Gdk.Surface::layout
Emitted when the size of surface
is changed, or when relayout should
be performed.
since: 4.0
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.
since: 2.0