Class CustomMousepadEffect
Custom effect for mouse pad.
Implements
Namespace: Colore.Effects.Mousepad
Assembly: Colore.dll
Syntax
public sealed class CustomMousepadEffect : ValueType, IEquatable<CustomMousepadEffect>
  Constructors
CustomMousepadEffect(Color)
Initializes a new instance of the CustomMousepadEffect struct with a default color to apply to every LED.
Declaration
public CustomMousepadEffect(Color color)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Color | color | The color to set every LED to initially.  | 
      
CustomMousepadEffect(CustomMousepadEffect)
Initializes a new instance of the CustomMousepadEffect struct with the colors copied from another struct of the same type.
Declaration
public CustomMousepadEffect(CustomMousepadEffect other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CustomMousepadEffect | other | The struct to copy data from.  | 
      
CustomMousepadEffect(IList<Color>)
Initializes a new instance of the CustomMousepadEffect struct.
Declaration
public CustomMousepadEffect(IList<Color> colors)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IList<Color> | colors | The colors to use.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | Thrown if   | 
      
| ArgumentException | Thrown if the colors list supplied is of an incorrect size.  | 
      
Properties
Item[Int32]
Gets or sets LEDs in the custom array.
Declaration
public Color this[int led] { get; set; }
  Parameters
| Type | Name | Description | 
|---|---|---|
| Int32 | led | Index of the LED to access.  | 
      
Property Value
| Type | Description | 
|---|---|
| Color | The Color at the specified position.  | 
      
Methods
Clear()
Clears the colors in this CustomMousepadEffect struct (sets to Black).
Declaration
public void Clear()
  Clone()
Returns a copy of this struct.
Declaration
public CustomMousepadEffect Clone()
  Returns
| Type | Description | 
|---|---|
| CustomMousepadEffect | A copy of this struct.  | 
      
Create()
Create a new empty CustomMousepadEffect struct.
Declaration
public static CustomMousepadEffect Create()
  Returns
| Type | Description | 
|---|---|
| CustomMousepadEffect | An instance of CustomMousepadEffect filled with the color black.  | 
      
Equals(CustomMousepadEffect)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(CustomMousepadEffect other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CustomMousepadEffect | other | An object to compare with this object.  | 
      
Returns
| Type | Description | 
|---|---|
| Boolean | 
  | 
      
Equals(Object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Object | obj | Another object to compare to.  | 
      
Returns
| Type | Description | 
|---|---|
| Boolean | 
  | 
      
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
  Returns
| Type | Description | 
|---|---|
| Int32 | A 32-bit signed integer that is the hash code for this instance.  | 
      
Set(Color)
Sets all the LED indices to the specified Color.
Declaration
public void Set(Color color)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Color | color | The Color to set the LEDs to.  | 
      
Operators
Equality(CustomMousepadEffect, Object)
Compares an instance of CustomMousepadEffect with another object for equality.
Declaration
public static bool operator ==(CustomMousepadEffect left, object right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CustomMousepadEffect | left | The left operand, an instance of CustomMousepadEffect.  | 
      
| Object | right | The right operand, any type of object.  | 
      
Returns
| Type | Description | 
|---|---|
| Boolean | 
  | 
      
Inequality(CustomMousepadEffect, Object)
Compares an instance of CustomMousepadEffect with another object for inequality.
Declaration
public static bool operator !=(CustomMousepadEffect left, object right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CustomMousepadEffect | left | The left operand, an instance of CustomMousepadEffect.  | 
      
| Object | right | The right operand, any type of object.  | 
      
Returns
| Type | Description | 
|---|---|
| Boolean | 
  |