document

package
v0.0.0-...-2b4790d Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document interface {
	fmt.Stringer

	GetTitle() string
	SetTitle(string) error

	InsertParagraph(text string, position int) error
	AddParagraph(text string) error
	EditParagraph(position int, text string) error

	InsertImage(path string, width, height int, pos int) error
	AddImage(path string, width, height int) error
	ResizeImage(pos int, width, height int) error

	GetElementsCount() int

	DeleteElement(position int) error
	Save(path string) error

	CanUndo() bool
	CanRedo() bool
	Undo() error
	Redo() error

	Release() error
	// contains filtered or unexported methods
}

func New

func New() (Document, error)

Jump to

Keyboard shortcuts

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