Class MidiUpdateQueue
Represents a generic UpdateQueue<TIdentifier, TData> using an object as the key and a color as the value.
Inheritance
MidiUpdateQueue
Inherited Members
Namespace: RGB.NET.Devices.Novation
Assembly: RGB.NET.Devices.Novation.dll
Syntax
public abstract class MidiUpdateQueue : UpdateQueue, IUpdateQueue, IUpdateQueue<object, Color>, IReferenceCounting, IDisposable
Constructors
| Edit this page View SourceMidiUpdateQueue(IDeviceUpdateTrigger, int)
Initializes a new instance of the MidiUpdateQueue class.
Declaration
protected MidiUpdateQueue(IDeviceUpdateTrigger updateTrigger, int deviceId)
Parameters
Type | Name | Description |
---|---|---|
IDeviceUpdateTrigger | updateTrigger | The update trigger used by this queue. |
int | deviceId | The id of the device this queue is performing updates for. |
Methods
| Edit this page View SourceCreateMessage(object, in Color)
Creates a update-message out of a specified data set.
Declaration
protected abstract ShortMessage? CreateMessage(object key, in Color color)
Parameters
Type | Name | Description |
---|---|---|
object | key | The key used to identify the LED to update. |
Color | color | The color to send. |
Returns
Type | Description |
---|---|
ShortMessage | The message created out of the data set. |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public override void Dispose()
Overrides
| Edit this page View SourceSendMessage(ShortMessage?)
Sends the specified message to the device this queue is performing updates for.
Declaration
protected virtual void SendMessage(ShortMessage? message)
Parameters
Type | Name | Description |
---|---|---|
ShortMessage | message | The message to send. |
Update(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 |