widgets

package
v1.96.7 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Cursor = tcell.CursorStyleBlinkingBar
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Overlay

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

func NewOverlay

func NewOverlay(ctx *context.Context) *Overlay

func (*Overlay) Close

func (o *Overlay) Close()

func (*Overlay) Listen

func (o *Overlay) Listen()

func (*Overlay) Render

func (o *Overlay) Render(x, y, w, _ int)

func (*Overlay) SendError

func (o *Overlay) SendError(err string)

func (*Overlay) SendInfo

func (o *Overlay) SendInfo(msg string)

type Prompt

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

func NewPrompt

func NewPrompt(ctx *context.Context) *Prompt

func (*Prompt) AddRune

func (p *Prompt) AddRune(r rune)

func (*Prompt) DelRune

func (p *Prompt) DelRune(b bool)

func (*Prompt) Enter

func (p *Prompt) Enter(s string)

func (*Prompt) Lock

func (p *Prompt) Lock(b bool)

func (*Prompt) Locked

func (p *Prompt) Locked() bool

func (*Prompt) Move

func (p *Prompt) Move(d int)

func (*Prompt) MoveEnd

func (p *Prompt) MoveEnd()

func (*Prompt) MoveStart

func (p *Prompt) MoveStart()

func (*Prompt) ReadLine

func (p *Prompt) ReadLine() (s string)

func (*Prompt) Render

func (p *Prompt) Render(hs *heapset.HeapSet, x, y, w, _ int) int

func (*Prompt) Value

func (p *Prompt) Value() string

type Queueable

type Queueable interface {
	Render(hs *heapset.HeapSet, x, y, w, h int) int
}

type Title

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

func NewTitle

func NewTitle(ctx *context.Context) *Title

func (*Title) Render

func (t *Title) Render(hs *heapset.HeapSet, x, y, w, _ int) int

type View

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

func NewView

func NewView(ctx *context.Context) *View

func (*View) Goto

func (v *View) Goto(s string)

func (*View) LoadState

func (v *View) LoadState(key string)

func (*View) Preserve

func (v *View) Preserve()

func (*View) Render

func (v *View) Render(hs *heapset.HeapSet, x, y, w, h int) int

func (*View) Reset

func (v *View) Reset()

func (*View) SaveState

func (v *View) SaveState(key string)

func (*View) ScrollDown

func (v *View) ScrollDown(delta int)

func (*View) ScrollEnd

func (v *View) ScrollEnd()

func (*View) ScrollLast

func (v *View) ScrollLast()

func (*View) ScrollLeft

func (v *View) ScrollLeft(delta int)

func (*View) ScrollLine

func (v *View) ScrollLine()

func (*View) ScrollRight

func (v *View) ScrollRight(delta int)

func (*View) ScrollStart

func (v *View) ScrollStart()

func (*View) ScrollTo

func (v *View) ScrollTo(x, y int)

func (*View) ScrollUp

func (v *View) ScrollUp(delta int)

Jump to

Keyboard shortcuts

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