DirectOutput
DirectOutput framework R2 for virtual pinball cabinets.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros Pages
DirectOutput.General.Color.RGBColorNamed Class Reference

Named RGBColor object More...

Inheritance diagram for DirectOutput.General.Color.RGBColorNamed:
Collaboration diagram for DirectOutput.General.Color.RGBColorNamed:

Public Member Functions

 RGBColorNamed ()
 Initializes a new instance of the RGBColorNamed class. More...
 
 RGBColorNamed (string Name, int BrightnessRed, int BrightnessGreen, int BrightnessBlue)
 Initializes a new instance of the RGBColorNamed class. More...
 
 RGBColorNamed (string Name, string Color)
 Initializes a new instance of the RGBColorNamed class. The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values. More...
 
- Public Member Functions inherited from DirectOutput.General.Color.RGBColor
bool SetColor (int Red, int Green, int Blue)
 Sets the RGB components of the Color. More...
 
bool SetColor (string Color)
 Sets the RGB components of the Color.
The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values. More...
 
 RGBColor ()
 Initializes a new instance of the RGBColor class. More...
 
 RGBColor (int BrightnessRed, int BrightnessGreen, int BrightnessBlue)
 Initializes a new instance of the RGBColor class. More...
 
 RGBColor (string Color)
 Initializes a new instance of the RGBColor class. The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values. More...
 

Properties

string Name [get, set]
 Name of the color.
More...
 
- Properties inherited from DirectOutput.General.Color.RGBColor
int Red [get, set]
 Brightness for Red. More...
 
int Green [get, set]
 Brightness for Green. More...
 
int Blue [get, set]
 Brightness for Blue. 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< NameChangeEventArgsAfterNameChanged
 Event is fired after the value of the property Name has changed. More...
 
EventHandler< NameChangeEventArgsBeforeNameChange
 Event is fired before the value of the property Name is changed. More...
 
- Events inherited from DirectOutput.General.Generic.INamedItem
EventHandler< NameChangeEventArgsBeforeNameChange
 Occurs before the name of the item changes. More...
 
EventHandler< NameChangeEventArgsAfterNameChanged
 Occurs when after the name of the item has changed. More...
 

Detailed Description

Named RGBColor object

Constructor & Destructor Documentation

DirectOutput.General.Color.RGBColorNamed.RGBColorNamed ( )

Initializes a new instance of the RGBColorNamed class.

DirectOutput.General.Color.RGBColorNamed.RGBColorNamed ( string  Name,
int  BrightnessRed,
int  BrightnessGreen,
int  BrightnessBlue 
)

Initializes a new instance of the RGBColorNamed class.

Parameters
NameThe name of the color.
BrightnessRedThe brightness for red.
BrightnessGreenThe brightness for green.
BrightnessBlueThe brightness for blue.
DirectOutput.General.Color.RGBColorNamed.RGBColorNamed ( string  Name,
string  Color 
)

Initializes a new instance of the RGBColorNamed class. The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values.

Parameters
NameThe name of the color.
ColorThe color string.

Property Documentation

string DirectOutput.General.Color.RGBColorNamed.Name
getset

Name of the color.

The name of the color.

Event Documentation

EventHandler<NameChangeEventArgs> DirectOutput.General.Color.RGBColorNamed.AfterNameChanged

Event is fired after the value of the property Name has changed.

EventHandler<NameChangeEventArgs> DirectOutput.General.Color.RGBColorNamed.BeforeNameChange

Event is fired before the value of the property Name is changed.


The documentation for this class was generated from the following file: