Moved all the Native* classes into Microsoft.Maui.Graphics.Native namespace
This commit is contained in:
Родитель
19e06b01f1
Коммит
282c351da9
|
@ -6,6 +6,7 @@ using Android.Content;
|
|||
using Android.Views;
|
||||
using Android.Widget;
|
||||
using GraphicsTester.Scenarios;
|
||||
using Microsoft.Maui.Graphics.Native;
|
||||
|
||||
namespace GraphicsTester.Android
|
||||
{
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using Microsoft.Maui.Graphics.CoreGraphics;
|
||||
using AppKit;
|
||||
using CoreGraphics;
|
||||
using Microsoft.Maui.Graphics.Native;
|
||||
|
||||
namespace GraphicsTester.Mac
|
||||
{
|
||||
|
|
|
@ -3,6 +3,7 @@ using Microsoft.Maui.Graphics.CoreGraphics;
|
|||
using Microsoft.Maui.Graphics.Skia.Views;
|
||||
using AppKit;
|
||||
using CoreGraphics;
|
||||
using Microsoft.Maui.Graphics.Native;
|
||||
|
||||
namespace GraphicsTester.Skia {
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ using Android.Graphics;
|
|||
using Android.Text;
|
||||
using System;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class GraphicsExtensions
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Android.Graphics;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class ImageExtensions
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System.IO;
|
||||
using Android.Graphics;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeBitmapExportContext : BitmapExportContext
|
||||
{
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
using Microsoft.Maui.Graphics.Android.Text;
|
||||
using Microsoft.Maui.Graphics.Native.Text;
|
||||
using Microsoft.Maui.Graphics.Text;
|
||||
using Android.Content;
|
||||
using Android.Graphics;
|
||||
using Android.Text;
|
||||
using System;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeCanvas : AbstractCanvas<NativeCanvasState>
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@ using Android.Graphics;
|
|||
using Android.Text;
|
||||
using Color = Android.Graphics.Color;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeCanvasState : CanvasState, IBlurrableCanvas
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeFontFamily : IFontFamily, IComparable<IFontFamily>, IComparable
|
||||
{
|
||||
|
|
|
@ -3,8 +3,9 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using Android.App;
|
||||
using Android.Graphics;
|
||||
using Microsoft.Maui.Graphics.Android;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeFontService : AbstractFontService
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeFontStyle : IFontStyle, IComparable
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@ using System.IO;
|
|||
using Android.Graphics;
|
||||
using Android.Text;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeGraphicsService : IGraphicsService
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ using Android.Graphics;
|
|||
using Android.Util;
|
||||
using Android.Views;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeGraphicsView : View
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@ using System.Threading;
|
|||
using System.Threading.Tasks;
|
||||
using Android.Graphics;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeImage : IImage
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ using Android.Graphics;
|
|||
using Android.Text;
|
||||
using Android.Text.Style;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android.Text
|
||||
namespace Microsoft.Maui.Graphics.Native.Text
|
||||
{
|
||||
public static class AttributedTextExtensions
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Android.Graphics;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android.Text
|
||||
namespace Microsoft.Maui.Graphics.Native.Text
|
||||
{
|
||||
public static class ColorExtensions
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ using Microsoft.Maui.Graphics.Text.Immutable;
|
|||
using System.IO;
|
||||
using Android.Text;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android.Text
|
||||
namespace Microsoft.Maui.Graphics.Native.Text
|
||||
{
|
||||
public static class SpannableExtensions
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System.Drawing;
|
||||
using Android.Text;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Android
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class TextLayoutUtils
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using AppKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class CoreGraphicsExtensions
|
||||
{
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using AppKit;
|
||||
using CoreGraphics;
|
||||
using Microsoft.Maui.Graphics.Native;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using AppKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class DrawableExtensions
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public interface IGraphicsRenderer : IDisposable
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using AppKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class NSColorExtensions
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ using AppKit;
|
|||
using CoreGraphics;
|
||||
using Foundation;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class NSImageExtensions
|
||||
{
|
||||
|
|
|
@ -2,8 +2,9 @@ using System;
|
|||
using System.IO;
|
||||
using AppKit;
|
||||
using CoreGraphics;
|
||||
using Microsoft.Maui.Graphics.CoreGraphics;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeBitmapExportContext : BitmapExportContext
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
using AppKit;
|
||||
using Foundation;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeFontFamily : IFontFamily, IComparable<IFontFamily>, IComparable
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.Linq;
|
|||
using AppKit;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeFontRegistry
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@ using AppKit;
|
|||
using CoreGraphics;
|
||||
using CoreText;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeFontService : AbstractFontService
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeFontStyle : IFontStyle
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ using CoreGraphics;
|
|||
using CoreText;
|
||||
using Foundation;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeGraphicsService : IGraphicsService
|
||||
{
|
||||
|
|
|
@ -2,8 +2,9 @@ using System;
|
|||
using AppKit;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
using Microsoft.Maui.Graphics.CoreGraphics;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
[Register("NativeGraphicsView")]
|
||||
public class NativeGraphicsView : NSView
|
||||
|
|
|
@ -5,8 +5,9 @@ using System.Threading.Tasks;
|
|||
using AppKit;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
using Microsoft.Maui.Graphics.CoreGraphics;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeImage : IImage
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using AppKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class NativeImageExtensions
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.IO;
|
|||
using CoreGraphics;
|
||||
using Foundation;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativePdfExportContext : PdfExportContext
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativePdfExportService : IPdfExportService
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@ using CoreText;
|
|||
using Foundation;
|
||||
using System;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeCanvas : AbstractCanvas<NativeCanvasState>
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeCanvasState : CanvasState
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class NativeGraphicsExtensions
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ using Microsoft.Maui.Graphics.Text;
|
|||
using CoreText;
|
||||
using Foundation;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class AttributedTextExtensions
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using CoreGraphics;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class CGColorExtensions
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ using Microsoft.Maui.Graphics.Text.Immutable;
|
|||
using System.IO;
|
||||
using Foundation;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class NSAttributedStringExtension
|
||||
{
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
using CoreGraphics;
|
||||
using Microsoft.Maui.Graphics.Native;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public interface IGraphicsRenderer : IDisposable
|
||||
{
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using CoreGraphics;
|
||||
using Microsoft.Maui.Graphics.CoreGraphics;
|
||||
using UIKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeBitmapExportContext : BitmapExportContext
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
using CoreText;
|
||||
using UIKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeFontFamily : IFontFamily, IComparable<IFontFamily>, IComparable
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@ using CoreGraphics;
|
|||
using CoreText;
|
||||
using UIKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeFontService : AbstractFontService
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeFontStyle : IFontStyle
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using CoreText;
|
|||
using Foundation;
|
||||
using UIKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeGraphicsService : IGraphicsService
|
||||
{
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
using System.Drawing;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
using Microsoft.Maui.Graphics.CoreGraphics;
|
||||
using UIKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
[Register("NativeGraphicsView")]
|
||||
public class NativeGraphicsView : UIView
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Threading.Tasks;
|
|||
using Foundation;
|
||||
using UIKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativeImage : IImage
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using UIKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class NativeImageExtensions
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@ using CoreGraphics;
|
|||
using Foundation;
|
||||
using UIKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativePdfExportContext : PdfExportContext
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public class NativePdfExportService : IPdfExportService
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class UIColorExtensions
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using UIKit;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class UIImageExtensions
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using UIKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class UIKitExtensions
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Foundation;
|
||||
using UIKit;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.CoreGraphics
|
||||
namespace Microsoft.Maui.Graphics.Native
|
||||
{
|
||||
public static class UIViewExtensions
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче