mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2025-12-13 09:08:34 +00:00
Added operators for lazy guyz
This commit is contained in:
parent
aeca5aa060
commit
b392ceb6e4
@ -11,7 +11,7 @@ namespace CUE.NET.Brushes
|
|||||||
public class SolidColorBrush : AbstractBrush
|
public class SolidColorBrush : AbstractBrush
|
||||||
{
|
{
|
||||||
#region Properties & Fields
|
#region Properties & Fields
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the color drawn by the brush.
|
/// Gets or sets the color drawn by the brush.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -46,5 +46,19 @@ namespace CUE.NET.Brushes
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Operators
|
||||||
|
|
||||||
|
public static explicit operator SolidColorBrush(Color color)
|
||||||
|
{
|
||||||
|
return new SolidColorBrush(color);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static implicit operator Color(SolidColorBrush brush)
|
||||||
|
{
|
||||||
|
return brush.Color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user