full

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

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{},
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL