====== API: Gauge Controls ======
API-referenca za mjerače i indikatore.
===== TWvdSCircularGauge =====
Kružni analogni mjerač.
==== Namespace ====
''WvdS.UI.Controls.Gauges''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ Value | Double | 0 | Trenutna vrijednost |
^ Minimum | Double | 0 | Minimalna vrijednost |
^ Maximum | Double | 100 | Maksimalna vrijednost |
^ StartAngle | Double | -135 | Početni kut (stupnjevi) |
^ EndAngle | Double | 135 | Završni kut (stupnjevi) |
^ Ranges | TGaugeRangeCollection | nil | Rasponi vrijednosti |
^ ShowValue | Boolean | True | Prikaži vrijednost |
^ ValueFormat | string | '0' | Format vrijednosti |
^ NeedleColor | TWvdSColor | clRed | Boja kazaljke |
==== TUI-Rendering ====
TUI-prikaz (ASCII):
.-"""-.
/ 120 \
| ↑ |
\ ___ /
'-...-'
----
===== TWvdSLinearGauge =====
Linearni trakasti mjerač.
==== Namespace ====
''WvdS.UI.Controls.Gauges''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ Value | Double | 0 | Trenutna vrijednost |
^ Minimum | Double | 0 | Minimalna vrijednost |
^ Maximum | Double | 100 | Maksimalna vrijednost |
^ Orientation | TWvdSOrientation | oHorizontal | Orijentacija |
^ ShowMarker | Boolean | True | Prikaži marker |
^ MarkerStyle | TMarkerStyle | msTriangle | Stil markera |
----
===== TWvdSDigitalGauge =====
Digitalni 7-segmentni prikaz.
==== Namespace ====
''WvdS.UI.Controls.Gauges''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ Value | Double | 0 | Vrijednost za prikaz |
^ Text | string | '' | Tekst za prikaz |
^ DigitCount | Integer | 4 | Broj znamenki |
^ ShowLeadingZeros | Boolean | False | Vodeće nule |
^ SegmentColor | TWvdSColor | clGreen | Boja segmenata |
^ BackgroundColor | TWvdSColor | clBlack | Pozadina |
==== TUI-Rendering ====
████ ████ ████ ████
██ ██ ██ ██
████ ████ ████ ████
██ ██ ██ ██
████ ████ ████ ████
----
===== TWvdSStateIndicator =====
Status-indikator (semafor).
==== Namespace ====
''WvdS.UI.Controls.Gauges''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ State | string | '' | Trenutni status |
^ States | TIndicatorStateCollection | nil | Definicije statusa |
^ Shape | TIndicatorShape | isCircle | Circle, Square, Triangle |
^ Size | Integer | 24 | Veličina u pikselima |
----
===== TWvdSLED =====
Jednostavni LED-prikaz.
==== Namespace ====
''WvdS.UI.Controls.Gauges''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ IsOn | Boolean | False | Uklj/Isklj |
^ OnColor | TWvdSColor | clGreen | Boja uključeno |
^ OffColor | TWvdSColor | clDarkGray | Boja isključeno |
^ Blink | Boolean | False | Treperi |
^ BlinkInterval | Integer | 500 | Interval treptanja (ms) |
----
===== TWvdSArcScaleGauge =====
Lučni mjerač.
==== Namespace ====
''WvdS.UI.Controls.Gauges''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ ArcThickness | Integer | 10 | Debljina luka |
^ StartAngle | Double | -180 | Početni kut |
^ SweepAngle | Double | 180 | Kut luka |
----
===== TWvdSScaleIndicator =====
Indikator sa skalom.
==== Namespace ====
''WvdS.UI.Controls.Gauges''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ ScaleType | TScaleType | stLinear | Linear, Logarithmic |
^ TickCount | Integer | 5 | Broj oznaka |
^ ShowLabels | Boolean | True | Prikaži oznake |
----
===== TWvdSLevelBar =====
Pokazivač razine.
==== Namespace ====
''WvdS.UI.Controls.Gauges''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ Value | Double | 0 | Razina |
^ Minimum | Double | 0 | Minimum |
^ Maximum | Double | 100 | Maksimum |
^ Orientation | TWvdSOrientation | oVertical | Orijentacija |
^ FillColor | TWvdSColor | clBlue | Boja punjenja |
^ ShowPercentage | Boolean | True | Prikaži postotak |
==== TUI-Rendering ====
┌────┐
│████│ 80%
│████│
│████│
│████│
│ │
└────┘
----
===== TWvdSProgressGauge =====
Kružni pokazivač napretka.
==== Namespace ====
''WvdS.UI.Controls.Gauges''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ Value | Double | 0 | Napredak |
^ Maximum | Double | 100 | Maksimum |
^ Thickness | Integer | 8 | Debljina prstena |
^ TrackColor | TWvdSColor | clLightGray | Pozadina |
^ ProgressColor | TWvdSColor | clBlue | Boja napretka |
----
===== TWvdSThermometer =====
Termometar-prikaz.
==== Namespace ====
''WvdS.UI.Controls.Gauges''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ Value | Double | 0 | Temperatura |
^ Minimum | Double | -20 | Minimum |
^ Maximum | Double | 50 | Maksimum |
^ Unit | string | '°C' | Jedinica |
^ ShowBulb | Boolean | True | Prikaži kuglicu |
^ MercuryColor | TWvdSColor | clRed | Boja žive |
==== TUI-Rendering ====
▲ 50
│
┃ 30
┃
┃ 10
│
▼-20
●
----
===== Vidi također =====
* [[.:control-bibliothek|Biblioteka kontrola]]
* [[.:api-controls-charts|Charts API]]
* [[.:tui-controls|TUI Controls]]