mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 21:04:47 +00:00
Fix the viewer using generated rtti from a macro
One thing that needed to change is that we needed the vtable to be unique
This commit is contained in:
parent
a883da3281
commit
5f01ec30ee
10 changed files with 68 additions and 61 deletions
|
@ -9,6 +9,13 @@ struct ItemVTable;
|
|||
|
||||
namespace sixtyfps {
|
||||
|
||||
extern "C" {
|
||||
extern const internal::ItemVTable RectangleVTable;
|
||||
extern const internal::ItemVTable TextVTable;
|
||||
extern const internal::ItemVTable TouchAreaVTable;
|
||||
extern const internal::ItemVTable ImageVTable;
|
||||
}
|
||||
|
||||
// Bring opaque structure in scope
|
||||
using internal::ComponentVTable;
|
||||
using internal::ItemTreeNode;
|
||||
|
@ -26,13 +33,9 @@ void run(Component *c)
|
|||
|
||||
using internal::EvaluationContext;
|
||||
using internal::Image;
|
||||
using internal::ImageVTable;
|
||||
using internal::Rectangle;
|
||||
using internal::RectangleVTable;
|
||||
using internal::Text;
|
||||
using internal::TextVTable;
|
||||
using internal::TouchArea;
|
||||
using internal::TouchAreaVTable;
|
||||
|
||||
// the component has static lifetime so it does not need to be destroyed
|
||||
// FIXME: we probably need some kind of way to dinstinguish static component and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue