gocode

package
v0.0.0-...-bbcbdef Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Unlicense Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(theme *basic.Theme, driver gxui.Driver) (*Completions, *GoCode)

Types

type Applier

type Applier interface {
	Apply(text.Editor, ...text.Edit)
}

type Completions

type Completions struct {
	status.General
	// contains filtered or unexported fields
}

func (*Completions) Defaults

func (c *Completions) Defaults() []fmt.Stringer

func (*Completions) Exec

func (c *Completions) Exec() error

func (*Completions) Menu

func (c *Completions) Menu() string

func (*Completions) Name

func (c *Completions) Name() string

func (*Completions) Reset

func (c *Completions) Reset()

func (*Completions) Store

func (c *Completions) Store(elem interface{}) bind.Status

type Editor

type Editor interface {
	text.Editor
	gxui.Parent

	Carets() []int
	Size() math.Size
	Padding() math.Spacing
	LineIndex(caret int) int
	Line(idx int) mixins.TextBoxLine
	AddChild(gxui.Control) *gxui.Child
	RemoveChild(gxui.Control)
}

type GoCode

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

func (*GoCode) Cancel

func (g *GoCode) Cancel(ie text.Editor) bool

func (*GoCode) Confirm

func (g *GoCode) Confirm(ie text.Editor) bool

func (*GoCode) Moved

func (g *GoCode) Moved(ie text.Editor, carets []int)

func (*GoCode) Moving

func (g *GoCode) Moving(ie text.Editor, d caret.Direction, m caret.Mod, carets []int) (caret.Direction, caret.Mod, []int)

func (*GoCode) Name

func (g *GoCode) Name() string

func (*GoCode) OpNames

func (g *GoCode) OpNames() []string

type Projecter

type Projecter interface {
	Project() setting.Project
}

type TextController

type TextController interface {
	TextRunes() []rune
	Carets() []int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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