mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Merge branch 'development' into feature/avalonia
Code cleanup
This commit is contained in:
1 parent
6f75683c4d
commit
35f83e58e5
22 files changed
+176
-95
No files matched your search
@@ -3,8 +3,20 @@ using Artemis.Core.SkiaSharp;
|
||||
|
||||
namespace Artemis.Core.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a class that can provide one or more graphics <see cref="IManagedGraphicsContext"/> instances by name.
|
||||
/// </summary>
|
||||
public interface IGraphicsContextProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a read only collection containing the names of all the graphics contexts supported by this provider.
|
||||
/// </summary>
|
||||
IReadOnlyCollection<string> GraphicsContextNames { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a managed graphics context by name.
|
||||
/// </summary>
|
||||
/// <param name="name">The name of the graphics context.</param>
|
||||
/// <returns>If found, an instance of the managed graphics context with the given <paramref name="name"/>; otherwise <see langword="null"/>.</returns>
|
||||
IManagedGraphicsContext? GetGraphicsContext(string name);
|
||||
}
|
||||
@@ -85,7 +85,7 @@ namespace Artemis.Core.Services
|
||||
}
|
||||
}
|
||||
|
||||
private void ActivationUpdateTimerOnElapsed(object sender, ElapsedEventArgs e)
|
||||
private void ActivationUpdateTimerOnElapsed(object? sender, ElapsedEventArgs e)
|
||||
{
|
||||
UpdateModuleActivation();
|
||||
}
|
||||
|
||||
@@ -24,10 +24,14 @@ namespace Artemis.Core.Services
|
||||
List<LayerBrushDescriptor> GetLayerBrushes();
|
||||
|
||||
/// <summary>
|
||||
/// Returns the descriptor of the default layer brush
|
||||
/// Returns the descriptor of the default layer brush
|
||||
/// </summary>
|
||||
LayerBrushDescriptor? GetDefaultLayerBrush();
|
||||
|
||||
/// <summary>
|
||||
/// Applies the configured default brush to the provided <paramref name="layer" />.
|
||||
/// </summary>
|
||||
/// <param name="layer">The layer to apply the default brush to.</param>
|
||||
void ApplyDefaultBrush(Layer layer);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user