mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41:14 +00:00
Merge BuiltinItem and GeneratePropertyAccessors derive macros
... into the new SixtyFPSElement macro. This generates getters for all properties.
This commit is contained in:
parent
a48f4253a2
commit
65dcb2cb33
6 changed files with 60 additions and 97 deletions
|
@ -50,7 +50,7 @@ impl Default for ImageFit {
|
|||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(FieldOffsets, Default, BuiltinItem)]
|
||||
#[derive(FieldOffsets, Default, SixtyFPSElement)]
|
||||
#[pin]
|
||||
/// The implementation of the `Image` element
|
||||
pub struct Image {
|
||||
|
@ -108,7 +108,7 @@ impl ItemConsts for Image {
|
|||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(FieldOffsets, Default, BuiltinItem)]
|
||||
#[derive(FieldOffsets, Default, SixtyFPSElement)]
|
||||
#[pin]
|
||||
/// The implementation of the `ClippedImage` element
|
||||
pub struct ClippedImage {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue