Class RazerUpdateQueue
Represents a basic update-queue performing updates for razer devices.
Inheritance
RazerUpdateQueue
Inherited Members
Namespace: RGB.NET.Devices.Razer
Assembly: RGB.NET.Devices.Razer.dll
Syntax
public abstract class RazerUpdateQueue : UpdateQueue, IUpdateQueue, IUpdateQueue<object, Color>, IReferenceCounting, IDisposable
Constructors
| Edit this page View SourceRazerUpdateQueue(IDeviceUpdateTrigger)
Initializes a new instance of the RazerUpdateQueue class.
Declaration
protected RazerUpdateQueue(IDeviceUpdateTrigger updateTrigger)
Parameters
Type | Name | Description |
---|---|---|
IDeviceUpdateTrigger | updateTrigger | The update trigger used to update this queue. |
Methods
| Edit this page View SourceCreateEffect(nint, ref Guid)
Creates the effect used to update this device.
Declaration
protected abstract void CreateEffect(nint effectParams, ref Guid effectId)
Parameters
Type | Name | Description |
---|---|---|
nint | effectParams | The parameters of the effect. |
Guid | effectId | The id this effect is created with. |
CreateEffectParams(in ReadOnlySpan<(object key, Color color)>)
Creates the device-specific effect parameters for the led-update.
Declaration
protected abstract nint CreateEffectParams(in ReadOnlySpan<(object key, Color color)> dataSet)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<(object key, Color color)> | dataSet | The data to be updated. |
Returns
Type | Description |
---|---|
nint | An nint pointing to the effect parameter struct. |
Reset()
Resets the current data set.
Declaration
public override void Reset()
Overrides
| 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 |