Help us shape the future of Go! Take the 2026 Go Developer Survey

frameBlock

package
v0.0.0-...-978d0fb Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

func New

func New() *Model

func NewWithChildren

func NewWithChildren(children []interfaces.EditorBlock) *Model

func (*Model) ActiveBlock

func (m *Model) ActiveBlock() interfaces.EditorBlock

func (*Model) Align

func (m *Model) Align() enums.Alignment

func (*Model) Children

func (m *Model) Children() []interfaces.EditorBlock

func (*Model) FocusAt

func (m *Model) FocusAt(x, y int, width int, _ int) int

func (*Model) Handle

func (*Model) Height

func (m *Model) Height() int

func (*Model) Len

func (m *Model) Len() int

func (*Model) MergeFrom

func (m *Model) MergeFrom(other interfaces.EditorBlock) int

func (*Model) Render

func (m *Model) Render(ctx contexts.BlockRenderContext) string

func (*Model) ReplaceActiveChild

func (m *Model) ReplaceActiveChild(b interfaces.EditorBlock)

func (*Model) SetAlign

func (m *Model) SetAlign(a enums.Alignment)

func (*Model) SetText

func (m *Model) SetText(s string)

func (*Model) StyleName

func (m *Model) StyleName() string

func (*Model) Text

func (m *Model) Text() string

func (*Model) Value

func (m *Model) Value(ctx contexts.BlockValueContext) string

Source Files

  • model.go
  • mouse.go
  • update.go
  • view.go

Jump to

Keyboard shortcuts

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