tristanlabelle / swift-winrt

A Swift Projection for WinRT APIs
MIT License
20 stars 2 forks source link

Activatable classes deriving from composable classes are not generated as subclasses #370

Closed tristanlabelle closed 4 weeks ago

tristanlabelle commented 1 month ago

For example, metadata:

[Composable(typeof(IBrushFactory), CompositionType.Protected, 65536u, "Microsoft.UI.Xaml.WinUIContract")]
public class Brush : DependencyObject, IBrush, IBrushOverrides, IAnimationObject {}

[Activatable(typeof(ISolidColorBrushFactory), 65536u, "Microsoft.UI.Xaml.WinUIContract")]
public sealed class SolidColorBrush : Brush, ISolidColorBrush {}

Result:

/// Paints an area with a solid color. The solid color is defined by a Color value.
public final class MicrosoftUIXamlMedia_SolidColorBrush: WindowsRuntime.WinRTImport<MicrosoftUIXamlMedia_SolidColorBrushBinding>, @unchecked Sendable {