mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Add ability to get the parent item from the vtable
(still untested)
This commit is contained in:
parent
1fda2e1c99
commit
c2982d9ab3
10 changed files with 356 additions and 209 deletions
|
@ -167,6 +167,8 @@ public:
|
|||
inner->strong_ref++;
|
||||
return { VRc<VTable, X>(inner) };
|
||||
}
|
||||
|
||||
VWeak<VTable, Dyn> into_dyn() const { return *reinterpret_cast<const VWeak<VTable, Dyn> *>(this); }
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue