Skip to content

Commit

Permalink
Add PublicAPI to the Graphics projects (dotnet#12601)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow authored Jan 13, 2023
1 parent f7fdb08 commit dbaeee9
Show file tree
Hide file tree
Showing 47 changed files with 13,867 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
<PropertyGroup Condition="'$(CI)' != 'true' and '$(TF_BUILD)' != 'true'">
<DotNetWorkloadVersionRegex>\d+\.\d+\.\d+(-[a-z]+[\.\d+]+)?</DotNetWorkloadVersionRegex>
<DotNetSdkVersionRegex>\d+\.\d+\.\d+(-[a-z]+\.\d+)?</DotNetSdkVersionRegex>
<DotNetSdkMajorMinorVersionRegex>\d+\.\d+\.\d</DotNetSdkMajorMinorVersionRegex>

<DotNetSdkManifestVersion>$([System.Text.RegularExpressions.Regex]::Match('$(MSBuildExtensionsPath)', '$(DotNetSdkVersionRegex)'))</DotNetSdkManifestVersion>
<DotNetSdkManifestVersion>$([System.Text.RegularExpressions.Regex]::Match('$(DotNetSdkManifestVersion)', '$(DotNetSdkMajorMinorVersionRegex)'))00</DotNetSdkManifestVersion>

<DotNetWorkloadInstallLocation Condition="'$(DotNetWorkloadInstallLocation)' == '' and Exists('$(DOTNET_ROOT)\sdk-manifests\$(DotNetSdkManifestVersion)\microsoft.net.sdk.macos\WorkloadManifest.json')">$(DOTNET_ROOT)\sdk-manifests\$(DotNetSdkManifestVersion)\</DotNetWorkloadInstallLocation>
<DotNetWorkloadInstallLocation Condition="'$(DotNetWorkloadInstallLocation)' == '' and Exists('$(ProgramFiles)\dotnet\sdk-manifests\$(DotNetSdkManifestVersion)\microsoft.net.sdk.macos\WorkloadManifest.json')">$(ProgramFiles)\dotnet\sdk-manifests\$(DotNetSdkManifestVersion)\</DotNetWorkloadInstallLocation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<AssemblyName>Microsoft.Maui.Graphics.Skia.GtkSharp</AssemblyName>
<IsPackable>false</IsPackable>
<IsTrimmable>false</IsTrimmable>
<NoWarn>$(NoWarn);RS0041</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand All @@ -17,4 +18,6 @@
<ProjectReference Include="..\Graphics\Graphics.csproj" />
</ItemGroup>

<Import Project="$(MauiSrcDirectory)PublicAPI.targets" />

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#nullable enable
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#nullable enable
Microsoft.Maui.Graphics.Skia.GtkSkiaDirectRenderer
Microsoft.Maui.Graphics.Skia.GtkSkiaDirectRenderer.Detached() -> void
Microsoft.Maui.Graphics.Skia.GtkSkiaDirectRenderer.Dispose() -> void
Microsoft.Maui.Graphics.Skia.GtkSkiaDirectRenderer.GtkSkiaDirectRenderer() -> void
Microsoft.Maui.Graphics.Skia.GtkSkiaDirectRenderer.Invalidate() -> void
Microsoft.Maui.Graphics.Skia.GtkSkiaDirectRenderer.Invalidate(float x, float y, float w, float h) -> void
Microsoft.Maui.Graphics.Skia.GtkSkiaDirectRenderer.SizeChanged(int width, int height) -> void
Microsoft.Maui.Graphics.Skia.GtkSkiaGraphicsView
Microsoft.Maui.Graphics.Skia.GtkSkiaGraphicsView.GtkSkiaGraphicsView() -> void
Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer
Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.Detached() -> void
Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.Invalidate() -> void
Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.Invalidate(float x, float y, float w, float h) -> void
Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.SizeChanged(int width, int height) -> void
override Microsoft.Maui.Graphics.Skia.GtkSkiaGraphicsView.OnSizeAllocated(Gdk.Rectangle allocation) -> void
~Microsoft.Maui.Graphics.Skia.GtkSkiaDirectRenderer.BackgroundColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Graphics.Skia.GtkSkiaDirectRenderer.BackgroundColor.set -> void
~Microsoft.Maui.Graphics.Skia.GtkSkiaDirectRenderer.Canvas.get -> Microsoft.Maui.Graphics.ICanvas
~Microsoft.Maui.Graphics.Skia.GtkSkiaDirectRenderer.Draw(SkiaSharp.SKCanvas skiaCanvas, Microsoft.Maui.Graphics.RectF dirtyRect) -> void
~Microsoft.Maui.Graphics.Skia.GtkSkiaDirectRenderer.Drawable.get -> Microsoft.Maui.Graphics.IDrawable
~Microsoft.Maui.Graphics.Skia.GtkSkiaDirectRenderer.Drawable.set -> void
~Microsoft.Maui.Graphics.Skia.GtkSkiaDirectRenderer.GraphicsView.set -> void
~Microsoft.Maui.Graphics.Skia.GtkSkiaGraphicsView.BackgroundColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Graphics.Skia.GtkSkiaGraphicsView.BackgroundColor.set -> void
~Microsoft.Maui.Graphics.Skia.GtkSkiaGraphicsView.Drawable.get -> Microsoft.Maui.Graphics.IDrawable
~Microsoft.Maui.Graphics.Skia.GtkSkiaGraphicsView.Drawable.set -> void
~Microsoft.Maui.Graphics.Skia.GtkSkiaGraphicsView.Renderer.get -> Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer
~Microsoft.Maui.Graphics.Skia.GtkSkiaGraphicsView.Renderer.set -> void
~Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.BackgroundColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.BackgroundColor.set -> void
~Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.Canvas.get -> Microsoft.Maui.Graphics.ICanvas
~Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.Draw(SkiaSharp.SKCanvas canvas, Microsoft.Maui.Graphics.RectF dirtyRect) -> void
~Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.Drawable.get -> Microsoft.Maui.Graphics.IDrawable
~Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.Drawable.set -> void
~Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.GraphicsView.set -> void
~override Microsoft.Maui.Graphics.Skia.GtkSkiaGraphicsView.OnPaintSurface(SkiaSharp.Views.Desktop.SKPaintSurfaceEventArgs e) -> void
3 changes: 3 additions & 0 deletions src/Graphics/src/Graphics.Skia.WPF/Graphics.Skia.WPF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<AssemblyName>Microsoft.Maui.Graphics.Skia.WPF</AssemblyName>
<IsPackable>false</IsPackable>
<IsTrimmable>false</IsTrimmable>
<NoWarn>$(NoWarn);RS0041</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand All @@ -19,4 +20,6 @@
<ProjectReference Include="..\Graphics\Graphics.csproj" />
</ItemGroup>

<Import Project="$(MauiSrcDirectory)PublicAPI.targets" />

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#nullable enable
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#nullable enable
Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer
Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.Detached() -> void
Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.Invalidate() -> void
Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.Invalidate(float x, float y, float w, float h) -> void
Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.SizeChanged(int width, int height) -> void
Microsoft.Maui.Graphics.Skia.WDSkiaDirectRenderer
Microsoft.Maui.Graphics.Skia.WDSkiaDirectRenderer.Detached() -> void
Microsoft.Maui.Graphics.Skia.WDSkiaDirectRenderer.Dispose() -> void
Microsoft.Maui.Graphics.Skia.WDSkiaDirectRenderer.Invalidate() -> void
Microsoft.Maui.Graphics.Skia.WDSkiaDirectRenderer.Invalidate(float x, float y, float w, float h) -> void
Microsoft.Maui.Graphics.Skia.WDSkiaDirectRenderer.SizeChanged(int width, int height) -> void
Microsoft.Maui.Graphics.Skia.WDSkiaDirectRenderer.WDSkiaDirectRenderer() -> void
Microsoft.Maui.Graphics.Skia.WDSkiaGraphicsView
Microsoft.Maui.Graphics.Skia.WDSkiaGraphicsView.Invalidate() -> void
Microsoft.Maui.Graphics.Skia.WDSkiaGraphicsView.WDSkiaGraphicsView() -> void
~Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.BackgroundColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.BackgroundColor.set -> void
~Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.Canvas.get -> Microsoft.Maui.Graphics.ICanvas
~Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.Draw(SkiaSharp.SKCanvas canvas, Microsoft.Maui.Graphics.RectF dirtyRect) -> void
~Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.Drawable.get -> Microsoft.Maui.Graphics.IDrawable
~Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.Drawable.set -> void
~Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer.GraphicsView.set -> void
~Microsoft.Maui.Graphics.Skia.WDSkiaDirectRenderer.BackgroundColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Graphics.Skia.WDSkiaDirectRenderer.BackgroundColor.set -> void
~Microsoft.Maui.Graphics.Skia.WDSkiaDirectRenderer.Canvas.get -> Microsoft.Maui.Graphics.ICanvas
~Microsoft.Maui.Graphics.Skia.WDSkiaDirectRenderer.Draw(SkiaSharp.SKCanvas skiaCanvas, Microsoft.Maui.Graphics.RectF dirtyRect) -> void
~Microsoft.Maui.Graphics.Skia.WDSkiaDirectRenderer.Drawable.get -> Microsoft.Maui.Graphics.IDrawable
~Microsoft.Maui.Graphics.Skia.WDSkiaDirectRenderer.Drawable.set -> void
~Microsoft.Maui.Graphics.Skia.WDSkiaDirectRenderer.GraphicsView.set -> void
~Microsoft.Maui.Graphics.Skia.WDSkiaGraphicsView.BackgroundColor.get -> Microsoft.Maui.Graphics.Color
~Microsoft.Maui.Graphics.Skia.WDSkiaGraphicsView.BackgroundColor.set -> void
~Microsoft.Maui.Graphics.Skia.WDSkiaGraphicsView.Drawable.get -> Microsoft.Maui.Graphics.IDrawable
~Microsoft.Maui.Graphics.Skia.WDSkiaGraphicsView.Drawable.set -> void
~Microsoft.Maui.Graphics.Skia.WDSkiaGraphicsView.Renderer.get -> Microsoft.Maui.Graphics.Skia.ISkiaGraphicsRenderer
~Microsoft.Maui.Graphics.Skia.WDSkiaGraphicsView.Renderer.set -> void
~override Microsoft.Maui.Graphics.Skia.WDSkiaGraphicsView.OnPaintSurface(SkiaSharp.Views.Desktop.SKPaintSurfaceEventArgs e) -> void
~override Microsoft.Maui.Graphics.Skia.WDSkiaGraphicsView.OnRenderSizeChanged(System.Windows.SizeChangedInfo sizeInfo) -> void
4 changes: 3 additions & 1 deletion src/Graphics/src/Graphics.Skia/Graphics.Skia.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<AssemblyName>Microsoft.Maui.Graphics.Skia</AssemblyName>
<IsTrimmable>false</IsTrimmable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<NoWarn>$(NoWarn);CS1591;RS0026;RS0027;RS0041</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand All @@ -27,4 +27,6 @@

<Import Project="..\..\..\Workload\Shared\LibraryPacks.targets" />

<Import Project="$(MauiSrcDirectory)PublicAPI.targets" />

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#nullable enable
Loading

0 comments on commit dbaeee9

Please sign in to comment.