Add requirement for ContainerBox.Add to remove a previously

parented object first
This commit is contained in:
Sasha Koshka 2024-05-14 12:03:10 -04:00
parent 24264bbc91
commit 7c30b2bac0

View File

@ -265,7 +265,8 @@ type ContainerBox interface {
// SetGap sets the gap between child Objects. // SetGap sets the gap between child Objects.
SetGap (image.Point) SetGap (image.Point)
// Add appends a child Object. // Add appends a child Object. If the object is already a child of
// another object, it will be removed from that object first.
Add (Object) Add (Object)
// Delete removes a child Object, if it is a child of this Box. // Delete removes a child Object, if it is a child of this Box.
Delete (Object) Delete (Object)