Skip to content

Latest commit

 

History

History
 
 

06-cairo-gauge-round-annotated

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Cairo Gauge Round Annotated

Requires Cairo to be installed

Shows a gauge like a car speedometer, which gauges some metric.

Any supported metric or unit can be used

<component type="cairo-gauge-round-annotated" metric="speed" units="mph" />

06-cairo-gauge-round-annotated-0.png

Size

Use size to change the size.

Max and Min Values

Use max and min to set maximum and minimum values.

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  />

06-cairo-gauge-round-annotated-1.png

Rotation and Length

The gauge by default starts at the bottom left, this can be changed using start, which is the number of degrees to rotate clockwise. The default start is 143.

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  start="270"/>

06-cairo-gauge-round-annotated-2.png

The gauge is normally 254 degrees "long". This can be changed using length

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  length="90" />

06-cairo-gauge-round-annotated-3.png

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  length="180" />

06-cairo-gauge-round-annotated-4.png

Number of Ticks / Sectors

There are 5 sectors by default. This can be changed with sectors

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  length="90" sectors="20" />

06-cairo-gauge-round-annotated-5.png

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  length="180" sectors="6" />

06-cairo-gauge-round-annotated-6.png

Colours

Various colours can be set, either as RGB, or RGBA values.

The following are available to change: background-rgb, major-ann-rgb, minor-ann-rgb, needle-rgb, major-tick-rgb, minor-tick-rgb

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  background-rgb="255,0,0"/>

06-cairo-gauge-round-annotated-7.png

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  major-ann-rgb="255,0,0"/>

06-cairo-gauge-round-annotated-8.png

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  minor-ann-rgb="255,0,0"/>

06-cairo-gauge-round-annotated-9.png

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  major-tick-rgb="255,0,0"/>

06-cairo-gauge-round-annotated-10.png

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  minor-tick-rgb="255,0,0"/>

06-cairo-gauge-round-annotated-11.png

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  needle-rgb="255,0,255"/>

06-cairo-gauge-round-annotated-12.png

Transparency

Any colour that is completely transparent will disappear... this can be used to change the appearance of the widget quite a bit.

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  background-rgb="255,0,0,0"/>

06-cairo-gauge-round-annotated-13.png

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  major-ann-rgb="255,0,0,0"/>

06-cairo-gauge-round-annotated-14.png

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  minor-ann-rgb="255,0,0,0"/>

06-cairo-gauge-round-annotated-15.png

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  major-tick-rgb="255,0,0,0"/>

06-cairo-gauge-round-annotated-16.png

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  minor-tick-rgb="255,0,0,0"/>

06-cairo-gauge-round-annotated-17.png

<component type="cairo-gauge-round-annotated" metric="speed" units="mph"  needle-rgb="255,0,255,40"/>

06-cairo-gauge-round-annotated-18.png