buffer

package
v0.0.0-...-5ea6b8d Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OpenBuffers []*Buffer
)

Functions

func Initialize

func Initialize()

Types

type Buffer

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

func (*Buffer) GetLines

func (b *Buffer) GetLines() *linearray.LineArray

func (*Buffer) LinesInDisplay

func (b *Buffer) LinesInDisplay() int

func (*Buffer) Mark

func (b *Buffer) Mark() linearray.Loc

func (*Buffer) Mode

func (b *Buffer) Mode() interfaces.EditorMode

func (*Buffer) Point

func (b *Buffer) Point() linearray.Loc

func (*Buffer) Redo

func (b *Buffer) Redo()

func (*Buffer) RestoreSnapshot

func (b *Buffer) RestoreSnapshot(snap *bufferSnapshot)

func (*Buffer) ScrollPosition

func (b *Buffer) ScrollPosition() int

func (*Buffer) SetLinesInDisplay

func (b *Buffer) SetLinesInDisplay(v int)

func (*Buffer) SetMark

func (b *Buffer) SetMark(l linearray.Loc)

func (*Buffer) SetPoint

func (b *Buffer) SetPoint(l linearray.Loc)

func (*Buffer) SetScrollPosition

func (b *Buffer) SetScrollPosition(v int)

func (*Buffer) TakeSnapshot

func (b *Buffer) TakeSnapshot(willChangeContents bool)

func (*Buffer) Undo

func (b *Buffer) Undo()

type BufferData

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

Jump to

Keyboard shortcuts

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