mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 10:08:31 +00:00
Fixed some code issues
This commit is contained in:
parent
67fcc8e52e
commit
b9e443b3b6
@ -10,7 +10,8 @@ using RGB.NET.Core;
|
|||||||
|
|
||||||
namespace RGB.NET.Brushes
|
namespace RGB.NET.Brushes
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractBrush" />
|
||||||
|
/// <inheritdoc cref="IGradientBrush" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a brush drawing a conical gradient.
|
/// Represents a brush drawing a conical gradient.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -11,7 +11,8 @@ using RGB.NET.Core;
|
|||||||
|
|
||||||
namespace RGB.NET.Brushes
|
namespace RGB.NET.Brushes
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractBrush" />
|
||||||
|
/// <inheritdoc cref="IGradientBrush" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a brush drawing a linear gradient.
|
/// Represents a brush drawing a linear gradient.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -9,7 +9,8 @@ using RGB.NET.Core;
|
|||||||
|
|
||||||
namespace RGB.NET.Brushes
|
namespace RGB.NET.Brushes
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractBrush" />
|
||||||
|
/// <inheritdoc cref="IGradientBrush" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a brush drawing a radial gradient around a center point.
|
/// Represents a brush drawing a radial gradient around a center point.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -8,7 +8,8 @@ using RGB.NET.Core;
|
|||||||
|
|
||||||
namespace RGB.NET.Brushes.Gradients
|
namespace RGB.NET.Brushes.Gradients
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractDecoratable{T}" />
|
||||||
|
/// <inheritdoc cref="IGradient" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a basic gradient.
|
/// Represents a basic gradient.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -5,7 +5,8 @@ using RGB.NET.Core;
|
|||||||
|
|
||||||
namespace RGB.NET.Brushes.Gradients
|
namespace RGB.NET.Brushes.Gradients
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractDecoratable{T}" />
|
||||||
|
/// <inheritdoc cref="IGradient" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a rainbow gradient which circles through all colors of the HUE-color-space.<br />
|
/// Represents a rainbow gradient which circles through all colors of the HUE-color-space.<br />
|
||||||
/// See <see href="http://upload.wikimedia.org/wikipedia/commons/a/ad/HueScale.svg" /> as reference.
|
/// See <see href="http://upload.wikimedia.org/wikipedia/commons/a/ad/HueScale.svg" /> as reference.
|
||||||
|
|||||||
@ -7,7 +7,8 @@ using System.Linq;
|
|||||||
|
|
||||||
namespace RGB.NET.Core
|
namespace RGB.NET.Core
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractDecoratable{T}" />
|
||||||
|
/// <inheritdoc cref="IBrush" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a basic brush.
|
/// Represents a basic brush.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
namespace RGB.NET.Core
|
namespace RGB.NET.Core
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractBindable" />
|
||||||
|
/// <inheritdoc cref="IDecorator" />
|
||||||
public abstract class AbstractDecorator : AbstractBindable, IDecorator
|
public abstract class AbstractDecorator : AbstractBindable, IDecorator
|
||||||
{
|
{
|
||||||
#region Properties & Fields
|
#region Properties & Fields
|
||||||
|
|||||||
@ -4,7 +4,8 @@ using System.Linq;
|
|||||||
|
|
||||||
namespace RGB.NET.Core
|
namespace RGB.NET.Core
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractBindable" />
|
||||||
|
/// <inheritdoc cref="IDecoratable{T}" />
|
||||||
public abstract class AbstractDecoratable<T> : AbstractBindable, IDecoratable<T>
|
public abstract class AbstractDecoratable<T> : AbstractBindable, IDecoratable<T>
|
||||||
where T : IDecorator
|
where T : IDecorator
|
||||||
{
|
{
|
||||||
|
|||||||
@ -8,7 +8,8 @@ using System.Linq;
|
|||||||
|
|
||||||
namespace RGB.NET.Core
|
namespace RGB.NET.Core
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractBindable" />
|
||||||
|
/// <inheritdoc cref="IRGBDevice{TDeviceInfo}" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a generic RGB-device
|
/// Represents a generic RGB-device
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -3,7 +3,9 @@ using System.Collections.Generic;
|
|||||||
|
|
||||||
namespace RGB.NET.Core
|
namespace RGB.NET.Core
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="IEnumerable{T}" />
|
||||||
|
/// <inheritdoc cref="IBindable" />
|
||||||
|
/// <inheritdoc cref="IDisposable" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a generic RGB-device.
|
/// Represents a generic RGB-device.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
namespace RGB.NET.Core
|
namespace RGB.NET.Core
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractDecoratable{T}" />
|
||||||
|
/// <inheritdoc cref="ILedGroup" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a generic <see cref="T:RGB.NET.Core.AbstractLedGroup" />.
|
/// Represents a generic <see cref="T:RGB.NET.Core.AbstractLedGroup" />.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -8,7 +8,8 @@ using System.Linq;
|
|||||||
|
|
||||||
namespace RGB.NET.Core
|
namespace RGB.NET.Core
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractBindable" />
|
||||||
|
/// <inheritdoc cref="IDisposable" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a RGB-surface containing multiple devices.
|
/// Represents a RGB-surface containing multiple devices.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -7,7 +7,8 @@ using RGB.NET.Core;
|
|||||||
|
|
||||||
namespace RGB.NET.Decorators.Brush
|
namespace RGB.NET.Decorators.Brush
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractUpdateAwareDecorator" />
|
||||||
|
/// <inheritdoc cref="IBrushDecorator" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a decorator which allows to flash a brush by modifying his opacity.
|
/// Represents a decorator which allows to flash a brush by modifying his opacity.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -131,7 +132,8 @@ namespace RGB.NET.Decorators.Brush
|
|||||||
// ReSharper restore InvertIf
|
// ReSharper restore InvertIf
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractUpdateAwareDecorator.OnAttached" />
|
||||||
|
/// <inheritdoc cref="IDecorator.OnAttached" />
|
||||||
public override void OnAttached(IDecoratable decoratable)
|
public override void OnAttached(IDecoratable decoratable)
|
||||||
{
|
{
|
||||||
base.OnAttached(decoratable);
|
base.OnAttached(decoratable);
|
||||||
|
|||||||
@ -4,7 +4,8 @@ using RGB.NET.Core;
|
|||||||
|
|
||||||
namespace RGB.NET.Decorators.Gradient
|
namespace RGB.NET.Decorators.Gradient
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractUpdateAwareDecorator" />
|
||||||
|
/// <inheritdoc cref="IGradientDecorator" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a decorator which allows to move an <see cref="T:RGB.NET.Brushes.Gradients.IGradient" /> by modifying his offset.
|
/// Represents a decorator which allows to move an <see cref="T:RGB.NET.Brushes.Gradients.IGradient" /> by modifying his offset.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -8,7 +8,8 @@ using RGB.NET.Core.Layout;
|
|||||||
|
|
||||||
namespace RGB.NET.Devices.Asus
|
namespace RGB.NET.Devices.Asus
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractRGBDevice{TDeviceInfo}" />
|
||||||
|
/// <inheritdoc cref="IAsusRGBDevice" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a generic Asus-device. (keyboard, mouse, headset, mousepad).
|
/// Represents a generic Asus-device. (keyboard, mouse, headset, mousepad).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -130,7 +131,8 @@ namespace RGB.NET.Devices.Asus
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected abstract void ApplyColorData();
|
protected abstract void ApplyColorData();
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="IDisposable.Dispose" />
|
||||||
|
/// <inheritdoc cref="AbstractRGBDevice{TDeviceInfo}.Dispose" />
|
||||||
public override void Dispose()
|
public override void Dispose()
|
||||||
{
|
{
|
||||||
if ((DeviceInfo is AsusRGBDeviceInfo deviceInfo) && (deviceInfo.Handle != IntPtr.Zero))
|
if ((DeviceInfo is AsusRGBDeviceInfo deviceInfo) && (deviceInfo.Handle != IntPtr.Zero))
|
||||||
|
|||||||
@ -27,7 +27,7 @@ namespace RGB.NET.Devices.Asus
|
|||||||
public RGBDeviceLighting Lighting => RGBDeviceLighting.Key;
|
public RGBDeviceLighting Lighting => RGBDeviceLighting.Key;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the index of the <see cref="AsusRGBDevice"/>.
|
/// Gets the index of the <see cref="AsusRGBDevice{TDeviceInfo}"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal IntPtr Handle { get; }
|
internal IntPtr Handle { get; }
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,8 @@ using RGB.NET.Devices.CoolerMaster.Native;
|
|||||||
|
|
||||||
namespace RGB.NET.Devices.CoolerMaster
|
namespace RGB.NET.Devices.CoolerMaster
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractRGBDevice{TDeviceInfo}" />
|
||||||
|
/// <inheritdoc cref="ICoolerMasterRGBDevice" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a generic CoolerMaster-device. (keyboard, mouse, headset, mousepad).
|
/// Represents a generic CoolerMaster-device. (keyboard, mouse, headset, mousepad).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -118,7 +119,8 @@ namespace RGB.NET.Devices.CoolerMaster
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="IDisposable.Dispose" />
|
||||||
|
/// <inheritdoc cref="AbstractRGBDevice{TDeviceInfo}.Dispose" />
|
||||||
public override void Dispose()
|
public override void Dispose()
|
||||||
{
|
{
|
||||||
_CoolerMasterSDK.SetControlDevice(DeviceInfo.DeviceIndex);
|
_CoolerMasterSDK.SetControlDevice(DeviceInfo.DeviceIndex);
|
||||||
|
|||||||
@ -28,7 +28,7 @@ namespace RGB.NET.Devices.CoolerMaster
|
|||||||
public RGBDeviceLighting Lighting => RGBDeviceLighting.Key;
|
public RGBDeviceLighting Lighting => RGBDeviceLighting.Key;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the <see cref="CoolerMasterDevicesIndexes"/> of the <see cref="CoolerMasterRGBDevice"/>.
|
/// Gets the <see cref="CoolerMasterDevicesIndexes"/> of the <see cref="CoolerMasterRGBDevice{TDeviceInfo}"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public CoolerMasterDevicesIndexes DeviceIndex { get; }
|
public CoolerMasterDevicesIndexes DeviceIndex { get; }
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,8 @@ using RGB.NET.Devices.Corsair.Native;
|
|||||||
|
|
||||||
namespace RGB.NET.Devices.Corsair
|
namespace RGB.NET.Devices.Corsair
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractRGBDevice{TDeviceInfo}" />
|
||||||
|
/// <inheritdoc cref="ICorsairRGBDevice" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a generic CUE-device. (keyboard, mouse, headset, mousepad).
|
/// Represents a generic CUE-device. (keyboard, mouse, headset, mousepad).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -19,7 +19,7 @@ namespace RGB.NET.Devices.Corsair
|
|||||||
public CorsairDeviceType CorsairDeviceType { get; }
|
public CorsairDeviceType CorsairDeviceType { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the index of the <see cref="CorsairRGBDevice"/>.
|
/// Gets the index of the <see cref="CorsairRGBDevice{TDeviceInfo}"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int CorsairDeviceIndex { get; }
|
public int CorsairDeviceIndex { get; }
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ namespace RGB.NET.Devices.Corsair
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Internal constructor of managed <see cref="CorsairRGBDeviceInfo"/>.
|
/// Internal constructor of managed <see cref="CorsairRGBDeviceInfo"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="deviceIndex">The index of the <see cref="CorsairRGBDevice"/>.</param>
|
/// <param name="deviceIndex">The index of the <see cref="CorsairRGBDevice{TDeviceInfo}"/>.</param>
|
||||||
/// <param name="deviceType">The type of the <see cref="IRGBDevice"/>.</param>
|
/// <param name="deviceType">The type of the <see cref="IRGBDevice"/>.</param>
|
||||||
/// <param name="nativeInfo">The native <see cref="_CorsairDeviceInfo" />-struct</param>
|
/// <param name="nativeInfo">The native <see cref="_CorsairDeviceInfo" />-struct</param>
|
||||||
internal CorsairRGBDeviceInfo(int deviceIndex, RGBDeviceType deviceType, _CorsairDeviceInfo nativeInfo)
|
internal CorsairRGBDeviceInfo(int deviceIndex, RGBDeviceType deviceType, _CorsairDeviceInfo nativeInfo)
|
||||||
|
|||||||
@ -6,7 +6,8 @@ using RGB.NET.Core.Layout;
|
|||||||
|
|
||||||
namespace RGB.NET.Devices.Logitech
|
namespace RGB.NET.Devices.Logitech
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractRGBDevice{TDeviceInfo}" />
|
||||||
|
/// <inheritdoc cref="ILogitechRGBDevice" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a generic Logitech-device. (keyboard, mouse, headset, mousepad).
|
/// Represents a generic Logitech-device. (keyboard, mouse, headset, mousepad).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -8,7 +8,8 @@ using RGB.NET.Devices.Msi.Native;
|
|||||||
|
|
||||||
namespace RGB.NET.Devices.Msi
|
namespace RGB.NET.Devices.Msi
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractRGBDevice{TDeviceInfo}" />
|
||||||
|
/// <inheritdoc cref="IMsiRGBDevice" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a generic Msi-device. (keyboard, mouse, headset, mousepad).
|
/// Represents a generic Msi-device. (keyboard, mouse, headset, mousepad).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -8,7 +8,8 @@ using Sanford.Multimedia.Midi;
|
|||||||
|
|
||||||
namespace RGB.NET.Devices.Novation
|
namespace RGB.NET.Devices.Novation
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="AbstractRGBDevice{TDeviceInfo}" />
|
||||||
|
/// <inheritdoc cref="INovationRGBDevice" />
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a generic Novation-device. (launchpad).
|
/// Represents a generic Novation-device. (launchpad).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -190,7 +191,8 @@ namespace RGB.NET.Devices.Novation
|
|||||||
_outputDevice.SendShort(shortMessage.Message);
|
_outputDevice.SendShort(shortMessage.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc cref="IDisposable.Dispose" />
|
||||||
|
/// <inheritdoc cref="AbstractRGBDevice{TDeviceInfo}.Dispose" />
|
||||||
public override void Dispose()
|
public override void Dispose()
|
||||||
{
|
{
|
||||||
Reset();
|
Reset();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user