mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
26 lines
656 B
C#
26 lines
656 B
C#
using Artemis.Storage.Entities.Profile;
|
|
|
|
namespace Artemis.Core.Models.Profile.LayerShapes
|
|
{
|
|
public class Fill : LayerShape
|
|
{
|
|
public Fill(Layer layer) : base(layer)
|
|
{
|
|
}
|
|
internal Fill(Layer layer, ShapeEntity shapeEntity) : base(layer, shapeEntity)
|
|
{
|
|
}
|
|
|
|
public override void CalculateRenderProperties()
|
|
{
|
|
RenderPath = Layer.Path;
|
|
RenderRectangle = Layer.Path.GetRect();
|
|
}
|
|
|
|
public override void ApplyToEntity()
|
|
{
|
|
base.ApplyToEntity();
|
|
Layer.LayerEntity.ShapeEntity.Type = ShapeEntityType.Fill;
|
|
}
|
|
}
|
|
} |