mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Device dialog - Added LEDs tab
General - Resolved lots of compile warnings (XML comments)
This commit is contained in:
1 parent
021f17aef4
commit
65837e671a
44 files changed
+1015
-761
No files matched your search
@@ -1,14 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Avalonia;
|
||||
|
||||
namespace Artemis.UI.Shared.Extensions
|
||||
{
|
||||
public static class PointExtensions
|
||||
{
|
||||
public static Point Empty = new(0, 0);
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,16 @@ using SkiaSharp;
|
||||
|
||||
namespace Artemis.UI.Shared.Extensions;
|
||||
|
||||
/// <summary>
|
||||
/// Provides utility methods when working with SkiaSharp matrices.
|
||||
/// </summary>
|
||||
public static class SKMatrixExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts the matrix to an Avalonia <see cref="Matrix" />.
|
||||
/// </summary>
|
||||
/// <param name="matrix">The matrix to convert.</param>
|
||||
/// <returns>The resulting Avalonia <see cref="Matrix" />.</returns>
|
||||
public static Matrix ToMatrix(this SKMatrix matrix)
|
||||
{
|
||||
return new Matrix(
|
||||
|
||||
@@ -3,13 +3,26 @@ using SkiaSharp;
|
||||
|
||||
namespace Artemis.UI.Shared.Extensions;
|
||||
|
||||
/// <summary>
|
||||
/// Provides utility methods when working with SkiaSharp rectangles.
|
||||
/// </summary>
|
||||
public static class SKRectExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts the rectangle to an Avalonia <see cref="Rect" />.
|
||||
/// </summary>
|
||||
/// <param name="rect">The rectangle to convert.</param>
|
||||
/// <returns>The resulting Avalonia <see cref="Rect" />.</returns>
|
||||
public static Rect ToRect(this SKRect rect)
|
||||
{
|
||||
return new Rect(rect.Left, rect.Top, rect.Width, rect.Height);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts the integer rectangle to an Avalonia <see cref="Rect" />.
|
||||
/// </summary>
|
||||
/// <param name="rect">The integer rectangle to convert.</param>
|
||||
/// <returns>The resulting Avalonia <see cref="Rect" />.</returns>
|
||||
public static Rect ToRect(this SKRectI rect)
|
||||
{
|
||||
return new Rect(rect.Left, rect.Top, rect.Width, rect.Height);
|
||||
|
||||
Reference in new issue
Block a user