mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +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
|
@ -325,7 +325,7 @@ pub trait GraphicsBackend: Sized {
|
|||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(FieldOffsets, Default, BuiltinItem, Clone, Debug, PartialEq)]
|
||||
#[derive(FieldOffsets, Default, SixtyFPSElement, Clone, Debug, PartialEq)]
|
||||
#[pin]
|
||||
/// PathLineTo describes the event of moving the cursor on the path to the specified location
|
||||
/// along a straight line.
|
||||
|
@ -339,7 +339,7 @@ pub struct PathLineTo {
|
|||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(FieldOffsets, Default, BuiltinItem, Clone, Debug, PartialEq)]
|
||||
#[derive(FieldOffsets, Default, SixtyFPSElement, Clone, Debug, PartialEq)]
|
||||
#[pin]
|
||||
/// PathArcTo describes the event of moving the cursor on the path across an arc to the specified
|
||||
/// x/y coordinates, with the specified x/y radius and additional properties.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue