wrap

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runes

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

func NewRunes

func NewRunes(s string) *Runes

func (*Runes) Backspace

func (r *Runes) Backspace() bool

func (*Runes) End

func (r *Runes) End()

func (*Runes) Home

func (r *Runes) Home()

func (*Runes) Insert

func (r *Runes) Insert(alpha rune)

func (*Runes) Left

func (r *Runes) Left() bool

func (*Runes) Right

func (r *Runes) Right() bool

func (*Runes) String

func (r *Runes) String() string

type Wrap

type Wrap struct {
	*Runes
	// contains filtered or unexported fields
}

func NewWrap

func NewWrap(text string, splitter splitter, edger edger) *Wrap

func (*Wrap) Backspace

func (w *Wrap) Backspace() bool

func (*Wrap) Cursor

func (w *Wrap) Cursor() (int, int)

func (*Wrap) Insert

func (w *Wrap) Insert(alpha rune)

func (*Wrap) Line

func (w *Wrap) Line(row int) string

func (*Wrap) Lines

func (w *Wrap) Lines() int

Jump to

Keyboard shortcuts

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