mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Add ability for the native style to export native Globals
This commit is contained in:
parent
94265cb9e6
commit
a82c23fc41
14 changed files with 195 additions and 33 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue