swift-winui/Sources/WinUI/Generated/Windows.UI.Xaml.Interop+ABI.swift
2024-02-15 17:16:00 -08:00

27 lines
792 B
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
public enum __ABI_Windows_UI_Xaml_Interop {
public class _ABI_TypeName {
public var val: __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName = .init()
public init() { }
public init(from swift: WinUI.TypeName) {
val.Name = try! HString(swift.name).detach()
val.Kind = swift.kind
}
public func detach() -> __x_ABI_CWindows_CUI_CXaml_CInterop_CTypeName {
let result = val
val.Name = nil
return result
}
deinit {
WindowsDeleteString(val.Name)
}
}
}