Remove TODO in segment.go
It would have conflicted with nasin.NewApplicationWindow
This commit is contained in:
parent
51ce2a84f2
commit
7144900d31
11
segment.go
11
segment.go
@ -87,14 +87,3 @@ func NewOptionSegment (layout tomo.Layout, children ...tomo.Object) *Segment {
|
||||
segment.GetBox().SetAttr(tomo.AAlign(tomo.AlignEnd, tomo.AlignMiddle))
|
||||
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())
|
||||
|
Loading…
Reference in New Issue
Block a user