boxed

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 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 PrimitiveWithBox

type PrimitiveWithBox interface {
	tview.Primitive
	GetBox() *tview.Box
}

PrimitiveWithBox is an interface for primitives that have a Box

type WithBoxType

type WithBoxType[T tview.Primitive] struct {
	tview.Primitive
	Box *tview.Box
}

WithBoxType wraps a primitive with a Box for border management

func WithBordersWithoutPadding

func WithBordersWithoutPadding[T tview.Primitive](p T, box *tview.Box) WithBoxType[T]

WithBordersWithoutPadding wraps a primitive with a box and applies default border styling without padding

func WithBoxWithoutBorder

func WithBoxWithoutBorder[T tview.Primitive](p T, box *tview.Box) WithBoxType[T]

WithBoxWithoutBorder wraps a primitive with a box but without applying border styling

func WithDefaultBorders

func WithDefaultBorders[T tview.Primitive](p T, box *tview.Box) WithBoxType[T]

WithDefaultBorders wraps a primitive with a box and applies default border styling with padding

func (WithBoxType[T]) GetBox

func (p WithBoxType[T]) GetBox() *tview.Box

GetBox returns the Box associated with this primitive

func (WithBoxType[T]) GetPrimitive

func (p WithBoxType[T]) GetPrimitive() T

GetPrimitive returns the wrapped primitive

Jump to

Keyboard shortcuts

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