Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrimitiveWithBox ¶
PrimitiveWithBox is an interface for primitives that have a Box
type WithBoxType ¶
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
Click to show internal directories.
Click to hide internal directories.