Table of Contents

Namespace Avalonia.Platform

Classes

AssetLoader

Loads assets compiled into the application binary.

DefaultPlatformSettings

A default implementation of IPlatformSettings for platforms.

DrawingContextImplExtensions
KnownPlatformGraphicsExternalImageHandleTypes

Describes various GPU memory handle types that are currently supported by Avalonia graphics backends

KnownPlatformGraphicsExternalSemaphoreHandleTypes

Describes various GPU semaphore handle types that are currently supported by Avalonia graphics backends

LockedFramebuffer
OptionalFeatureProviderExtensions
PixelFormats
PlatformColorValues

Information about current system color values, including information about dark mode and accent colors.

PlatformGraphicsContextLostException
PlatformGraphicsDeviceAdapterDescription
PlatformHandle

Represents a platform-specific handle.

PlatformScreen
ScopedResource<T>
Screen

Represents a single display screen.

ScreensBase<TKey, TScreen>
StandardAssetLoader

Loads assets compiled into the application binary.

StandardRuntimePlatform

Structs

LtrbPixelRect

This struct is essentially the same thing as RECT from win32 API Unlike our "normal" PixelRect which is more human-readable and human-usable this struct is optimized for actual processing that doesn't really care about Width and Height but pretty much always only cares about Right and Bottom edge coordinates

Not having to constantly convert between Width/Height and Right/Bottom for no actual reason saves us some perf

This structure is intended to be mostly internal, but it's exposed as a PrivateApi type so it can be passed to the drawing backend when needed

LtrbRect

This struct is essentially the same thing as MilRectD Unlike our "normal" Rect which is more human-readable and human-usable this struct is optimized for actual processing that doesn't really care about Width and Height but pretty much always only cares about Right and Bottom edge coordinates

Not having to constantly convert between Width/Height and Right/Bottom for no actual reason saves us some perf

This structure is intended to be mostly internal, but it's exposed as a PrivateApi type so it can be passed to the drawing backend when needed

PixelFormat
PlatformGraphicsExternalImageProperties
RenderTargetDrawingContextProperties
RenderTargetProperties
RuntimePlatformInfo

Interfaces

IApplicationPlatformEvents
IAssetLoader

Loads assets compiled into the application binary.

IBitmapImpl

Defines the platform-specific interface for a Bitmap.

ICursorFactory
ICursorImpl

Represents a platform implementation of a Cursor.

IDrawingContextImpl

Defines the interface through which drawing occurs.

IDrawingContextImplWithEffects
IDrawingContextLayerImpl
IDrawingContextLayerWithRenderContextAffinityImpl
IDrawingContextWithAcrylicLikeSupport
IExternalObjectsRenderInterfaceContextFeature
IFontManagerImpl
IGeometryContext

Describes a geometry using drawing commands.

IGeometryContext2
IGeometryImpl

Defines the platform-specific interface for a Geometry.

IGlyphRunImpl

An immutable platform representation of a GlyphRun.

ILockedFramebuffer
IMacOSTopLevelPlatformHandle
INativePlatformHandleSurface
IOptionalFeatureProvider
IPlatformBehaviorInhibition

Allows to inhibit platform specific behavior.

IPlatformGraphics
IPlatformGraphicsContext
IPlatformGraphicsReadyStateFeature
IPlatformGraphicsWithFeatures
IPlatformHandle

Represents a platform-specific handle.

IPlatformIconLoader
IPlatformLifetimeEventsImpl
IPlatformRenderInterface

Defines the main platform-specific interface for the rendering subsystem.

IPlatformRenderInterfaceContext
IPlatformRenderInterfaceImportedImage
IPlatformRenderInterfaceImportedObject
IPlatformRenderInterfaceImportedSemaphore
IPlatformRenderInterfaceRegion
IPlatformSettings

The 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.

IPlatformThreadingInterface

Provides platform-specific services relating to threading.

IPopupImpl

Defines a platform-specific popup window implementation.

IReadableBitmapImpl
IReadableBitmapWithAlphaImpl
IRenderTarget

Defines a render target

IRenderTarget2
IRenderTargetBitmapImpl

Defines the platform-specific interface for a RenderTargetBitmap.

IRenderTargetWithProperties
IRuntimePlatform
IScopedResource<T>
IScreenImpl
IStreamGeometryContextImpl

Describes a geometry using drawing commands.

IStreamGeometryImpl

Defines the platform-specific interface for a StreamGeometry.

ISystemNavigationManagerImpl
ITextShaperImpl

An abstraction that is used produce shaped text.

ITopLevelImpl

Defines a platform-specific top-level window implementation.

ITransformedGeometryImpl

Represents a geometry with a transform applied.

ITrayIconImpl
ITrayIconWithIsTemplateImpl
IWindowBaseImpl
IWindowIconImpl
IWindowImpl

Defines a platform-specific window implementation.

IWindowingPlatform
IWriteableBitmapImpl

Defines the platform-specific interface for a WriteableBitmap.

Enums

AlphaFormat

Describes how to interpret the alpha component of a pixel.

ColorContrastPreference

System high contrast preference.

ExtendClientAreaChromeHints

Hint for Window Chrome when ClientArea is Extended.

FormFactorType
PlatformGraphicsExternalImageFormat
PlatformThemeVariant

System theme variant or mode.

ScreenOrientation

Describes the orientation of a screen.