Document how anonymous objects are mapped to native code

As discussed in https://github.com/slint-ui/slint/discussions/2650
This commit is contained in:
Olivier Goffart 2023-04-28 09:30:23 +02:00 committed by GitHub
parent cf1984f544
commit 65e879e55f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -20,6 +20,7 @@ The follow table summarizes the entire mapping:
:code:`angle` :code:`float` The value 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.
=========================== ================================== =======================================================================================================================================
```
## Structures