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

DialWidget

Constructs a new dial widget.
Syntax
DialWidget(display,x,y,w,h,padding,bkgndColour,needleColour,dialColour,tickColour,minAngle,maxAngle,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
'needleColour'
The colour of the needle.
'dialColour'
The colour of the face of the dial.
'tickColour'
The colour of the tick marks around the edge of the dial. If this is the same as the dial colour then the tick marks will not be visible.
'minAngle'
The angle, in degrees, of the needle that represents the minimum value.
'maxAngle'
The angle, in degrees, of the needle that represents the maximum value.
'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 dial. 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