DrawContext

open class DrawContext(pointer: <Error class: unknown class><<Error class: unknown class>>)

Base class for objects implementing different rendering methods.

GdkDrawContext is the base object used by contexts implementing different rendering methods, such as class@Gdk.CairoContext or class@Gdk.GLContext. It provides shared functionality between those contexts.

You will always interact with one of those subclasses.

A GdkDrawContext is always associated with a single toplevel surface.

Skipped during bindings generation

  • parameter region: cairo.Region

  • method get_frame_region: Return type cairo.Region is unsupported

Inheritors

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val display: Display?

The GdkDisplay used to create the GdkDrawContext.

Link copied to clipboard
val gdkDrawContextPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val surface: Surface?

The GdkSurface the context is bound to.

Functions

Link copied to clipboard
open fun endFrame()

Ends a drawing operation started with gdk_draw_context_begin_frame().

Link copied to clipboard
open fun isInFrame(): Boolean

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