aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ivicore/qface-tutorial/chapter3-simulation-backend/instrument-cluster.qface
blob: e0a1ea3179f126f0b03cea855464c72eae5e0e1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module Example.IVI.InstrumentCluster 1.0

interface InstrumentCluster {
    readonly int speed;
    readonly int rpm;
    readonly int fuel;
    readonly real temperature;
    readonly SystemType systemType;
    readonly Warning currentWarning;
}

enum SystemType {
    Imperial,
    Metric
}

struct Warning {
    string color
    string text
    string icon
}