notebook

package
v0.0.0-...-54b116d Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteNotebookFile

func WriteNotebookFile(path string, notebook *Notebook) error

Types

type DeleteSelected

type DeleteSelected struct{}

type FocusSlotEvent

type FocusSlotEvent struct {
	Index int
}

type Notebook

type Notebook struct {
	Cells cell.Cells
	// contains filtered or unexported fields
}

func NewNotebook

func NewNotebook() *Notebook

func ReadNotebookFile

func ReadNotebookFile() (*Notebook, error)

func (*Notebook) AddCells

func (nb *Notebook) AddCells(cells cell.Cells)

func (*Notebook) DeleteCell

func (nb *Notebook) DeleteCell(i int)

func (*Notebook) DeleteSelected

func (nb *Notebook) DeleteSelected()

func (*Notebook) Event

func (nb *Notebook) Event(gtx *Context) interface{}

func (*Notebook) InsertCell

func (nb *Notebook) InsertCell(index int, typ cell.Type)

func (*Notebook) Layout

func (nb *Notebook) Layout(gtx *Context)

func (*Notebook) Size

func (nb *Notebook) Size() int

type SaveNotebookEvent

type SaveNotebookEvent struct{}

type Selection

type Selection struct {
	Size int
	// contains filtered or unexported fields
}

Select a range of Cells from first to last

func NewSelection

func NewSelection() *Selection

func (*Selection) Clear

func (s *Selection) Clear()

func (*Selection) Event

func (s *Selection) Event(gtx *layout.Context) []interface{}

func (*Selection) IsSelected

func (s *Selection) IsSelected(i int) bool

func (*Selection) SetFirst

func (s *Selection) SetFirst(i int)

func (*Selection) SetLast

func (s *Selection) SetLast(i int)

Jump to

Keyboard shortcuts

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