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.

Hierarchy

hierarchy this GdkDrawingContext ancestor_0 GObject ancestor_0--this

Ancestors

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

gdk_drawing_context_get_window

Retrieves the window that created the drawing context.

since: 3.22

gdk_drawing_context_is_valid

Checks whether the given GdkDrawingContext is valid.

since: 3.22

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Gdk.DrawingContext:clip

The clip region applied to the drawing context.

since: 3.22

Gdk.DrawingContext:window

The GdkWindow that created the drawing 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.

Class structure

struct GdkDrawingContextClass {
  /* no available fields */
}

No description available.