copymodetree

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package copymodetree provides a wrapper around a tree that supports copy mode. It assumes the underlying tree is a termshark PDML tree and allows copying the PDML substructure or a serialized representation of the substructure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ITreeAndListWalker

type ITreeAndListWalker interface {
	list.IWalker
	Decorator() tree.IDecorator
	Maker() tree.IWidgetMaker
	Tree() tree.IModel
}

type Walker

type Walker struct {
	ITreeAndListWalker

	gowid.IClipboardSelected
	// contains filtered or unexported fields
}

func NewWalker

func NewWalker(walker ITreeAndListWalker, pos tree.IPos, diff int, clip gowid.IClipboardSelected) *Walker

func (*Walker) At

func (f *Walker) At(lpos list.IWalkerPosition) gowid.IWidget

type Widget

type Widget struct {
	*list.Widget
	// contains filtered or unexported fields
}

func New

func New(l *list.Widget, clip gowid.IClipboardSelected) *Widget

Note that tree.New() returns a *list.Widget - that's how it's implemented. So this uses a list widget too.

func (*Widget) Clips

func (w *Widget) Clips(app gowid.IApp) []gowid.ICopyResult

func (*Widget) CopyModeLevels

func (w *Widget) CopyModeLevels() int

func (*Widget) Render

func (w *Widget) Render(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas

func (*Widget) SubWidget

func (w *Widget) SubWidget() gowid.IWidget

func (*Widget) UserInput

func (w *Widget) UserInput(ev interface{}, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) bool

Jump to

Keyboard shortcuts

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