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