mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-30 23:27:22 +00:00
doc: fix missing types mapping table in C++
This commit is contained in:
parent
7947d44e59
commit
25a71afa53
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue