doc: fix missing types mapping table in C++

This commit is contained in:
Simon Hausmann 2023-01-11 15:40:51 +01:00
parent 7947d44e59
commit 25a71afa53

View file

@ -4,9 +4,9 @@ The types used for properties in `.slint` design markup each translate to specif
The follow table summarizes the entire mapping:
```{eval-rst}
========================== ================================== =======================================================================================================================================
=========================== ================================== =======================================================================================================================================
:code:`.slint` Type C++ Type Note
========================== ================================== =======================================================================================================================================
=========================== ================================== =======================================================================================================================================
:code:`int` :code:`int`
:code:`float` :code:`float`
:code:`bool` :code:`bool`
@ -18,9 +18,9 @@ The follow table summarizes the entire mapping:
: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:`relative-font-size` :code:`float` Relative font size factor that is multiplied with the `Window.default-font-size` and can be converted to a `length`.
: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 lexicographic order of their name
========================== ================================== =======================================================================================================================================
=========================== ================================== =======================================================================================================================================
```
## Structures