structs

package
v0.0.0-...-9494f5f Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FontList

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

func NewDownloadableModel

func NewDownloadableModel(itemList []list.Item) FontList

func NewMarkedModel

func NewMarkedModel(itemList []list.Item) FontList

func (FontList) Index

func (d FontList) Index() int

func (FontList) InsertItem

func (d FontList) InsertItem(index int, item list.Item) tea.Cmd

func (FontList) Items

func (d FontList) Items() (l []list.Item)

func (FontList) RemoveItem

func (d FontList) RemoveItem(index int)

func (FontList) Render

func (d FontList) Render() string

func (*FontList) Resize

func (d *FontList) Resize(width, height int)

func (FontList) SelectedItem

func (d FontList) SelectedItem() list.Item

func (*FontList) Update

func (d *FontList) Update(msg tea.Msg) (FontList, tea.Cmd)

func (FontList) View

func (d FontList) View() (s string)

type FontlistItem

type FontlistItem struct {
	Content string
	// contains filtered or unexported fields
}

func NewItem

func NewItem(content string) FontlistItem

func (FontlistItem) Description

func (i FontlistItem) Description() string

func (FontlistItem) FilterValue

func (i FontlistItem) FilterValue() string

func (FontlistItem) Title

func (i FontlistItem) Title() string

type ItemDelegate

type ItemDelegate struct{}

func (ItemDelegate) Height

func (d ItemDelegate) Height() int

func (ItemDelegate) Render

func (d ItemDelegate) Render(
	w io.Writer,
	m list.Model,
	index int,
	listItem list.Item,
)

func (ItemDelegate) Spacing

func (d ItemDelegate) Spacing() int

func (ItemDelegate) Update

func (d ItemDelegate) Update(_ tea.Msg, _ *list.Model) tea.Cmd

type Notification

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

func NewNotification

func NewNotification() (n *Notification)

func (*Notification) Resize

func (n *Notification) Resize(width, height int)

func (*Notification) View

func (n *Notification) View() (v string)

Jump to

Keyboard shortcuts

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