Show / Hide Table of Contents

Class RazerUpdateQueue

Represents a basic update-queue performing updates for razer devices.

Inheritance
object
AbstractReferenceCounting
UpdateQueue<object, Color>
UpdateQueue
RazerUpdateQueue
RazerChromaLinkUpdateQueue
RazerHeadsetUpdateQueue
RazerKeyboardUpdateQueue
RazerKeypadUpdateQueue
RazerMouseUpdateQueue
RazerMousepadUpdateQueue
Implements
IUpdateQueue
IUpdateQueue<object, Color>
IReferenceCounting
IDisposable
Inherited Members
UpdateQueue<object, Color>.RequiresFlush
UpdateQueue<object, Color>.OnUpdate(object, CustomUpdateData)
UpdateQueue<object, Color>.OnStartup(object, CustomUpdateData)
UpdateQueue<object, Color>.Update(in ReadOnlySpan<(object key, Color color)>)
UpdateQueue<object, Color>.SetData(ReadOnlySpan<(object, Color)>)
UpdateQueue<object, Color>.Reset()
UpdateQueue<object, Color>.Dispose()
AbstractReferenceCounting.ActiveReferenceCount
AbstractReferenceCounting.AddReferencingObject(object)
AbstractReferenceCounting.RemoveReferencingObject(object)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

RazerUpdateQueue(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 Source

CreateEffect(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.

| Edit this page View Source

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.

| Edit this page View Source

Reset()

Resets the current data set.

Declaration
public override void Reset()
Overrides
UpdateQueue<object, Color>.Reset()
| Edit this page View Source

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
Overrides
UpdateQueue<object, Color>.Update(in ReadOnlySpan<(object key, Color color)>)

Implements

IUpdateQueue
IUpdateQueue<TIdentifier, TData>
IReferenceCounting
IDisposable

Extension Methods

ReferenceCountingExtension.HasActiveReferences(IReferenceCounting)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX