Class OpenRGBUpdateQueue
Represents a generic UpdateQueue<TIdentifier, TData> using an object as the key and a color as the value.
Inheritance
OpenRGBUpdateQueue
Inherited Members
Namespace: RGB.NET.Devices.OpenRGB
Assembly: RGB.NET.Devices.OpenRGB.dll
Syntax
public sealed class OpenRGBUpdateQueue : UpdateQueue, IUpdateQueue, IUpdateQueue<object, Color>, IReferenceCounting, IDisposable
Constructors
| Edit this page View SourceOpenRGBUpdateQueue(IDeviceUpdateTrigger, int, OpenRgbClient, Device)
Initializes a new instance of the OpenRGBUpdateQueue class.
Declaration
public OpenRGBUpdateQueue(IDeviceUpdateTrigger updateTrigger, int deviceId, OpenRgbClient client, Device device)
Parameters
Type | Name | Description |
---|---|---|
IDeviceUpdateTrigger | updateTrigger | The update trigger used by this queue. |
int | deviceId | The index used to identify the device. |
OpenRgbClient | client | The OpenRGB client used to send updates to the OpenRGB server. |
Device | device | The OpenRGB Device containing device-specific information. |
Methods
| Edit this page View SourceUpdate(in ReadOnlySpan<(object key, Color color)>)
Performs the update this queue is responsible for.
Declaration
protected override bool Update(in ReadOnlySpan<(object key, Color color)> dataSet)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<(object key, Color color)> | dataSet | The set of data that needs to be updated. |
Returns
Type | Description |
---|---|
bool |