widgets

package
v0.91.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

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, h int)

func (*Overlay) SendError

func (o *Overlay) SendError(err string)

func (*Overlay) SendInfo

func (o *Overlay) SendInfo(msg string)

type Queueable

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

type Status

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

func NewStatus

func NewStatus(ctx *context.Context) *Status

func (*Status) Accept

func (st *Status) Accept() (v string)

func (*Status) AddRune

func (st *Status) AddRune(r rune)

func (*Status) DelRune

func (st *Status) DelRune()

func (*Status) Enter added in v0.91.2

func (st *Status) Enter(s string)

func (*Status) Lock

func (st *Status) Lock(v bool)

func (*Status) Locked added in v0.91.1

func (st *Status) Locked() bool

func (*Status) Render

func (st *Status) Render(hs *heapset.HeapSet, x, y, w, h int) int

func (*Status) Value

func (st *Status) Value() string

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, h 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) Render

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

func (*View) Reset

func (v *View) Reset()

func (*View) ScrollDown

func (v *View) ScrollDown(delta int)

func (*View) ScrollEnd

func (v *View) ScrollEnd()

func (*View) ScrollLeft

func (v *View) ScrollLeft(delta int)

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