mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
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:
parent
7ae850d564
commit
91ed04a72c
22 changed files with 66 additions and 70 deletions
|
@ -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 |
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue