Skip to main content

Avalonia.Platform Namespace

Classes

AssetLoaderLoads assets compiled into the application binary.
KnownPlatformGraphicsExternalImageHandleTypesDescribes various GPU memory handle types that are currently supported by Avalonia graphics backends
KnownPlatformGraphicsExternalSemaphoreHandleTypesDescribes various GPU semaphore handle types that are currently supported by Avalonia graphics backends
LockedFramebuffer 
OptionalFeatureProviderExtensions 
PixelFormats 
PlatformColorValuesInformation about current system color values, including information about dark mode and accent colors.
PlatformGraphicsContextLostException 
PlatformGraphicsDeviceAdapterDescription 
PlatformHandleRepresents a platform-specific handle.
ScopedResource(T) 
ScreenRepresents a single display screen.
StandardAssetLoaderLoads assets compiled into the application binary.
Unstable.

Structures

PixelFormat 
PlatformGraphicsExternalImageProperties 

Interfaces

IApplicationPlatformEvents
Unstable.
IAssetLoaderLoads assets compiled into the application binary.
Unstable.
IExternalObjectsHandleWrapRenderInterfaceContextFeatureThis interface allows proper management of ref-counted platform handles. If we immediately wrap the handle, the caller can destroy its copy immediately after the call This is needed for MoltenVK-based users that can e.g. get an MTLSharedEvent from a VkSemaphore. This does NOT actually increase the ref-counter of MTLSharedEvent, since it's declared as __unsafe_unretained in vulkan headers. Same happens with exporting an IOSurfaceRef from a VkImage. So in a case when the VkSemaphore or VkImage is destroyed, the "handle" which is actually a pointer will be pointing to a dead object. To prevent this we need to increase the reference counter in a handle-specific means synchronously before returning control back to the user. This is not needed for fds or DXGI handles, since those are created on demand as proper NT handles
Unstable.
Not client implementable.
IExternalObjectsRenderInterfaceContextFeature
Unstable.
IExternalObjectsWrappedGpuHandle
Unstable.
Not client implementable.
IGeometryContextDescribes a geometry using drawing commands.
IGeometryContext2 
ILockedFramebuffer 
IMacOSTopLevelPlatformHandle
Unstable.
INativePlatformHandleSurface
Unstable.
IOptionalFeatureProvider 
IPlatformBehaviorInhibitionAllows to inhibit platform specific behavior.
IPlatformGraphics
Unstable.
IPlatformGraphicsContext
Unstable.
IPlatformGraphicsReadyStateFeature
Unstable.
IPlatformGraphicsWithFeatures
Unstable.
IPlatformHandleRepresents a platform-specific handle.
IPlatformSettingsThe IPlatformSettings interface represents a contract for accessing platform-specific settings and information. Some of these settings might be changed by used globally in the OS in runtime.
Not client implementable.
IScopedResource(T) 

Enumerations

AlphaFormatDescribes how to interpret the alpha component of a pixel.
ColorContrastPreferenceSystem high contrast preference.
ExtendClientAreaChromeHintsHint for Window Chrome when ClientArea is Extended.
FormFactorType 
PlatformGraphicsExternalImageFormat 
PlatformThemeVariantSystem theme variant or mode.
ScreenOrientationDescribes the orientation of a screen.