WIP
DirectOutput framework for virtual pinball cabinets WIP
|
Go to: Overview |
This class stores information on colors used for toys (e.g. RGBLed). More...
Public Member Functions | |
RGBAColorNamed () | |
Initializes a new instance of the RGBAColorNamed class. More... | |
RGBAColorNamed (string Name, int BrightnessRed, int BrightnessGreen, int BrightnessBlue) | |
Initializes a new instance of the RGBAColorNamed class. If all color components are set to 0, the alpha value will be set to 0, otherwise the alpha value will be set to 255. More... | |
RGBAColorNamed (string Name, int BrightnessRed, int BrightnessGreen, int BrightnessBlue, int Alpha) | |
Initializes a new instance of the RGBAColorNamed class. More... | |
RGBAColorNamed (string Name, string Color) | |
Initializes a new instance of the RGBAColorNamed class. The parameter string Color is first parsed for hexadecimal color codes and afterwards checked for comma separated color values. The following values are accepted: More... | |
RGBAColorNamed (string Name, RGBColor RGBColor) | |
Initializes a new instance of the RGBAColorNamed class. The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255. More... | |
Public Member Functions inherited from DirectOutput.General.Color.RGBAColor | |
RGBAColor | Clone () |
Clones this instance. More... | |
RGBAColor | GetRGBAColor () |
Gets a new RGBAColor instance with the same color values. More... | |
bool | SetColor (int Red, int Green, int Blue, int Alpha) |
Sets the RGBA components of the Color. More... | |
bool | SetColor (int Red, int Green, int Blue) |
Sets the RGB components of the Color. The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255. More... | |
bool | SetColor (RGBColor Color) |
Sets the RGB components of the RGBAColor. The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255. More... | |
bool | SetColor (string Color) |
Sets the RGBA components of the Color. The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values. The following values are accepted: More... | |
RGBAColor () | |
Initializes a new instance of the RGBAColor class. More... | |
RGBAColor (int BrightnessRed, int BrightnessGreen, int BrightnessBlue) | |
Initializes a new instance of the RGBAColor class. If all color components are set to 0, the alpha value will be set to 0, otherwise the alpha value will be set to 255. More... | |
RGBAColor (int BrightnessRed, int BrightnessGreen, int BrightnessBlue, int Alpha) | |
Initializes a new instance of the RGBAColor class. More... | |
RGBAColor (string Color) | |
Initializes a new instance of the RGBAColor class. The parameter string Color is first parsed for hexadecimal color codes and afterwards checked for comma separated color values. The following values are accepted: More... | |
RGBAColor (RGBColor RGBColor) | |
Initializes a new instance of the RGBAColor class. The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255. More... | |
new string | ToString () |
Properties | |
string | Name [get, set] |
Name of the Named item. Triggers BeforeNameChange before a new Name is set. Triggers AfterNameChanged after a new name has been set. More... | |
Properties inherited from DirectOutput.General.Color.RGBAColor | |
int | Red [get, set] |
Brightness for Red. More... | |
int | Green [get, set] |
Brightness for Green. More... | |
int | Blue [get, set] |
Brightness for Blue. More... | |
int | Alpha [get, set] |
Alpha value for the color. More... | |
string | HexColor [get, set] |
Returns the hexadecimal code for the color. More... | |
Properties inherited from DirectOutput.General.Generic.INamedItem | |
string | Name [get, set] |
Gets or sets the name of the item. Must fire the BeforeNameChange and AfterNameChange events when the value of the property is changed. More... | |
Events | |
EventHandler< NameChangeEventArgs > | AfterNameChanged |
Event is fired after the value of the property Name has changed. More... | |
EventHandler< NameChangeEventArgs > | BeforeNameChanged |
Event is fired before the value of the property Name is changed. More... | |
Events inherited from DirectOutput.General.Generic.INamedItem | |
EventHandler< NameChangeEventArgs > | BeforeNameChanged |
Occurs before the name of the item changes. More... | |
EventHandler< NameChangeEventArgs > | AfterNameChanged |
Occurs when after the name of the item has changed. More... | |
This class stores information on colors used for toys (e.g. RGBLed).
Definition at line 14 of file RGBAColorNamed.cs.
DirectOutput.General.Color.RGBAColorNamed.RGBAColorNamed | ( | ) |
Initializes a new instance of the RGBAColorNamed class.
Definition at line 62 of file RGBAColorNamed.cs.
DirectOutput.General.Color.RGBAColorNamed.RGBAColorNamed | ( | string | Name, |
int | BrightnessRed, | ||
int | BrightnessGreen, | ||
int | BrightnessBlue | ||
) |
Initializes a new instance of the RGBAColorNamed class. If all color components are set to 0, the alpha value will be set to 0, otherwise the alpha value will be set to 255.
Name | The name of the color. |
BrightnessRed | The brightness for red. |
BrightnessGreen | The brightness for green. |
BrightnessBlue | The brightness for blue. |
Definition at line 71 of file RGBAColorNamed.cs.
DirectOutput.General.Color.RGBAColorNamed.RGBAColorNamed | ( | string | Name, |
int | BrightnessRed, | ||
int | BrightnessGreen, | ||
int | BrightnessBlue, | ||
int | Alpha | ||
) |
Initializes a new instance of the RGBAColorNamed class.
Name | The name of the color. |
BrightnessRed | The brightness for red. |
BrightnessGreen | The brightness for green. |
BrightnessBlue | The brightness for blue. |
Alpha | The alpha value for the color. |
Definition at line 85 of file RGBAColorNamed.cs.
DirectOutput.General.Color.RGBAColorNamed.RGBAColorNamed | ( | string | Name, |
string | Color | ||
) |
Initializes a new instance of the RGBAColorNamed class. The parameter string Color is first parsed for hexadecimal color codes and afterwards checked for comma separated color values.
The following values are accepted:
Name | The name of the color. |
Color | The color string. |
Definition at line 105 of file RGBAColorNamed.cs.
DirectOutput.General.Color.RGBAColorNamed.RGBAColorNamed | ( | string | Name, |
RGBColor | RGBColor | ||
) |
Initializes a new instance of the RGBAColorNamed class. The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255.
Definition at line 117 of file RGBAColorNamed.cs.
|
getset |
Name of the Named item.
Triggers BeforeNameChange before a new Name is set.
Triggers AfterNameChanged after a new name has been set.
Definition at line 26 of file RGBAColorNamed.cs.
EventHandler<NameChangeEventArgs> DirectOutput.General.Color.RGBAColorNamed.AfterNameChanged |
Event is fired after the value of the property Name has changed.
Definition at line 50 of file RGBAColorNamed.cs.
EventHandler<NameChangeEventArgs> DirectOutput.General.Color.RGBAColorNamed.BeforeNameChanged |
Event is fired before the value of the property Name is changed.
Definition at line 55 of file RGBAColorNamed.cs.