linearcontainer

package
v0.0.0-...-6325213 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HORIZONTAL int = iota
	VERTICAL
	STACK
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LinearContainerModel

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

func NewLinearContainer

func NewLinearContainer() *LinearContainerModel

func NewLinearContainerFromComponents

func NewLinearContainerFromComponents(components []*con.Component) *LinearContainerModel

func (LinearContainerModel) GetComponent

func (m LinearContainerModel) GetComponent(idx int) *con.Component

func (LinearContainerModel) GetComponentStyle

func (m LinearContainerModel) GetComponentStyle(component *con.Component) lipgloss.Style

Returns the current border style of the given component

func (LinearContainerModel) GetComponentStyleByIndex

func (m LinearContainerModel) GetComponentStyleByIndex(componentIdx int) lipgloss.Style

func (LinearContainerModel) GetComponents

func (m LinearContainerModel) GetComponents() []*con.Component

func (LinearContainerModel) GetFocusHandler

func (m LinearContainerModel) GetFocusHandler() con.FocusHandler

func (LinearContainerModel) GetFullContainerSize

func (m LinearContainerModel) GetFullContainerSize() (output tea.WindowSizeMsg)

func (LinearContainerModel) GetSizeAlongMajorAxis

func (m LinearContainerModel) GetSizeAlongMajorAxis(msg tea.WindowSizeMsg) int

func (LinearContainerModel) GetSizeAlongMinorAxis

func (m LinearContainerModel) GetSizeAlongMinorAxis(msg tea.WindowSizeMsg) int

func (LinearContainerModel) GetVisibleComponents

func (m LinearContainerModel) GetVisibleComponents() (output []*con.Component)

func (LinearContainerModel) Init

func (m LinearContainerModel) Init() tea.Cmd

func (LinearContainerModel) IsHorizontal

func (m LinearContainerModel) IsHorizontal() bool

func (LinearContainerModel) IsVertical

func (m LinearContainerModel) IsVertical() bool

func (*LinearContainerModel) ResizeComponents

func (m *LinearContainerModel) ResizeComponents(containerSize tea.WindowSizeMsg) tea.Cmd

Resizes the components according to their dimensions and the dimensions of the LinearContainerModel

func (*LinearContainerModel) SetDirection

func (m *LinearContainerModel) SetDirection(direction int) *LinearContainerModel

func (*LinearContainerModel) SetFocusHandler

func (m *LinearContainerModel) SetFocusHandler(handler con.FocusHandler)

func (LinearContainerModel) SetMajorAndMinorAxes

func (m LinearContainerModel) SetMajorAndMinorAxes(msg *tea.WindowSizeMsg, major int, minor int) *tea.WindowSizeMsg

func (LinearContainerModel) Update

func (m LinearContainerModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (LinearContainerModel) View

func (m LinearContainerModel) View() (s string)

func (LinearContainerModel) ViewComponent

func (m LinearContainerModel) ViewComponent(model tea.Model, component *con.Component) string

Jump to

Keyboard shortcuts

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