layout

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitHorizontal

func SplitHorizontal(area cellbuf.Rectangle, constraint Constraint) (left cellbuf.Rectangle, right cellbuf.Rectangle)

func SplitVertical

func SplitVertical(area cellbuf.Rectangle, constraint Constraint) (top cellbuf.Rectangle, bottom cellbuf.Rectangle)

Types

type Constraint

type Constraint interface {
	Apply(size int) int
}

type Fixed

type Fixed int

func (Fixed) Apply

func (f Fixed) Apply(size int) int

type Percent

type Percent int

func (Percent) Apply

func (p Percent) Apply(size int) int

Jump to

Keyboard shortcuts

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