mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Fix build of generated Rust code for path elements with the llr
* Move the C++ elements back into private_api (despite being generated), so that struct_name_to_tokens can generate the right name in re_exports * When generating the llr_Expression::Struct for the path elements, make sure that all fields are filled out, to avoid an empty value expression in Expression::Struct in the Rust generator. Since we don't generate tuples but a named struct, we must provide all fields.
This commit is contained in:
parent
35446e1c82
commit
44297bad24
5 changed files with 30 additions and 123 deletions
|
@ -8,6 +8,9 @@
|
|||
|
||||
// The C++ code generator assumes that enums are in the cbindgen_private namespace
|
||||
namespace sixtyfps::cbindgen_private {
|
||||
using cbindgen_private::types::PathEvent;
|
||||
}
|
||||
namespace sixtyfps::private_api {
|
||||
using cbindgen_private::types::PathArcTo;
|
||||
using cbindgen_private::types::PathCubicTo;
|
||||
using cbindgen_private::types::PathElement;
|
||||
|
@ -16,11 +19,6 @@ using cbindgen_private::types::PathLineTo;
|
|||
using cbindgen_private::types::PathMoveTo;
|
||||
using cbindgen_private::types::PathQuadraticTo;
|
||||
using cbindgen_private::types::Point;
|
||||
}
|
||||
namespace sixtyfps::private_api {
|
||||
using cbindgen_private::types::PathElement;
|
||||
using cbindgen_private::types::PathEvent;
|
||||
using cbindgen_private::types::Point;
|
||||
|
||||
struct PathData
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue