Compare commits

...

2 Commits

Author SHA1 Message Date
7c30b2bac0 Add requirement for ContainerBox.Add to remove a previously
parented object first
2024-05-14 12:03:10 -04:00
24264bbc91 Fix capitalization errors with previous commit 2024-05-14 11:58:48 -04:00

View File

@ -195,11 +195,11 @@ type CanvasBox interface {
Box
// SetDrawer sets the Drawer that will be called upon to draw the Box's
// content when it is invalidated. The canvas passed to the drawer will
// content when it is invalidated. The Canvas passed to the drawer will
// have these properties:
// - It will have the same origin (0, 0) as the window which contains
// the CanvasBox
// - The canvas bounds will describe the portion of the CanvasBox
// - The Canvas bounds will describe the portion of the CanvasBox
// visible on screen
SetDrawer (canvas.Drawer)
@ -265,7 +265,8 @@ type ContainerBox interface {
// SetGap sets the gap between child Objects.
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)
// Delete removes a child Object, if it is a child of this Box.
Delete (Object)