4 "github.com/zyedidia/micro/cmd/micro/buffer"
5 "github.com/zyedidia/micro/cmd/micro/display"
6 "github.com/zyedidia/micro/cmd/micro/info"
7 "github.com/zyedidia/micro/cmd/micro/views"
10 type EditPane struct {
15 type InfoPane struct {
21 func NewBufEditPane(x, y, width, height int, b *buffer.Buffer) *EditPane {
23 // TODO: can probably replace editpane with bufhandler entirely
24 w := display.NewBufWindow(x, y, width, height, b)
26 e.BufHandler = NewBufHandler(b, w)
31 func NewTabPane(width, height int, b *buffer.Buffer) *TabPane {
33 t.Node = views.NewRoot(0, 0, width, height)
35 e := NewBufEditPane(0, 0, width, height, b)
38 t.Panes = append(t.Panes, e)
42 func NewInfoBar() *InfoPane {
44 ib := info.NewBuffer()
45 w := display.NewInfoWindow(ib)
47 e.InfoHandler = NewInfoHandler(ib, w)