Code cleanup

This commit is contained in:
DarthAffe committed 2016-09-10 18:30:22 +02:00
1 parent 8390c7da68
commit 2b314091eb
10 files changed
+25 -49

No files matched your search

+5
View File
@@ -43,6 +43,11 @@ namespace CUE.NET.Brushes
/// </summary>
public Dictionary<BrushRenderTarget, Color> RenderedTargets { get; } = new Dictionary<BrushRenderTarget, Color>();
/// <summary>
/// Gets the strongly-typed target used for the effect.
/// </summary>
protected override IBrush EffectTarget => this;
#endregion
#region Constructors
+2 -6
View File
@@ -3,6 +3,7 @@
// ReSharper disable UnusedMember.Global
using System;
using System.Collections.Generic;
using System.Drawing;
namespace CUE.NET.Brushes
@@ -40,11 +41,6 @@ namespace CUE.NET.Brushes
#region Properties & Fields
/// <summary>
/// Gets the strongly-typed target used for the effect.
/// </summary>
protected override IBrush EffectTarget => this;
/// <summary>
/// Gets or sets the image drawn by the brush. If null it will default to full transparent.
/// </summary>
@@ -63,7 +59,7 @@ namespace CUE.NET.Brushes
#endregion
#region Methods
/// <summary>
/// Gets the color at an specific point assuming the brush is drawn into the given rectangle.
/// </summary>
+1 -6
View File
@@ -17,12 +17,7 @@ namespace CUE.NET.Brushes
public class LinearGradientBrush : AbstractBrush
{
#region Properties & Fields
/// <summary>
/// Gets the strongly-typed target used for the effect.
/// </summary>
protected override IBrush EffectTarget => this;
/// <summary>
/// Gets or sets the start point (as percentage in the range [0..1]) of the gradient drawn by the brush. (default: 0f, 0.5f)
/// </summary>
+1 -6
View File
@@ -11,12 +11,7 @@ namespace CUE.NET.Brushes
public class ProfileBrush : AbstractBrush
{
#region Properties & Fields
/// <summary>
/// Gets the strongly-typed target used for the effect.
/// </summary>
protected override IBrush EffectTarget => this;
private Dictionary<CorsairLedId, Color> _colors;
#endregion
-5
View File
@@ -16,11 +16,6 @@ namespace CUE.NET.Brushes
{
#region Properties & Fields
/// <summary>
/// Gets the strongly-typed target used for the effect.
/// </summary>
protected override IBrush EffectTarget => this;
/// <summary>
/// Gets or sets the center point (as percentage in the range [0..1]) around which the brush should be drawn.
/// </summary>
+1 -6
View File
@@ -14,12 +14,7 @@ namespace CUE.NET.Brushes
public class RandomColorBrush : AbstractBrush
{
#region Properties & Fields
/// <summary>
/// Gets the strongly-typed target used for the effect.
/// </summary>
protected override IBrush EffectTarget => this;
private Random _random = new Random();
#endregion
+1 -6
View File
@@ -11,12 +11,7 @@ namespace CUE.NET.Brushes
public class SolidColorBrush : AbstractBrush
{
#region Properties & Fields
/// <summary>
/// Gets the strongly-typed target used for the effect.
/// </summary>
protected override IBrush EffectTarget => this;
/// <summary>
/// Gets or sets the color drawn by the brush.
/// </summary>