mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-11 04:56:44 +00:00
implemented SolidColorBrush
This commit is contained in:
1 parent
7e307fca9b
commit
6241d262ec
1 file changed
+38
@@ -0,0 +1,38 @@
|
||||
using System.Drawing;
|
||||
|
||||
namespace CUE.NET.Devices.Keyboard.ColorBrushes
|
||||
{
|
||||
public class SolidColorBrush : IBrush
|
||||
{
|
||||
Color color;
|
||||
|
||||
#region Constructors
|
||||
|
||||
public SolidColorBrush(Color color)
|
||||
{
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
|
||||
public Color getColorAtPoint(Point point)
|
||||
{
|
||||
/* a solid color brush returns the same color no matter the point */
|
||||
return this.color;
|
||||
}
|
||||
|
||||
public Color getColor()
|
||||
{
|
||||
return this.color;
|
||||
}
|
||||
|
||||
public void setColor(Color color)
|
||||
{
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user