inputwidget

package
v0.0.0-...-45b0304 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

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

func New

func New() Input

func (Input) Bottom

func (i Input) Bottom() Input

func (Input) Center

func (i Input) Center() Input

func (Input) Left

func (i Input) Left() Input

func (Input) Middle

func (i Input) Middle() Input

func (Input) RenderStateful

func (i Input) RenderStateful(area bento.Rect, buffer *bento.Buffer, state *State)

func (Input) Right

func (i Input) Right() Input

func (Input) Top

func (i Input) Top() Input

func (Input) WithAlignment

func (i Input) WithAlignment(alignment bento.Alignment) Input

func (Input) WithBlock

func (i Input) WithBlock(block blockwidget.Block) Input

func (Input) WithCursorStyle

func (i Input) WithCursorStyle(style bento.Style) Input

func (Input) WithPlaceholder

func (i Input) WithPlaceholder(placeholder string) Input

func (Input) WithPlaceholderStyle

func (i Input) WithPlaceholderStyle(style bento.Style) Input

func (Input) WithPrompt

func (i Input) WithPrompt(prompt string) Input

func (Input) WithPromptStyle

func (i Input) WithPromptStyle(style bento.Style) Input

func (Input) WithVertical

func (i Input) WithVertical(flex bento.Flex) Input

type State

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

func NewState

func NewState() State

func (*State) Append

func (s *State) Append(content string)

func (*State) DeleteLine

func (s *State) DeleteLine()

func (*State) DeleteUnderCursor

func (s *State) DeleteUnderCursor()

func (*State) DeleteWordUnderCursor

func (s *State) DeleteWordUnderCursor()

func (*State) MoveCursorBegin

func (s *State) MoveCursorBegin()

func (*State) MoveCursorEnd

func (s *State) MoveCursorEnd()

func (*State) MoveCursorLeft

func (s *State) MoveCursorLeft()

func (*State) MoveCursorRight

func (s *State) MoveCursorRight()

func (*State) MoveWordLeft

func (s *State) MoveWordLeft()

func (*State) MoveWordRight

func (s *State) MoveWordRight()

func (*State) ShowCursor

func (s *State) ShowCursor(show bool)

func (*State) String

func (s *State) String() string

func (*State) TryUpdate

func (s *State) TryUpdate(msg bento.Msg) (bool, bento.Cmd)

Jump to

Keyboard shortcuts

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