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.Corsair
Assembly: RGB.NET.Devices.Corsair.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, CorsairDeviceUpdateQueue)
Initializes a new instance of the CorsairRGBDevice<TDeviceInfo> class.
Declaration
protected CorsairRGBDevice(TDeviceInfo info, CorsairDeviceUpdateQueue updateQueue)
Parameters
Type | Name | Description |
---|---|---|
TDeviceInfo | info | The generic information provided by CUE for the 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 SourceCreateMapping(IEnumerable<CorsairLedId>)
Declaration
protected abstract LedMapping<CorsairLedId> CreateMapping(IEnumerable<CorsairLedId> ids)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<CorsairLedId> | ids |
Returns
Type | Description |
---|---|
LedMapping<CorsairLedId> |
FixOffsetDeviceLayout()
Fixes the locations for devices split by offset by aligning them to the top left.
Declaration
protected virtual void FixOffsetDeviceLayout()
GetLedCustomData(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()