mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Core - Added default value to brush plugin properties Core - Bitmap brush optimizations
30 lines
699 B
C#
30 lines
699 B
C#
using SkiaSharp;
|
|
|
|
namespace Artemis.Core.Models.Profile.LayerShapes
|
|
{
|
|
public abstract class LayerShape
|
|
{
|
|
private SKPath _path;
|
|
|
|
protected LayerShape(Layer layer)
|
|
{
|
|
Layer = layer;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The layer this shape is attached to
|
|
/// </summary>
|
|
public Layer Layer { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets a copy of the path outlining the shape
|
|
/// </summary>
|
|
public SKPath Path
|
|
{
|
|
get => _path != null ? new SKPath(_path) : null;
|
|
protected set => _path = value;
|
|
}
|
|
|
|
public abstract void CalculateRenderProperties();
|
|
}
|
|
} |