Implement Clone for Style #54
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rafaelcaricio/lvgl-rs#54
Loading…
Reference in a new issue
No description provided.
Delete branch "style_clone_impl"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This allows for re-using the same style for multiple widgets, as the
Widget::add_style
method needs to take ownership of theStyle
object.Since
Style
uses aBox
internally, it was also necessary to implementClone
for that too.