mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 20:42:25 +00:00
Begin to implement a Flickable
The implementation is still very rough and will need to be improved
This commit is contained in:
parent
c32114cee6
commit
9760cf4969
15 changed files with 356 additions and 64 deletions
|
@ -20,6 +20,7 @@ extern const internal::ItemVTable TextVTable;
|
|||
extern const internal::ItemVTable TouchAreaVTable;
|
||||
extern const internal::ItemVTable ImageVTable;
|
||||
extern const internal::ItemVTable PathVTable;
|
||||
extern const internal::ItemVTable FlickableVTable;
|
||||
}
|
||||
|
||||
// Bring opaque structure in scope
|
||||
|
@ -56,6 +57,7 @@ using internal::Path;
|
|||
using internal::Rectangle;
|
||||
using internal::Text;
|
||||
using internal::TouchArea;
|
||||
using internal::Flickable;
|
||||
|
||||
constexpr inline ItemTreeNode<uint8_t> make_item_node(std::uintptr_t offset,
|
||||
const internal::ItemVTable *vtable,
|
||||
|
@ -143,4 +145,7 @@ struct Repeater
|
|||
}
|
||||
};
|
||||
|
||||
Flickable::Flickable() { sixtyfps_flickable_data_init(&data); }
|
||||
Flickable::~Flickable() { sixtyfps_flickable_data_free(&data); }
|
||||
|
||||
} // namespace sixtyfps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue