From 033e9debf63a151b3d0323bc636350d8968701ab Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sat, 24 Aug 2024 21:52:37 -0400 Subject: [PATCH] Separator no longer embeds tomo.Box --- separator.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 +}