mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
![]() A few changes were required: * `LinearGradient(LinearGradient)` as enum variant unfortunately won't compile because the cbindgen generated constructor function (`LinearGradient()`) will try to also instantiate the variant type inside (`LinearGradient`) and that won't find the type but the function itself and error out. So the inner type is now called `LinearGradientBrush`. * The same name dance was required for `Color`, where the enum variant instead is called `SolidColor` * `BrushInner` was removed in favor of just `Brush`. The nicer Rust API will be the public variant, and for cbindgen we can just put the generated enum into an internal namespace, like we do for Resource for example * A `NoBrush` variant was added. Maybe that name could be improved? |
||
---|---|---|
.. | ||
sixtyfps.h | ||
sixtyfps_brush.h | ||
sixtyfps_callbacks.h | ||
sixtyfps_color.h | ||
sixtyfps_pathdata.h | ||
sixtyfps_properties.h | ||
sixtyfps_resource.h | ||
sixtyfps_sharedvector.h | ||
sixtyfps_string.h | ||
sixtyfps_testing.h | ||
vtable.h |