CairoContext

GdkCairoContext is an object representing the platform-specific draw context.

GdkCairoContexts are created for a surface using [method@Gdk.Surface.create_cairo_context], and the context can then be used to draw on that surface.

Constructors

this
this(GdkCairoContext* gdkCairoContext, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

cairoCreate
Context cairoCreate()

Retrieves a Cairo context to be used to draw on the GdkSurface of @context.

getCairoContextStruct
GdkCairoContext* getCairoContextStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gdkCairoContext
GdkCairoContext* gdkCairoContext;

the main Gtk struct

Inherited Members

From DrawContext

gdkDrawContext
GdkDrawContext* gdkDrawContext;

the main Gtk struct

getDrawContextStruct
GdkDrawContext* getDrawContextStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
beginFrame
void beginFrame(Region region)

Indicates that you are beginning the process of redrawing @region on the @context's surface.

endFrame
void endFrame()

Ends a drawing operation started with gdk_draw_context_begin_frame().

getDisplay
Display getDisplay()

Retrieves the GdkDisplay the @context is created for

getFrameRegion
Region getFrameRegion()

Retrieves the region that is currently being repainted.

getSurface
Surface getSurface()

Retrieves the surface that @context is bound to.

isInFrame
bool isInFrame()

Returns %TRUE if @context is in the process of drawing to its surface.

Meta