buffers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferId

type BufferId uint32

type EditorBuffer

type EditorBuffer struct {
	Buffer   *buffer.Buffer
	Viewport *viewport.Viewport
	Filepath string
	Hilite   highlighting.Highlighting
	// contains filtered or unexported fields
}

func (*EditorBuffer) Cursor

func (eb *EditorBuffer) Cursor() (lineno int, col int)

func (*EditorBuffer) CursorCol

func (eb *EditorBuffer) CursorCol() int

func (*EditorBuffer) CursorLine

func (eb *EditorBuffer) CursorLine() int

func (*EditorBuffer) Id

func (eb *EditorBuffer) Id() BufferId

func (*EditorBuffer) SetCursor

func (eb *EditorBuffer) SetCursor(lineno, col int)

func (*EditorBuffer) SetHighlighting

func (eb *EditorBuffer) SetHighlighting(hi highlighting.Highlighting)

func (*EditorBuffer) Update

func (eb *EditorBuffer) Update(res buffer.ActionResult)

type EditorBuffers

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

func New

func New() EditorBuffers

func (*EditorBuffers) All

func (e *EditorBuffers) All() map[BufferId]*EditorBuffer

func (*EditorBuffers) Close

func (e *EditorBuffers) Close(bid BufferId)

func (*EditorBuffers) Get

func (e *EditorBuffers) Get(bid BufferId) *EditorBuffer

func (*EditorBuffers) Len

func (e *EditorBuffers) Len() int

func (*EditorBuffers) New

func (e *EditorBuffers) New(filepath string, b *buffer.Buffer) BufferId

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳