display

package
v0.0.0-...-8b718e2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: ISC Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AUTO = -1
View Source
const PREFERED_TEXT_WIDTH = 60

Variables

This section is empty.

Functions

This section is empty.

Types

type TtkArt

type TtkArt struct {
	Content string
}

func (*TtkArt) ExpandHeight

func (widget *TtkArt) ExpandHeight() bool

func (*TtkArt) ExpandWidth

func (widget *TtkArt) ExpandWidth() bool

func (*TtkArt) Init

func (element *TtkArt) Init()

func (*TtkArt) Render

func (widget *TtkArt) Render(width int, height int) string

type TtkLabel

type TtkLabel struct {
	Label    string
	Justify  lipgloss.Position
	Width    int
	MaxWidth int
	// contains filtered or unexported fields
}

func (*TtkLabel) ExpandHeight

func (widget *TtkLabel) ExpandHeight() bool

func (*TtkLabel) ExpandWidth

func (widget *TtkLabel) ExpandWidth() bool

func (*TtkLabel) Init

func (element *TtkLabel) Init()

func (*TtkLabel) Render

func (widget *TtkLabel) Render(width int, height int) string

Jump to

Keyboard shortcuts

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