Interface IRGBDevice
Exposes the enumerator, which supports a simple iteration over a collection of a specified type.
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public interface IRGBDevice : IEnumerable<Led>, IEnumerable, IPlaceable, IBindable, INotifyPropertyChanged, IDisposable
Properties
| Edit this page View SourceColorCorrections
Gets a list of color corrections applied to this device.
Declaration
IList<IColorCorrection> ColorCorrections { get; }
Property Value
Type | Description |
---|---|
IList<IColorCorrection> |
DeviceInfo
Gets generic information about the IRGBDevice.
Declaration
IRGBDeviceInfo DeviceInfo { get; }
Property Value
Type | Description |
---|---|
IRGBDeviceInfo |
this[LedId]
Declaration
Led? this[LedId ledId] { get; }
Parameters
Type | Name | Description |
---|---|---|
LedId | ledId |
Property Value
Type | Description |
---|---|
Led | The Led with the specified LedId or null if no Led is found. |
this[Point]
Gets the Led at the specified physical location.
Declaration
Led? this[Point location] { get; }
Parameters
Type | Name | Description |
---|---|---|
Point | location | The Point to get the location from. |
Property Value
Type | Description |
---|---|
Led | The Led at the specified Point or null if no location is found. |
this[Rectangle, double]
Declaration
IEnumerable<Led> this[Rectangle referenceRect, double minOverlayPercentage = 0.5] { get; }
Parameters
Type | Name | Description |
---|---|---|
Rectangle | referenceRect | The Rectangle to check. |
double | minOverlayPercentage | The minimal percentage overlay a Led must have with the Rectangle to be taken into the list. |
Property Value
Type | Description |
---|---|
IEnumerable<Led> | A enumerable of leds inside the specified rectangle. |
Surface
Gets the surface this device is attached to.
Declaration
RGBSurface? Surface { get; }
Property Value
Type | Description |
---|---|
RGBSurface |
Methods
| Edit this page View SourceAddLed(LedId, in Point, in Size, object?)
Adds a led to the device.
Declaration
Led? AddLed(LedId ledId, in Point location, in Size size, object? customData = null)
Parameters
Type | Name | Description |
---|---|---|
LedId | ledId | The id of the led. |
Point | location | The location of the led on the device. |
Size | size | The size of the led. |
object | customData | Custom data saved on the led. |
Returns
Type | Description |
---|---|
Led | The newly added led or |
RemoveLed(LedId)
Removes the led with the specified id from the device.
Declaration
Led? RemoveLed(LedId ledId)
Parameters
Type | Name | Description |
---|---|---|
LedId | ledId | The id of the led to remove. |
Returns
Type | Description |
---|---|
Led | The removed led or |
Update(bool)
Declaration
void Update(bool flushLeds = false)
Parameters
Type | Name | Description |
---|---|---|
bool | flushLeds | Specifies whether all Led (including clean ones) should be updated. |