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
DrawContextGidBuilder builder() static nothrowGet builder for [gdk.draw_context.DrawContext] Returns: New builder objectgdk.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]gdk.surface.Surface getSurface() nothrowRetrieves the surface that context is bound to. Returns: a [gdk.surface.Surface]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 chainingT surface(gdk.surface.Surface propval) nothrowSet `surface` property. Params: propval = The [gdk.surface.Surface] the context is bound to. Returns: Builder instance for fluent chainingFluent builder for gdk.draw_context.DrawContext
Methods