Lei YU | e57c38e | 2019-09-20 17:38:17 +0800 | [diff] [blame] | 1 | description: > |
| 2 | A test interface |
| 3 | properties: |
| 4 | - name: SomeValue |
| 5 | type: int64 |
Patrick Williams | e1c73d3 | 2020-07-10 16:02:27 -0500 | [diff] [blame] | 6 | - name: ReadonlyValue |
| 7 | type: int64 |
| 8 | flags: |
| 9 | - readonly |
| 10 | - emits_change |
| 11 | - name: ConstValue |
| 12 | type: int64 |
| 13 | flags: |
| 14 | - const |
Patrick Williams | 4ac7e56 | 2020-09-10 08:06:11 -0500 | [diff] [blame] | 15 | - name: Countable |
| 16 | type: size |
Patrick Williams | 4690d88 | 2020-10-08 11:09:58 -0500 | [diff] [blame] | 17 | - name: SignedCountable |
| 18 | type: ssize |
| 19 | - name: UnsignedInt32 |
| 20 | type: uint32 |
| 21 | - name: UnsignedInt64 |
| 22 | type: uint64 |
Patrick Williams | dbfb967 | 2020-09-11 16:06:38 -0500 | [diff] [blame] | 23 | - name: ObjectPath |
Patrick Williams | d5ce346 | 2020-09-11 16:16:30 -0500 | [diff] [blame] | 24 | type: object_path |
Patrick Williams | c67e1e8 | 2020-11-04 12:39:24 -0600 | [diff] [blame] | 25 | - name: DoubleAsNAN |
| 26 | type: double |
| 27 | default: NaN |
| 28 | - name: DoubleAsInf |
| 29 | type: double |
| 30 | default: Infinity |
| 31 | - name: DoubleAsNegInf |
| 32 | type: double |
| 33 | default: -Infinity |
| 34 | - name: DoubleAsEpsilon |
| 35 | type: double |
| 36 | default: Epsilon |
Patrick Williams | ea56ec3 | 2021-07-14 07:41:47 -0500 | [diff] [blame] | 37 | |
| 38 | - name: VariantOfEnums |
| 39 | type: variant[enum[self.EnumOne], string, enum[self.EnumTwo]] |
| 40 | |
| 41 | enumerations: |
| 42 | - name: EnumOne |
| 43 | values: |
| 44 | - name: OneA |
| 45 | - name: OneB |
| 46 | - name: EnumTwo |
| 47 | values: |
| 48 | - name: TwoA |
| 49 | - name: TwoB |