File NativeColorData.cs
File List > LemonUI > LemonUI > Menus > NativeColorData.cs
Go to the documentation of this file
using System;
using System.Drawing;
using LemonUI.Elements;
namespace LemonUI.Menus
{
public class NativeColorData
{
#region Fields
private string name = string.Empty;
internal readonly ScaledRectangle rectangle = new ScaledRectangle(PointF.Empty, SizeF.Empty);
#endregion
#region Properties
public string Name
{
get => name;
set => name = value ?? throw new ArgumentNullException(nameof(value));
}
public Color Color
{
get => rectangle.Color;
set => rectangle.Color = value;
}
#endregion
#region Constructors
public NativeColorData(string name, Color color)
{
this.name = name ?? throw new ArgumentNullException(nameof(name));
rectangle.Color = color;
}
#endregion
}
}