🚧 Revamp ComponentRef to ComponentArc

This commit is contained in:
Manuel Cillero 2023-08-13 10:42:39 +02:00
parent df0b2eeb71
commit 68b54fbce5
10 changed files with 105 additions and 79 deletions

View file

@ -83,12 +83,12 @@ impl Row {
}
pub fn with_column(mut self, column: grid::Column) -> Self {
self.columns.alter(PackOp::Add, ComponentRef::to(column));
self.columns.alter(PackOp::Add, ComponentArc::new(column));
self
}
pub fn alter_columns(&mut self, op: PackOp, column: grid::Column) -> &mut Self {
self.columns.alter(op, ComponentRef::to(column));
self.columns.alter(op, ComponentArc::new(column));
self
}