C# 클래스 CUE.NET.Devices.Generic.AbstractCueDevice

Represents a generic CUE-device. (keyboard, mouse, headset, ...)
상속: ICueDevice
파일 보기 프로젝트 열기: DarthAffe/CUE.NET

공개 메소드들

메소드 설명
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