Implement Clone for Style #54

Merged
Spadi0 merged 1 commit from style_clone_impl into master 2022-03-22 14:17:17 +00:00
Spadi0 commented 2022-03-22 11:59:15 +00:00 (Migrated from github.com)

This allows for re-using the same style for multiple widgets, as the Widget::add_style method needs to take ownership of the Style object.

Since Style uses a Box internally, it was also necessary to implement Clone for that too.

This allows for re-using the same style for multiple widgets, as the `Widget::add_style` method needs to take ownership of the `Style` object. Since `Style` uses a `Box` internally, it was also necessary to implement `Clone` for that too.
rafaelcaricio (Migrated from github.com) approved these changes 2022-03-22 14:16:34 +00:00
Sign in to join this conversation.
No description provided.