Make length (still the default for all property) be the logical length

And a new `physical_length` is now the physical_length unit

Note: this does not change the runtime part yet
This commit is contained in:
Olivier Goffart 2021-04-20 17:01:49 +02:00
parent 7ae850d564
commit 91ed04a72c
22 changed files with 66 additions and 70 deletions

View file

@ -9,8 +9,8 @@ The follow table summarizes the entire mapping:
| `float` | `float` | |
| `string` | [`sixtyfps::SharedString`](api/structsixtyfps_1_1_shared_string.html) | A reference-counted string type that uses UTF-8 encoding and can be easily converted to a std::string_view or a const char *. |
| `color` | [`sixtyfps::Color`](api/classsixtyfps_1_1_color.html) | |
| `length` | `float` | The unit are physical pixels. |
| `logical_length` | `float` | At run-time, logical lengths are automatically translated to physical pixels using the device pixel ratio. |
| `physical_length` | `float` | The unit are physical pixels. |
| `length` | `float` | At run-time, logical lengths are automatically translated to physical pixels using the device pixel ratio. |
| `duration` | `std::int64_t` | At run-time, durations are always represented as signed 64-bit integers with milisecond precision. |
| stucture | A `class` of the same name | The order of the data member are in the lexicographic order of their name |