layout

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layout

type Layout struct {
	Width       int
	Height      int
	ContentPadX int
	ContentPadY int
	ActiveTheme theme.Theme
}

func New

func New(width, height int) Layout

func (Layout) BodyHeight

func (l Layout) BodyHeight() int

func (Layout) CardBorderX

func (l Layout) CardBorderX() int

func (Layout) CardBorderY

func (l Layout) CardBorderY() int

func (Layout) CenterContent

func (l Layout) CenterContent(content string) string

func (Layout) ContentPaddingX

func (l Layout) ContentPaddingX() int

func (Layout) ContentPaddingY

func (l Layout) ContentPaddingY() int

func (Layout) ContentWidth

func (l Layout) ContentWidth() int

func (Layout) EditorPaneWidth

func (l Layout) EditorPaneWidth() int

func (Layout) FormWidth

func (l Layout) FormWidth() int

func (Layout) Frame

func (l Layout) Frame(content, help string) string

func (Layout) FrameHeight

func (l Layout) FrameHeight() int

func (Layout) FrameWidth

func (l Layout) FrameWidth() int

func (Layout) PaneBoxHeight

func (l Layout) PaneBoxHeight(totalHeight int) int

func (Layout) PaneContentHeight

func (l Layout) PaneContentHeight(totalHeight int) int

func (Layout) PaneContentWidth

func (l Layout) PaneContentWidth(totalWidth int) int

func (Layout) PaneHeader

func (l Layout) PaneHeader(title string, paneWidth int) string

func (Layout) PrimaryPaneWidth

func (l Layout) PrimaryPaneWidth() int

func (Layout) SinglePane

func (l Layout) SinglePane(content string) string

func (Layout) SinglePaneWithWidth

func (l Layout) SinglePaneWithWidth(content string, totalWidth int) string

func (Layout) SplitPaneContentWidths

func (l Layout) SplitPaneContentWidths(leftRatio float64) (int, int)

func (Layout) SplitPaneContentWidthsForTotal

func (l Layout) SplitPaneContentWidthsForTotal(totalWidth int, leftRatio float64) (int, int)

func (Layout) TitledPane

func (l Layout) TitledPane(title, content string) string

func (Layout) TitledPaneWithWidth

func (l Layout) TitledPaneWithWidth(title, content string, totalWidth int) string

func (Layout) TitledPaneWithWidthAndHeight

func (l Layout) TitledPaneWithWidthAndHeight(title, content string, totalWidth, totalHeight int) string

func (Layout) TwoPane

func (l Layout) TwoPane(left, right string) string

func (Layout) TwoPaneWithRatio

func (l Layout) TwoPaneWithRatio(left, right string, leftRatio float64) string

func (Layout) TwoPaneWithRatioAndTitles

func (l Layout) TwoPaneWithRatioAndTitles(leftTitle, rightTitle, left, right string, leftRatio float64) string

func (Layout) TwoPaneWithRatioAndTitlesAndWidth

func (l Layout) TwoPaneWithRatioAndTitlesAndWidth(leftTitle, rightTitle, left, right string, leftRatio float64, totalWidth int) string

Jump to

Keyboard shortcuts

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