Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit 29b9303

Browse files
committed
Merge pull request #69 from mbrubeck/remove-all
Add ContainerLayer::remove_all_children method
2 parents 0d1bb7a + 261bef5 commit 29b9303

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

layers.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ impl ContainerLayer {
202202
}
203203
});
204204
}
205+
206+
pub fn remove_all_children(&self) {
207+
*self.first_child.borrow_mut() = None;
208+
*self.last_child.borrow_mut() = None;
209+
}
205210
}
206211

207212
/// Whether a texture should be flipped.

0 commit comments

Comments
 (0)