|
Model Railroad System 2.2.2
|
An oval scale widget, much like a standard Tk scale widget. More...
Public Member Functions | |
| OvalScale (name, _canvas,...) | |
| Constructor initialize and build an Oval Scale. More... | |
| ~OvalScale () | |
| Destructor free up all resources. More... | |
| set (value) | |
| Method to set the value of the scale. More... | |
| get () | |
| Method to get the value of the scale. More... | |
Private Member Functions | |
| _ConfigureXY (option, value) | |
| Method to configure an x or y coordinate. More... | |
| _ConfigureWL (option, value) | |
| Method to configure a width or length option. More... | |
| _ConfigureText (option, value) | |
| Method to configure the text of the button. More... | |
| _MoveThumb (mx, my) | |
| Method bound to button1 motion move the thumb. More... | |
| _BaseRect (mx, my) | |
| Method bound to button 1 presses. More... | |
Private Attributes | |
| canvas | |
| Canvas the widget is on. More... | |
| _value | |
| Value of the scale. More... | |
An oval scale widget, much like a standard Tk scale widget.
| _canvas | The canvas to draw the widget on. |
| ... | Options:
|
| OvalWidgets::OvalScale::OvalScale | ( | name | , |
| _canvas | , | ||
| ... | |||
| ) |
Constructor initialize and build an Oval Scale.
| _canvas | The canvas to draw the scrollbar on. |
| ... | The option value list. |
| OvalWidgets::OvalScale::~OvalScale | ( | ) |
Destructor free up all resources.
|
private |
Method bound to button 1 presses.
| mx | Mouse X coordinate. |
| my | Mouse Y coordinate. |
|
private |
Method to configure the text of the button.
| option | The name of the option to configure. |
| value | The value to configure it to. |
|
private |
Method to configure a width or length option.
| option | The name of the option to configure. |
| value | The value of the option. |
|
private |
Method to configure an x or y coordinate.
| option | The name of the option to configure. |
| value | The value of the option. |
|
private |
Method bound to button1 motion move the thumb.
| mx | Mouse X coordinate. |
| my | Mouse Y coordinate. |
| OvalWidgets::OvalScale::get | ( | ) |
Method to get the value of the scale.
| OvalWidgets::OvalScale::set | ( | value | ) |
Method to set the value of the scale.
| value | The value to set the scale to. |
|
private |
Value of the scale.
|
private |
Canvas the widget is on.