full

– import “gomatcha.io/matcha/layout/full”

Package full implements a layout system where the view and all direct children are positioned to the maximum size. This is the default layouter. It does not support animations or flexible sizing. For more complex layouts, see the constraint package.

views := []view.View{}

childView := NewChildView(...)
views = append(views, childView)

return view.Model{
    Views: views,
    Layouter:&full.Layouter{},
}

type Layouter

type Layouter struct {
}

func (*Layouter) Layout

func (l *Layouter) Layout(ctx layout.Context) (layout.Guide, []layout.Guide)

Layout implements the view.Layouter interface.

func (*Layouter) Notify

func (l *Layouter) Notify(f func()) comm.Id

Notify implements the view.Layouter interface.

func (*Layouter) Unnotify

func (l *Layouter) Unnotify(id comm.Id)

Unnotify implements the view.Layouter interface.