Separator no longer embeds tomo.Box
This commit is contained in:
parent
8b79fec1bd
commit
033e9debf6
11
separator.go
11
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user