mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 22:54:36 +00:00
Move ItemVTable and frieds to corelib::items
To avoid ambiguities regarding the use of FieldOffset, the BuiltinItem proc-macro uses fully-qualified type names now.
This commit is contained in:
parent
aafb96cb93
commit
62a8b15f09
11 changed files with 104 additions and 107 deletions
|
@ -171,5 +171,8 @@ pub trait BuiltinItem: Sized {
|
|||
fn name() -> &'static str;
|
||||
fn properties<Value: ValueType>() -> Vec<(&'static str, &'static dyn PropertyInfo<Self, Value>)>;
|
||||
fn fields<Value: ValueType>() -> Vec<(&'static str, &'static dyn FieldInfo<Self, Value>)>;
|
||||
fn signals() -> Vec<(&'static str, FieldOffset<Self, crate::Signal<()>>)>;
|
||||
fn signals() -> Vec<(
|
||||
&'static str,
|
||||
const_field_offset::FieldOffset<Self, crate::Signal<()>, const_field_offset::PinnedFlag>,
|
||||
)>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue