mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 04:45:13 +00:00
More work on the vtable crate
This commit is contained in:
parent
aa27fceb8c
commit
1ced4224b5
5 changed files with 338 additions and 211 deletions
18
api/sixtyfps-cpp/include/vtable.h
Normal file
18
api/sixtyfps-cpp/include/vtable.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
|
||||
template<typename T>
|
||||
struct VBox {
|
||||
T *vtable;
|
||||
void *instance;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
struct VRef {
|
||||
T *vtable;
|
||||
void *instance;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
struct VRefMut {
|
||||
T *vtable;
|
||||
void *instance;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue