objects/separator.go

18 lines
338 B
Go
Raw Normal View History

2023-08-10 15:52:01 -06:00
package objects
import "git.tebibyte.media/tomo/tomo"
// Separator is a line for visually separating elements.
2023-08-11 23:02:26 -06:00
type Separator struct {
tomo.Box
}
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 {
Box: tomo.NewBox(),
}
2024-07-21 09:48:28 -06:00
this.SetRole(tomo.R("objects", "Separator"))
2023-08-10 15:52:01 -06:00
return this
}