Struct ColorMixture
Defines a color pair (foreground and background colors).
Inherited Members
Namespace: Sharpie
Assembly: sharpie.dll
Syntax
[PublicAPI]
public struct ColorMixture
Properties
Default
The default color mixture of the terminal. Use it to reset to default colors.
Declaration
public static ColorMixture Default { get; }
Property Value
Type | Description |
---|---|
ColorMixture |
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |
Overrides
Operators
operator ==(ColorMixture, ColorMixture)
The equality operator.
Declaration
public static bool operator ==(ColorMixture left, ColorMixture right)
Parameters
Type | Name | Description |
---|---|---|
ColorMixture | left | LHS argument. |
ColorMixture | right | RHS argument. |
Returns
Type | Description |
---|---|
bool | The result of the check. |
operator !=(ColorMixture, ColorMixture)
The inequality operator.
Declaration
public static bool operator !=(ColorMixture left, ColorMixture right)
Parameters
Type | Name | Description |
---|---|---|
ColorMixture | left | LHS argument. |
ColorMixture | right | RHS argument. |
Returns
Type | Description |
---|---|
bool | The result of the check. |