slint/api/sixtyfps-cpp/include
Simon Hausmann 50d9211e0a Fix failing default_color.60 test
Allow converting a brush to a color. In the case of a gradient, the color of the first stop is returned.

For the C++ generator this requires adding the extra case of explicitly
calling the `Brush(const Color &)` constructor, despite it being implicit,
in order to generate the correct code when we have IR that casts twice:

```
   Expression::Cast {
       from: Expression::Cast {
           from: Expression::Cast {
               from: Expression::NumberLiteral(...),
               to: Type::Color,
           }
           to: Type::Brush,
       },
       to: Type::Color,
   }
```
2021-02-04 13:44:10 +01:00
..
sixtyfps.h Add TextWrap and TextOverflow enum and corresponding property in Text 2021-01-27 11:40:09 +01:00
sixtyfps_brush.h Fix failing default_color.60 test 2021-02-04 13:44:10 +01:00
sixtyfps_callbacks.h Handle native callbacks with return value 2021-01-26 17:05:30 +01:00
sixtyfps_color.h Generate linear gradient in C++ 2021-02-03 10:16:23 +01:00
sixtyfps_pathdata.h Added the two missing path sub-elements for quadratic and cubic curves 2021-01-28 14:14:24 +01:00
sixtyfps_properties.h Change Rectangle::background's type to be a brush 2021-02-03 12:49:44 +01:00
sixtyfps_resource.h Also do the comperty comparison in C++ 2020-10-31 14:36:38 +01:00
sixtyfps_sharedvector.h Rename SharedArray to SharedVector 2020-12-18 10:26:07 +01:00
sixtyfps_string.h Fix string comparison in C++ 2020-11-03 19:42:01 +01:00
sixtyfps_testing.h Change the C++ test API of the send_mouse_click 2021-01-29 16:55:48 +01:00
vtable.h Add ability to get the parent item from the vtable 2021-01-26 10:36:37 +01:00