gdk.draw_context

Module for [DrawContext] class

Types 3

Base class for objects implementing different rendering methods.

gdk.draw_context.DrawContext is the base object used by contexts implementing different rendering methods, such as gdk.cairo_context.CairoContext or gdk.glcontext.GLContext. It provides shared functionality between those contexts.

You will always interact with one of those subclasses.

A gdk.draw_context.DrawContext is always associated with a single toplevel surface.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
DrawContext self() nothrowReturns `this`, for use in `with` statements.
DrawContextGidBuilder builder() static nothrowGet builder for [gdk.draw_context.DrawContext] Returns: New builder object
gdk.display.Display display() @property nothrowGet `display` property. Returns: The [gdk.display.Display] used to create the [gdk.draw_context.DrawContext].
gdk.surface.Surface surface() @property nothrowGet `surface` property. Returns: The [gdk.surface.Surface] the context is bound to.
void beginFrame(cairo.region.Region region) nothrowIndicates that you are beginning the process of redrawing region on the context's surface.
void endFrame() nothrowEnds a drawing operation started with [gdk.draw_context.DrawContext.beginFrame].
gdk.display.Display getDisplay() nothrowRetrieves the [gdk.display.Display] the context is created for Returns: the [gdk.display.Display]
cairo.region.Region getFrameRegion() nothrowRetrieves the region that is currently being repainted.
gdk.surface.Surface getSurface() nothrowRetrieves the surface that context is bound to. Returns: a [gdk.surface.Surface]
bool isInFrame() nothrowReturns true if context is in the process of drawing to its surface.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gdk.draw_context.DrawContext

Methods
T display(gdk.display.Display propval) nothrowSet `display` property. Params: propval = The [gdk.display.Display] used to create the [gdk.draw_context.DrawContext]. Returns: Builder instance for fluent chaining
T surface(gdk.surface.Surface propval) nothrowSet `surface` property. Params: propval = The [gdk.surface.Surface] the context is bound to. Returns: Builder instance for fluent chaining

Fluent builder for gdk.draw_context.DrawContext

Methods
DrawContext build() nothrowCreate object from builder. Returns: New object