diff --git a/separator.go b/separator.go index 5493bf0..f6f03c4 100644 --- a/separator.go +++ b/separator.go @@ -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 +}