Remove TODO in segment.go

It would have conflicted with nasin.NewApplicationWindow
This commit is contained in:
Sasha Koshka 2024-09-12 14:55:44 -04:00
parent 51ce2a84f2
commit 7144900d31

View File

@ -87,14 +87,3 @@ func NewOptionSegment (layout tomo.Layout, children ...tomo.Object) *Segment {
segment.GetBox().SetAttr(tomo.AAlign(tomo.AlignEnd, tomo.AlignMiddle)) segment.GetBox().SetAttr(tomo.AAlign(tomo.AlignEnd, tomo.AlignMiddle))
return segment return segment
} }
// TODO create constructors somewhere that make a window with segments and
// automatically applied layout
//
// window, content, err := NewContentWindow
// window, nav, content, status, err := NewNavContentStatusWindow
// window, content, control, err := NewContentControlWindow
//
// alternatively:
// (the constructor will create a column from the types of the segments)
// window, err := NewSegmentedWindow(NewNavigationSegment(), NewContentSegment(), NewStatusSegment())