objects/separator.go

25 lines
484 B
Go
Raw Normal View History

2023-08-10 15:52:01 -06:00
package objects
import "git.tebibyte.media/tomo/tomo"
2024-08-24 20:03:35 -06:00
var _ tomo.Object = new(Separator)
2023-08-10 15:52:01 -06:00
// Separator is a line for visually separating elements.
2023-08-11 23:02:26 -06:00
type Separator struct {
2024-08-24 19:52:37 -06:00
box tomo.Box
2023-08-11 23:02:26 -06:00
}
2023-08-10 15:52:01 -06:00
2023-08-11 23:02:26 -06:00
// NewSeparator creates a new separator line.
func NewSeparator () *Separator {
this := &Separator {
2024-08-24 19:52:37 -06:00
box: tomo.NewBox(),
2023-08-11 23:02:26 -06:00
}
2024-08-24 19:52:37 -06:00
this.box.SetRole(tomo.R("objects", "Separator"))
2023-08-10 15:52:01 -06:00
return this
}
2024-08-24 19:52:37 -06:00
// GetBox returns the underlying box.
func (this *Separator) GetBox () tomo.Box {
return this.box
}