mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
21 lines
448 B
C#
21 lines
448 B
C#
using SkiaSharp;
|
|
|
|
namespace Artemis.Core;
|
|
|
|
/// <summary>
|
|
/// Represents a rectangular layer shape
|
|
/// </summary>
|
|
public class RectangleShape : LayerShape
|
|
{
|
|
internal RectangleShape(Layer layer) : base(layer)
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override void CalculateRenderProperties()
|
|
{
|
|
SKPath path = new();
|
|
path.AddRect(SKRect.Create(Layer.Bounds.Width, Layer.Bounds.Height));
|
|
Path = path;
|
|
}
|
|
} |