gi-gdk-4.0.3: Gdk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gdk.Objects.VulkanContext

Description

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

GdkVulkanContexts are created for a Surface using surfaceCreateVulkanContext, and the context will match the the characteristics of the surface.

Support for VulkanContext is platform-specific, context creation can fail, returning Nothing context.

Synopsis

Exported types

newtype VulkanContext Source #

Memory-managed wrapper type.

Constructors

VulkanContext (ManagedPtr VulkanContext) 

Instances

Instances details
Eq VulkanContext Source # 
Instance details

Defined in GI.Gdk.Objects.VulkanContext

GObject VulkanContext Source # 
Instance details

Defined in GI.Gdk.Objects.VulkanContext

ManagedPtrNewtype VulkanContext Source # 
Instance details

Defined in GI.Gdk.Objects.VulkanContext

Methods

toManagedPtr :: VulkanContext -> ManagedPtr VulkanContext

TypedObject VulkanContext Source # 
Instance details

Defined in GI.Gdk.Objects.VulkanContext

Methods

glibType :: IO GType

HasParentTypes VulkanContext Source # 
Instance details

Defined in GI.Gdk.Objects.VulkanContext

IsGValue (Maybe VulkanContext) Source #

Convert VulkanContext to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gdk.Objects.VulkanContext

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe VulkanContext -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe VulkanContext)

type ParentTypes VulkanContext Source # 
Instance details

Defined in GI.Gdk.Objects.VulkanContext

type ParentTypes VulkanContext = '[DrawContext, Object, Initable]

class (GObject o, IsDescendantOf VulkanContext o) => IsVulkanContext o Source #

Type class for types which can be safely cast to VulkanContext, for instance with toVulkanContext.

Instances

Instances details
(GObject o, IsDescendantOf VulkanContext o) => IsVulkanContext o Source # 
Instance details

Defined in GI.Gdk.Objects.VulkanContext

toVulkanContext :: (MonadIO m, IsVulkanContext o) => o -> m VulkanContext Source #

Cast to VulkanContext, for types for which this is known to be safe. For general casts, use castTo.

Methods

Signals

imagesUpdated

type C_VulkanContextImagesUpdatedCallback = Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type VulkanContextImagesUpdatedCallback = IO () Source #

This signal is emitted when the images managed by this context have changed. Usually this means that the swapchain had to be recreated, for example in response to a change of the surface size.

afterVulkanContextImagesUpdated :: (IsVulkanContext a, MonadIO m) => a -> VulkanContextImagesUpdatedCallback -> m SignalHandlerId Source #

Connect a signal handler for the imagesUpdated signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after vulkanContext #imagesUpdated callback

onVulkanContextImagesUpdated :: (IsVulkanContext a, MonadIO m) => a -> VulkanContextImagesUpdatedCallback -> m SignalHandlerId Source #

Connect a signal handler for the imagesUpdated signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on vulkanContext #imagesUpdated callback