mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
Declare .slint enum in one place in i-slint-common
This avoid repeating the enums both in the compiler and in the runtime library, and register them in a bunch of other places. So it should be easier to add enums and enum values Since cbindgen doesn't see through the macro, generate the enum manually
This commit is contained in:
parent
5a270313d2
commit
e85e69fda0
27 changed files with 366 additions and 520 deletions
|
@ -6,19 +6,15 @@
|
|||
#include <string_view>
|
||||
#include "slint_pathdata_internal.h"
|
||||
|
||||
// The C++ code generator assumes that enums are in the cbindgen_private namespace
|
||||
namespace slint::cbindgen_private {
|
||||
using cbindgen_private::types::PathEvent;
|
||||
}
|
||||
namespace slint::private_api {
|
||||
using cbindgen_private::types::PathArcTo;
|
||||
using cbindgen_private::types::PathCubicTo;
|
||||
using cbindgen_private::types::PathElement;
|
||||
using cbindgen_private::types::PathEvent;
|
||||
using cbindgen_private::types::PathLineTo;
|
||||
using cbindgen_private::types::PathMoveTo;
|
||||
using cbindgen_private::types::PathQuadraticTo;
|
||||
using cbindgen_private::types::Point;
|
||||
using cbindgen_private::PathEvent;
|
||||
|
||||
struct PathData
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue