layout

package
v0.0.0-...-a37b07e Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Area

type Area struct {
	// contains filtered or unexported fields
}

type Constraint

type Constraint func(int) int

type Layout

type Layout interface {
	Name() string
	Layout(g *gocui.Gui, minX, minY, maxX, maxY int) error
	RequestedSize(available int) *int
	IsVisible() bool
	OnLayoutChange() error
}

type Location

type Location int
const (
	LocationFooter Location = iota
	LocationHeader
	LocationColumn
)

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager() *Manager

func (*Manager) Add

func (lm *Manager) Add(element Layout, location Location)

func (*Manager) Layout

func (lm *Manager) Layout(g *gocui.Gui) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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