Class
GdkDrawingContext
Description [src]
final class Gdk.DrawingContext : GObject.Object
{
/* No available fields */
}
GdkDrawingContext
is an object that represents the current drawing
state of a GdkWindow
.
It’s possible to use a GdkDrawingContext
to draw on a GdkWindow
via rendering API like Cairo or OpenGL.
A GdkDrawingContext
can only be created by calling gdk_window_begin_draw_frame()
and will be valid until a call to gdk_window_end_draw_frame().
GdkDrawingContext
is available since GDK 3.22.
Instance methods
gdk_drawing_context_get_cairo_context
Retrieves a Cairo context to be used to draw on the GdkWindow
that created the GdkDrawingContext
.
since: 3.22
gdk_drawing_context_get_clip
Retrieves a copy of the clip region used when creating the context
.
since: 3.22
Signals
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.