Cab signal lamp type.
More...
Cab signal lamp type.
- Parameters
-
_canvas | The canvas to draw the cab signal lamp on. |
... | Options:
- -x The X coordinate of the instrument (default 0).
- -y The Y coordinate of the instrument (default 0).
- -size The size of the instrument (default 100).
- -color The color of the lamp (default black).
- -outline The outline color of the instrument (default black).
|
- Author
- Robert Heller <heller@deepsoft.com>
◆ CabSignalLamp()
Instruments::CabSignalLamp::CabSignalLamp |
( |
name |
, |
|
|
_canvas |
, |
|
|
|
... |
|
) |
| |
Constructor – initialize a Cab Signal Lamp.
- Parameters
-
◆ ~CabSignalLamp()
Instruments::CabSignalLamp::~CabSignalLamp |
( |
| ) |
|
Destructor – free up all resources.
◆ _ConfigureFillColor()
Instruments::CabSignalLamp::_ConfigureFillColor |
( |
option |
, |
|
|
value |
|
|
) |
| |
|
private |
Method to configure a fill color.
- Parameters
-
option | The name of the option to configure. |
value | The new value. |
◆ _ConfigureOutlineColor()
Instruments::CabSignalLamp::_ConfigureOutlineColor |
( |
option |
, |
|
|
value |
|
|
) |
| |
|
private |
Method to configure an outline color.
- Parameters
-
option | The name of the option to configure. |
value | The new value. |
◆ _ConfigureSize()
Instruments::CabSignalLamp::_ConfigureSize |
( |
option |
, |
|
|
value |
|
|
) |
| |
|
private |
Method to configure size.
- Parameters
-
option | The name of the option to configure. |
value | The new value. |
◆ _ConfigureXY()
Instruments::CabSignalLamp::_ConfigureXY |
( |
option |
, |
|
|
value |
|
|
) |
| |
|
private |
Method to configure X or Y.
- Parameters
-
option | The name of the option to configure. |
value | The new value. |
◆ canvas
Instruments::CabSignalLamp::canvas |
|
private |
◆ sx
Instruments::CabSignalLamp::sx |
|
private |
◆ sy
Instruments::CabSignalLamp::sy |
|
private |