Model Railroad System 2.2.2
Classes | Functions
Instruments Namespace Reference

Namespace used for instruments code. More...

Classes

class  AnalogClock
 Analog clock instrument. More...
 
class  CabSignalLamp
 Cab signal lamp type. More...
 
class  DialInstrument
 Generic dial instrument. More...
 
class  DigitalClock
 Digital clock instrument. More...
 
class  DigitalInstrument
 Digital instrument. More...
 

Functions

 CommonOptions (defaultLabel)
 Snit macro to define common options used by all instruments. More...
 

Detailed Description

Namespace used for instruments code.

Author
Robert Heller <heller@deepsoft.com>

Package provided

Instruments 2.0

Function Documentation

◆ CommonOptions()

Instruments::CommonOptions ( defaultLabel  )

Snit macro to define common options used by all instruments.

Parameters
defaultLabelDefault value for the label.
...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.
  • -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).