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
ulong 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()

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.

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.