// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable UnusedAutoPropertyAccessor.Global
namespace RGB.NET.Core;
///
/// Represents a single target of a brush render.
///
public readonly struct RenderTarget
{
#region Properties & Fields
///
/// Gets the target-.
///
public Led Led { get; }
///
/// Gets the representing the area to render the target-.
///
public Rectangle Rectangle { get; }
///
/// Gets the representing the position to render the target-.
///
public Point Point => Rectangle.Center;
#endregion
#region Constructors
///
/// Initializes a new instance of the class.
///
/// The target-.
/// The representing the area to render the target-.
public RenderTarget(Led led, Rectangle rectangle)
{
this.Led = led;
this.Rectangle = rectangle;
}
#endregion
}