Add ability for the native style to export native Globals

This commit is contained in:
Olivier Goffart 2020-11-02 16:11:29 +01:00
parent 94265cb9e6
commit a82c23fc41
14 changed files with 195 additions and 33 deletions

View file

@ -133,6 +133,7 @@ using cbindgen_private::NativeScrollView;
using cbindgen_private::NativeSlider;
using cbindgen_private::NativeSpinBox;
using cbindgen_private::NativeStandardListViewItem;
using cbindgen_private::NativeStyleMetrics;
namespace private_api {
constexpr inline ItemTreeNode make_item_node(std::uintptr_t offset,
@ -579,6 +580,10 @@ Flickable::~Flickable()
sixtyfps_flickable_data_free(&data);
}
NativeStyleMetrics::NativeStyleMetrics() {
sixtyfps_init_native_style_metrics(this);
}
using cbindgen_private::StandardListViewItem;
namespace cbindgen_private {
bool operator==(const StandardListViewItem &a, const StandardListViewItem &b) {