Separator no longer embeds tomo.Box

This commit is contained in:
Sasha Koshka 2024-08-24 21:52:37 -04:00
parent 8b79fec1bd
commit 033e9debf6

View File

@ -4,14 +4,19 @@ import "git.tebibyte.media/tomo/tomo"
// Separator is a line for visually separating elements.
type Separator struct {
tomo.Box
box tomo.Box
}
// NewSeparator creates a new separator line.
func NewSeparator () *Separator {
this := &Separator {
Box: tomo.NewBox(),
box: tomo.NewBox(),
}
this.SetRole(tomo.R("objects", "Separator"))
this.box.SetRole(tomo.R("objects", "Separator"))
return this
}
// GetBox returns the underlying box.
func (this *Separator) GetBox () tomo.Box {
return this.box
}