// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable UnusedAutoPropertyAccessor.Global
using System.Drawing;
using CUE.NET.Devices.Generic.Enums;
using CUE.NET.Helper;
namespace CUE.NET.Brushes
{
///
/// Represents a single target of a brush render.
///
public class BrushRenderTarget
{
#region Properties & Fields
///
/// Gets the ID of the target-LED.
///
public CorsairLedId LedId { get; }
///
/// Gets the rectangle representing the area to render the target-LED.
///
public RectangleF Rectangle { get; }
///
/// Gets the point representing the position to render the target-LED.
///
public PointF Point { get; }
#endregion
#region Constructors
///
/// Initializes a new instance of the class.
///
/// The ID of the target-LED.
/// The rectangle representing the area to render the target-LED.
public BrushRenderTarget(CorsairLedId ledId, RectangleF rectangle)
{
this.Rectangle = rectangle;
this.LedId = ledId;
Point = rectangle.GetCenter();
}
#endregion
}
}