toc

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Overview

toc

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChapterLocation

type ChapterLocation struct {
	Name      string
	StartLine int
}

key is the chapter name, int the is the its line id

type ChapterLocationList

type ChapterLocationList []ChapterLocation

func (ChapterLocationList) Fields

func (clist ChapterLocationList) Fields() []string

func (ChapterLocationList) Filter

func (clist ChapterLocationList) Filter(kw string, i int)

func (ChapterLocationList) Item

func (clist ChapterLocationList) Item(id int) []string

func (ChapterLocationList) Len

func (clist ChapterLocationList) Len() int

func (ChapterLocationList) Less

func (clist ChapterLocationList) Less(i, j int) bool

func (ChapterLocationList) Sort

func (clist ChapterLocationList) Sort(field int, ascend bool)

func (ChapterLocationList) Swap

func (clist ChapterLocationList) Swap(i, j int)

type GOTOChapterHandler

type GOTOChapterHandler func(name string, lineid int)

type ToCDialog

type ToCDialog struct {
	fyne.Window
	// contains filtered or unexported fields
}

func NewToCDialog

func NewToCDialog(val [][]byte, parent fyne.Window, h GOTOChapterHandler) *ToCDialog

func (*ToCDialog) Refresh

func (tocdiag *ToCDialog) Refresh()

func (*ToCDialog) Set

func (tocdiag *ToCDialog) Set(linelist [][]byte)

func (*ToCDialog) SetSelection

func (tocdiag *ToCDialog) SetSelection(curStartline int)

Jump to

Keyboard shortcuts

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