Avoid using cbindgen_private in generated C++ code

Instead, pull in the types manually.
This commit is contained in:
Simon Hausmann 2020-08-25 15:35:24 +02:00
parent 697aa61a0c
commit 9dd6101494
2 changed files with 4 additions and 2 deletions

View file

@ -39,6 +39,7 @@ extern const cbindgen_private::ItemVTable WindowVTable;
// Bring opaque structure in scope
using cbindgen_private::ComponentVTable;
using cbindgen_private::ItemVTable;
using ItemTreeNode = cbindgen_private::ItemTreeNode<uint8_t>;
using ComponentRef = VRef<ComponentVTable>;
using ItemVisitorRefMut = VRefMut<cbindgen_private::ItemVisitorVTable>;
@ -47,6 +48,7 @@ using cbindgen_private::EasingCurve;
using cbindgen_private::TextHorizontalAlignment;
using cbindgen_private::TextVerticalAlignment;
using cbindgen_private::Slice;
using cbindgen_private::PropertyAnimation;
struct ComponentWindow
{