mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2025-12-13 00:58:31 +00:00
31 lines
599 B
C#
31 lines
599 B
C#
using System.Drawing;
|
|
|
|
namespace CUE.NET.Devices.Keyboard.Brushes
|
|
{
|
|
public class SolidColorBrush : IBrush
|
|
{
|
|
#region Properties & Fields
|
|
|
|
public Color Color { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public SolidColorBrush(Color color)
|
|
{
|
|
this.Color = color;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
public Color GetColorAtPoint(RectangleF rectangle, PointF point)
|
|
{
|
|
return Color; // A solid color brush returns the same color no matter the point
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
} |