C# Класс CUE.NET.Devices.Generic.AbstractCueDevice

Represents a generic CUE-device. (keyboard, mouse, headset, ...)
Наследование: ICueDevice
Показать файл Открыть проект

Открытые методы

Метод Описание
AddEffect ( IEffect effect ) : void

NOT IMPLEMENTED: Effects can't be applied directly to the device. Add it to the Brush or create a ledgroup instead.

AttachLedGroup ( ILedGroup ledGroup ) : bool

Attaches the given ledgroup.

DetachLedGroup ( ILedGroup ledGroup ) : bool

Detaches the given ledgroup.

GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates over all LEDs of the device.

GetLeds ( ) : IEnumerable

Gets a list containing all LEDs of this group.

Initialize ( ) : void

Initializes the device.

RemoveEffect ( IEffect effect ) : void

NOT IMPLEMENTED: Effects can't be applied directly to the device. Add it to the Brush or create a ledgroup instead.

Update ( bool flushLeds = false ) : void

Performs an update for all dirty keys, or all keys if flushLeds is set to true.

UpdateEffects ( ) : void

NOT IMPLEMENTED: Effects can't be applied directly to the device. Add it to the Brush or create a ledgroup instead.

this ( CorsairLedId ledId ) : CorsairLed

Gets the CorsairLed with the specified ID.

this ( PointF location ) : CorsairLed

Gets the CorsairLed at the given physical location.

this ( RectangleF referenceRect, float minOverlayPercentage = 0.5f ) : IEnumerable

Gets a list of CorsairLed inside the given rectangle.

Защищенные методы

Метод Описание
AbstractCueDevice ( IDeviceInfo info ) : System

Initializes a new instance of the AbstractCueDevice class.

DeviceUpdate ( ) : void

Performs device specific updates.

InitializeLed ( CorsairLedId ledId, RectangleF ledRectangle ) : CorsairLed

Initializes the LED-Object with the specified id.

OnException ( Exception ex ) : void

Handles the needed event-calls for an exception.

OnLedsUpdated ( IEnumerable updatedLeds ) : void

Handles the needed event-calls after the leds are updated.

OnLedsUpdating ( ICollection updatingLeds ) : void

Handles the needed event-calls before the leds are updated.

OnUpdated ( ) : void

Handles the needed event-calls after an update.

OnUpdating ( ) : void

Handles the needed event-calls before updating.

Render ( ILedGroup ledGroup ) : void

Renders a ledgroup.

Приватные методы

Метод Описание
IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates over all LEDs of the device.

ResetLeds ( ) : void

Resets all loaded LEDs back to default.

UpdateLeds ( ICollection updateRequests ) : void

Описание методов

AbstractCueDevice() защищенный Метод

Initializes a new instance of the AbstractCueDevice class.
protected AbstractCueDevice ( IDeviceInfo info ) : System
info IDeviceInfo The generic information provided by CUE for the device.
Результат System

AddEffect() публичный Метод

NOT IMPLEMENTED: Effects can't be applied directly to the device. Add it to the Brush or create a ledgroup instead.
public AddEffect ( IEffect effect ) : void
effect IEffect The effect to add.
Результат void

AttachLedGroup() публичный Метод

Attaches the given ledgroup.
public AttachLedGroup ( ILedGroup ledGroup ) : bool
ledGroup ILedGroup The ledgroup to attach.
Результат bool

DetachLedGroup() публичный Метод

Detaches the given ledgroup.
public DetachLedGroup ( ILedGroup ledGroup ) : bool
ledGroup ILedGroup The ledgroup to detached.
Результат bool

DeviceUpdate() защищенный Метод

Performs device specific updates.
protected DeviceUpdate ( ) : void
Результат void

GetEnumerator() публичный Метод

Returns an enumerator that iterates over all LEDs of the device.
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

GetLeds() публичный Метод

Gets a list containing all LEDs of this group.
public GetLeds ( ) : IEnumerable
Результат IEnumerable

Initialize() публичный Метод

Initializes the device.
public Initialize ( ) : void
Результат void

InitializeLed() защищенный Метод

Initializes the LED-Object with the specified id.
protected InitializeLed ( CorsairLedId ledId, RectangleF ledRectangle ) : CorsairLed
ledId CorsairLedId The LED-Id to initialize.
ledRectangle System.Drawing.RectangleF The rectangle representing the position of the LED to initialize.
Результат CorsairLed

OnException() защищенный Метод

Handles the needed event-calls for an exception.
protected OnException ( Exception ex ) : void
ex System.Exception The exception previously thrown.
Результат void

OnLedsUpdated() защищенный Метод

Handles the needed event-calls after the leds are updated.
protected OnLedsUpdated ( IEnumerable updatedLeds ) : void
updatedLeds IEnumerable
Результат void

OnLedsUpdating() защищенный Метод

Handles the needed event-calls before the leds are updated.
protected OnLedsUpdating ( ICollection updatingLeds ) : void
updatingLeds ICollection
Результат void

OnUpdated() защищенный Метод

Handles the needed event-calls after an update.
protected OnUpdated ( ) : void
Результат void

OnUpdating() защищенный Метод

Handles the needed event-calls before updating.
protected OnUpdating ( ) : void
Результат void

RemoveEffect() публичный Метод

NOT IMPLEMENTED: Effects can't be applied directly to the device. Add it to the Brush or create a ledgroup instead.
public RemoveEffect ( IEffect effect ) : void
effect IEffect The effect to remove.
Результат void

Render() защищенный Метод

Renders a ledgroup.
protected Render ( ILedGroup ledGroup ) : void
ledGroup ILedGroup The led group to render.
Результат void

Update() публичный Метод

Performs an update for all dirty keys, or all keys if flushLeds is set to true.
public Update ( bool flushLeds = false ) : void
flushLeds bool Specifies whether all keys (including clean ones) should be updated.
Результат void

UpdateEffects() публичный Метод

NOT IMPLEMENTED: Effects can't be applied directly to the device. Add it to the Brush or create a ledgroup instead.
public UpdateEffects ( ) : void
Результат void

this() публичный Метод

Gets the CorsairLed with the specified ID.
public this ( CorsairLedId ledId ) : CorsairLed
ledId CorsairLedId The ID of the LED to get.
Результат CorsairLed

this() публичный Метод

Gets the CorsairLed at the given physical location.
public this ( PointF location ) : CorsairLed
location System.Drawing.PointF The point to get the location from.
Результат CorsairLed

this() публичный Метод

Gets a list of CorsairLed inside the given rectangle.
public this ( RectangleF referenceRect, float minOverlayPercentage = 0.5f ) : IEnumerable
referenceRect System.Drawing.RectangleF The rectangle to check.
minOverlayPercentage float The minimal percentage overlay a location must have with the to be taken into the list.
Результат IEnumerable