mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Core - Removed Fody
UI projects will follow Not interested in becoming a Patreon with their attitude and fixes edit & continue in the core
This commit is contained in:
1 parent
d47f347beb
commit
f18edc4f36
14 files changed
+234
-145
No files matched your search
@@ -12,6 +12,10 @@ namespace Artemis.Core.Models.Surface
|
||||
{
|
||||
public class ArtemisDevice : PropertyChangedBase
|
||||
{
|
||||
private SKRect _renderRectangle;
|
||||
private SKPath _renderPath;
|
||||
private ReadOnlyCollection<ArtemisLed> _leds;
|
||||
|
||||
internal ArtemisDevice(IRGBDevice rgbDevice, Plugin plugin, ArtemisSurface surface)
|
||||
{
|
||||
RgbDevice = rgbDevice;
|
||||
@@ -37,14 +41,28 @@ namespace Artemis.Core.Models.Surface
|
||||
Leds = rgbDevice.Select(l => new ArtemisLed(l, this)).ToList().AsReadOnly();
|
||||
}
|
||||
|
||||
public SKRect RenderRectangle { get; private set; }
|
||||
public SKPath RenderPath { get; private set; }
|
||||
public SKRect RenderRectangle
|
||||
{
|
||||
get => _renderRectangle;
|
||||
private set => SetAndNotify(ref _renderRectangle, value);
|
||||
}
|
||||
|
||||
public SKPath RenderPath
|
||||
{
|
||||
get => _renderPath;
|
||||
private set => SetAndNotify(ref _renderPath, value);
|
||||
}
|
||||
|
||||
public IRGBDevice RgbDevice { get; }
|
||||
public Plugin Plugin { get; }
|
||||
public ArtemisSurface Surface { get; }
|
||||
public DeviceEntity DeviceEntity { get; }
|
||||
public ReadOnlyCollection<ArtemisLed> Leds { get; set; }
|
||||
|
||||
public ReadOnlyCollection<ArtemisLed> Leds
|
||||
{
|
||||
get => _leds;
|
||||
set => SetAndNotify(ref _leds, value);
|
||||
}
|
||||
|
||||
public double X
|
||||
{
|
||||
|
||||
@@ -7,6 +7,9 @@ namespace Artemis.Core.Models.Surface
|
||||
{
|
||||
public class ArtemisLed : PropertyChangedBase
|
||||
{
|
||||
private SKRect _renderRectangle;
|
||||
private SKRect _absoluteRenderRectangle;
|
||||
|
||||
public ArtemisLed(Led led, ArtemisDevice device)
|
||||
{
|
||||
RgbLed = led;
|
||||
@@ -18,9 +21,18 @@ namespace Artemis.Core.Models.Surface
|
||||
public Led RgbLed { get; }
|
||||
public ArtemisDevice Device { get; }
|
||||
|
||||
public SKRect RenderRectangle { get; private set; }
|
||||
public SKRect AbsoluteRenderRectangle { get; private set; }
|
||||
|
||||
public SKRect RenderRectangle
|
||||
{
|
||||
get => _renderRectangle;
|
||||
private set => SetAndNotify(ref _renderRectangle, value);
|
||||
}
|
||||
|
||||
public SKRect AbsoluteRenderRectangle
|
||||
{
|
||||
get => _absoluteRenderRectangle;
|
||||
private set => SetAndNotify(ref _absoluteRenderRectangle, value);
|
||||
}
|
||||
|
||||
public void CalculateRenderRectangle()
|
||||
{
|
||||
RenderRectangle = SKRect.Create(
|
||||
|
||||
@@ -9,6 +9,11 @@ namespace Artemis.Core.Models.Surface
|
||||
{
|
||||
public class ArtemisSurface : PropertyChangedBase
|
||||
{
|
||||
private double _scale;
|
||||
private string _name;
|
||||
private bool _isActive;
|
||||
private List<ArtemisDevice> _devices;
|
||||
|
||||
internal ArtemisSurface(RGBSurface rgbSurface, string name, double scale)
|
||||
{
|
||||
SurfaceEntity = new SurfaceEntity {DeviceEntities = new List<DeviceEntity>()};
|
||||
@@ -40,10 +45,30 @@ namespace Artemis.Core.Models.Surface
|
||||
}
|
||||
|
||||
public RGBSurface RgbSurface { get; }
|
||||
public double Scale { get; private set; }
|
||||
public string Name { get; set; }
|
||||
public bool IsActive { get; internal set; }
|
||||
public List<ArtemisDevice> Devices { get; internal set; }
|
||||
|
||||
public double Scale
|
||||
{
|
||||
get => _scale;
|
||||
private set => SetAndNotify(ref _scale, value);
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get => _name;
|
||||
set => SetAndNotify(ref _name, value);
|
||||
}
|
||||
|
||||
public bool IsActive
|
||||
{
|
||||
get => _isActive;
|
||||
internal set => SetAndNotify(ref _isActive, value);
|
||||
}
|
||||
|
||||
public List<ArtemisDevice> Devices
|
||||
{
|
||||
get => _devices;
|
||||
internal set => SetAndNotify(ref _devices, value);
|
||||
}
|
||||
|
||||
internal SurfaceEntity SurfaceEntity { get; set; }
|
||||
internal Guid EntityId { get; set; }
|
||||
|
||||
Reference in new issue
Block a user