swift-uwp/Sources/UWP/Generated/Windows.Perception.Spatial.swift
2024-02-15 17:14:48 -08:00

41 lines
1.6 KiB
Swift

// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1
// swiftlint:disable all
import Foundation
@_spi(WinRTInternal) @_spi(WinRTImplements) import WindowsFoundation
import CWinRT
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.perception.spatial.spatialcoordinatesystem)
public final class SpatialCoordinateSystem : WinRTClass {
private typealias SwiftABI = __ABI_Windows_Perception_Spatial.ISpatialCoordinateSystem
private typealias CABI = __x_ABI_CWindows_CPerception_CSpatial_CISpatialCoordinateSystem
private lazy var _default: SwiftABI! = getInterfaceForCaching()
@_spi(WinRTInternal)
override public func _getABI<T>() -> UnsafeMutablePointer<T>? {
if T.self == CABI.self {
return RawPointer(_default)
}
return super._getABI()
}
@_spi(WinRTInternal)
public static func from(abi: ComPtr<__x_ABI_CWindows_CPerception_CSpatial_CISpatialCoordinateSystem>?) -> SpatialCoordinateSystem? {
guard let abi = abi else { return nil }
return .init(fromAbi: WindowsFoundation.IInspectable(abi))
}
@_spi(WinRTInternal)
public init(fromAbi: WindowsFoundation.IInspectable) {
super.init(fromAbi)
}
/// [Open Microsoft documentation](https://learn.microsoft.com/uwp/api/windows.perception.spatial.spatialcoordinatesystem.trygettransformto)
public func tryGetTransformTo(_ target: SpatialCoordinateSystem!) throws -> WindowsFoundation.Matrix4x4? {
try _default.TryGetTransformToImpl(target)
}
deinit {
_default = nil
}
}