mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 07:04:34 +00:00
doc: In the type mapping, refer to the angle as "angle", not as "value"
This commit is contained in:
parent
962d70a357
commit
e0d1d4366d
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ The follow table summarizes the entire mapping:
|
|||
:code:`physical_length` :code:`float` The unit are physical pixels.
|
||||
:code:`length` :code:`float` At run-time, logical lengths are automatically translated to physical pixels using the device pixel ratio.
|
||||
:code:`duration` :code:`std::int64_t` At run-time, durations are always represented as signed 64-bit integers with millisecond precision.
|
||||
:code:`angle` :code:`float` The value in degrees.
|
||||
:code:`angle` :code:`float` The angle in degrees.
|
||||
:code:`relative-font-size` :code:`float` Relative font size factor that is multiplied with the :code:`Window.default-font-size` and can be converted to a :code:`length`.
|
||||
structure A :code:`class` of the same name The order of the data member are in the same as in the slint declaration
|
||||
anonymous object A :code:`std::tuple` The fields are in alphabetical order.
|
||||
|
|
|
@ -6,7 +6,7 @@ The follow table summarizes the entire mapping:
|
|||
|
||||
| `.slint` Type | Rust Type | Note |
|
||||
| --- | --- | --- |
|
||||
| `angle` | `f32` | The value in degrees |
|
||||
| `angle` | `f32` | The angle in degrees |
|
||||
| `array` | [`ModelRc`] | Arrays are represented as models, so that their contents can change dynamically. |
|
||||
| `bool` | `bool` | |
|
||||
| `brush` | [`Brush`] | |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue