|
Model Railroad System 2.2.2
|
CTC Label object type. More...
Public Member Functions | |
| CTCLabel (name, _ctcpanel, _canvas,...) | |
| Construct a Label object. More... | |
| ~CTCLabel () | |
| Clean up all data objects and free up all resources. More... | |
| getv () | |
| Method to get our value (none). More... | |
| setv (state) | |
| Method to set out value (level position). More... | |
| geti (ind) | |
| Method to get the state of one of our indicators (none). More... | |
| seti (ind, value) | |
| Method to set an indicator's state (none). More... | |
| invoke () | |
| Method to invoke the label. More... | |
Private Member Functions | |
| _configureColor (option, value) | |
| Method to update the color of the label. More... | |
| _configureLabel (option, value) | |
| Method to update the label option. More... | |
Private Attributes | |
| ctcpanel | |
| The CTC Panel component (parent widget). More... | |
| canvas | |
| The canvas component (parent widget component). More... | |
CTC Label object type.
These are on the control panel and represent a label on the CTC Panel
| _ctcpanel | The CTCPanel megawidget. |
| _canvas | The control panel canvas to draw the label on. |
| ... | Options:
|
| CTCPanel::CTCLabel::CTCLabel | ( | name | , |
| _ctcpanel | , | ||
| _canvas | , | ||
| ... | |||
| ) |
| CTCPanel::CTCLabel::~CTCLabel | ( | ) |
Clean up all data objects and free up all resources.
|
private |
Method to update the color of the label.
|
private |
Method to update the label option.
| CTCPanel::CTCLabel::geti | ( | ind | ) |
Method to get the state of one of our indicators (none).
| CTCPanel::CTCLabel::getv | ( | ) |
Method to get our value (none).
| CTCPanel::CTCLabel::invoke | ( | ) |
Method to invoke the label.
| CTCPanel::CTCLabel::seti | ( | ind | , |
| value | |||
| ) |
Method to set an indicator's state (none).
| CTCPanel::CTCLabel::setv | ( | state | ) |
Method to set out value (level position).
|
private |
The canvas component (parent widget component).
|
private |
The CTC Panel component (parent widget).