VulkanContext

gdk.vulkan_context.VulkanContext is an object representing the platform-specific Vulkan draw context.

gdk.vulkan_context.VulkanContexts are created for a surface using gdk.surface.Surface.createVulkanContext, and the context will match the characteristics of the surface.

Support for gdk.vulkan_context.VulkanContext is platform-specific and context creation can fail, returning null context.

Constructors

this
this(void* ptr, Flag!"Take" take)

Members

Functions

connectImagesUpdated
gulong connectImagesUpdated(T callback, Flag!"After" after)

Connect to ImagesUpdated signal.

self
VulkanContext self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
builder
VulkanContextGidBuilder builder()

Get builder for gdk.vulkan_context.VulkanContext

Mixed In Members

From mixin InitableT!()

init_
bool init_(gio.cancellable.Cancellable cancellable)

Initializes the object implementing the interface.

Inherited Members

From DrawContext

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
DrawContext self()

Returns this, for use in with statements.

builder
DrawContextGidBuilder builder()

Get builder for gdk.draw_context.DrawContext

display
gdk.display.Display display [@property getter]

Get display property.

surface
gdk.surface.Surface surface [@property getter]

Get surface property.

beginFrame
void beginFrame(cairo.region.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.DrawContext.beginFrame.

getDisplay
gdk.display.Display getDisplay()

Retrieves the gdk.display.Display the context is created for

getFrameRegion
cairo.region.Region getFrameRegion()

Retrieves the region that is currently being repainted.

getSurface
gdk.surface.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.

From Initable

_getGType
GType _getGType()
init_
bool init_(gio.cancellable.Cancellable cancellable)

Initializes the object implementing the interface.