Analog clock instrument.
More...
Analog clock instrument.
- Parameters
-
_canvas | The canvas to draw the analog clock 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).
- -label The label of the instrument (default Clock).
- -labelcolor The color of the label (default black).
- -labelfont The font of the label (default {Times 14 bold}).
- -background The background color of the instrument (default blue).
- -outline The outline color of the instrument (default black).
- -scaleback The background color of the scale (default white).
- -scaleticks The color of the scale ticks (default black).
- -fontfamily The font family used on the instrument (default Courier).
- -hubcolor The color of the hub (default black).
- -minutehandcolor The color of the minute hand (default black).
- -hourhandcolor The color of the hour hand (default black).
|
- Author
- Robert Heller <heller@deepsoft.com>
◆ AnalogClock()
Instruments::AnalogClock::AnalogClock |
( |
name |
, |
|
|
_canvas |
, |
|
|
|
... |
|
) |
| |
Constructor – initialize an analog clock.
- Parameters
-
◆ ~AnalogClock()
Instruments::AnalogClock::~AnalogClock |
( |
| ) |
|
Destructor – free up all resources.
◆ settime()
Instruments::AnalogClock::settime |
( |
hour |
, |
|
|
minute |
|
|
) |
| |
Method to set the time.
- Parameters
-
hour | The hour, an integer between 1 and 12. |
minute | The minute, an integer between 0 and 59. |