Class CorsairRGBDevice<TDeviceInfo>
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Implements
IRGBDevice<TDeviceInfo>
Inherited Members
Namespace: RGB.NET.Devices.CorsairLegacy
Assembly: RGB.NET.Devices.CorsairLegacy.dll
Syntax
public abstract class CorsairRGBDevice<TDeviceInfo> : AbstractRGBDevice<TDeviceInfo>, IRGBDevice<TDeviceInfo>, ICorsairRGBDevice, IRGBDevice, IEnumerable<Led>, IEnumerable, IPlaceable, IBindable, INotifyPropertyChanged, IDisposable where TDeviceInfo : CorsairRGBDeviceInfo
Type Parameters
Name | Description |
---|---|
TDeviceInfo |
Constructors
| Edit this page View SourceCorsairRGBDevice(TDeviceInfo, LedMapping<CorsairLedId>, CorsairDeviceUpdateQueue)
Initializes a new instance of the CorsairRGBDevice<TDeviceInfo> class.
Declaration
protected CorsairRGBDevice(TDeviceInfo info, LedMapping<CorsairLedId> mapping, CorsairDeviceUpdateQueue updateQueue)
Parameters
Type | Name | Description |
---|---|---|
TDeviceInfo | info | The generic information provided by CUE for the device. |
LedMapping<CorsairLedId> | mapping | The mapping LedId to CorsairLedId used to update the LEDs of this device. |
CorsairDeviceUpdateQueue | updateQueue | The queue used to update this device. |
Properties
| Edit this page View SourceMapping
Gets the mapping of LedId to CorsairLedId used to update the LEDs of this device.
Declaration
protected LedMapping<CorsairLedId> Mapping { get; }
Property Value
Type | Description |
---|---|
LedMapping<CorsairLedId> |
Methods
| Edit this page View SourceGetLedCustomData(LedId)
Gets the custom data associated with the specified LED.
Declaration
protected override object GetLedCustomData(LedId ledId)
Parameters
Type | Name | Description |
---|---|---|
LedId | ledId | The id of the led. |
Returns
Type | Description |
---|---|
object | The custom data for the specified LED. |
Overrides
| Edit this page View SourceInitializeLayout()
Initializes the LEDs of the device based on the data provided by the SDK.
Declaration
protected virtual void InitializeLayout()