WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

ThermometerWidget

Constructs a new thermometer widget.
Syntax
ThermometerWidget(display,x,y,w,h,padding,bkgndColour,mercuryColour,outlineColour,tickColour,minVal,maxVal,tickEvery)
 
Parameters
TypeNameDescription
'display'
The graphic display to show this widget on.
'x'
The number of pixels from the left side of the display to the left side of the widget.
'y'
The number of pixels from the top of the display to the top of the widget.
'w'
The width of the widget in pixels.
'h'
The height of the widget in pixels.
'padding'
The size, in pixels, of the border around the widget that will be shown in the background colour.
'bkgndColour'
The background colour of the widget rectangle
'mercuryColour'
The colour of the mercury in the thermometer.
'outlineColour'
The colour used to draw the outline of the thermometer.
'tickColour'
The colour of the tick marks around the edge of the thermometer.
'minVal'
The minimum value that can be shown by the widget.
'maxVal'
The maximum value that can be shown by the widget.
'tickEvery'
Controls how many tick marks are shown on the thermometer. The total number of tick marks will be ((maxValue - minValue)/tickEvery)+1.
A value of 0 will result in no tick marks.
Returns
None

 

 

Valid XHTML 1.0 Transitional