mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using System;
|
|
using Artemis.Core.LayerBrushes;
|
|
|
|
namespace Artemis.UI.Shared.LayerBrushes;
|
|
|
|
/// <inheritdoc />
|
|
public class LayerBrushConfigurationDialog<T> : LayerBrushConfigurationDialog where T : BrushConfigurationViewModel
|
|
{
|
|
/// <inheritdoc />
|
|
public LayerBrushConfigurationDialog()
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public LayerBrushConfigurationDialog(int dialogWidth, int dialogHeight)
|
|
{
|
|
DialogWidth = dialogWidth;
|
|
DialogHeight = dialogHeight;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override Type Type => typeof(T);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Describes a UI tab for a layer brush
|
|
/// </summary>
|
|
public abstract class LayerBrushConfigurationDialog : ILayerBrushConfigurationDialog
|
|
{
|
|
/// <summary>
|
|
/// The default width of the dialog
|
|
/// </summary>
|
|
public int DialogWidth { get; set; } = 800;
|
|
|
|
/// <summary>
|
|
/// The default height of the dialog
|
|
/// </summary>
|
|
public int DialogHeight { get; set; } = 800;
|
|
|
|
/// <summary>
|
|
/// The type of view model the dialog contains
|
|
/// </summary>
|
|
public abstract Type Type { get; }
|
|
} |