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.

Available since: 3.22

gdk_drawing_context_get_clip

Retrieves a copy of the clip region used when creating the context.

Available since: 3.22

gdk_drawing_context_get_window

Retrieves the window that created the drawing context.

Available since: 3.22

gdk_drawing_context_is_valid

Checks whether the given GdkDrawingContext is valid.

Available since: 3.22

Methods inherited from GObject (42)

Properties

Gdk.DrawingContext:clip

The clip region applied to the drawing context.

Available since: 3.22

Gdk.DrawingContext:window

The GdkWindow that created the drawing context.

Available since: 3.22

Signals

Signals inherited from GObject (1)

Class structure

struct GdkDrawingContextClass {
  /* no available fields */
}