Native style works with C++

This commit is contained in:
Olivier Goffart 2020-09-01 12:24:31 +02:00
parent f1ad78bc25
commit 9782d85fdb
6 changed files with 51 additions and 29 deletions

View file

@ -22,6 +22,7 @@ struct ItemVTable;
}
#include "sixtyfps_internal.h"
#include "sixtyfps_default_backend_internal.h"
#include "sixtyfps_qt_internal.h"
namespace sixtyfps {
@ -35,6 +36,11 @@ extern const cbindgen_private::ItemVTable ImageVTable;
extern const cbindgen_private::ItemVTable PathVTable;
extern const cbindgen_private::ItemVTable FlickableVTable;
extern const cbindgen_private::ItemVTable WindowVTable;
extern const cbindgen_private::ItemVTable NativeButtonVTable;
extern const cbindgen_private::ItemVTable NativeCheckBoxVTable;
extern const cbindgen_private::ItemVTable NativeSpinBoxVTable;
extern const cbindgen_private::ItemVTable NativeSliderVTable;
}
}
@ -97,6 +103,11 @@ using cbindgen_private::Text;
using cbindgen_private::TouchArea;
using cbindgen_private::Window;
using cbindgen_private::NativeButton;
using cbindgen_private::NativeCheckBox;
using cbindgen_private::NativeSlider;
using cbindgen_private::NativeSpinBox;
namespace private_api {
constexpr inline ItemTreeNode make_item_node(std::uintptr_t offset,
const cbindgen_private::ItemVTable *vtable,