box

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

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

func NewBox

func NewBox(root *mindmap.Node, app *impress.Application, pal *palette.Palette) *Box

func (*Box) AddChildNode

func (b *Box) AddChildNode(app *impress.Application) *Box

func (*Box) AddNextNode

func (b *Box) AddNextNode(app *impress.Application) *Box

func (*Box) Adopt

func (b *Box) Adopt(child *Box, beforeBox *Box)

func (*Box) Align

func (b *Box) Align(since image.Point) bool

func (*Box) Backspace

func (b *Box) Backspace() bool

func (*Box) DeEmphasize

func (b *Box) DeEmphasize()

func (*Box) DeleteNode

func (b *Box) DeleteNode() *Box

func (*Box) Down

func (b *Box) Down() *Box

func (*Box) Drag

func (b *Box) Drag(plus image.Point)

func (*Box) Draw

func (b *Box) Draw(offset image.Point)

func (*Box) DrawGrid

func (b *Box) DrawGrid(w *impress.Window, offset image.Point, other *Box)

func (*Box) Emphasize

func (b *Box) Emphasize()

func (*Box) Find

func (b *Box) Find(point image.Point) *Box

func (*Box) FindOther

func (b *Box) FindOther(point image.Point, other *Box) (*Box, *Box)

func (*Box) Fit

func (b *Box) Fit(windowSize image.Point, offset image.Point) image.Point

func (*Box) GetNodes

func (b *Box) GetNodes() *mindmap.Node

func (*Box) GetOffset

func (b *Box) GetOffset(windowSize image.Point, offset image.Point) image.Point

func (*Box) In

func (b *Box) In(point image.Point) bool

func (*Box) Insert

func (b *Box) Insert(alpha rune)

func (*Box) IsRight

func (b *Box) IsRight() bool

func (*Box) Left

func (b *Box) Left() bool

func (*Box) Point

func (b *Box) Point() image.Point

func (*Box) Raise

func (b *Box) Raise()

func (*Box) Right

func (b *Box) Right() bool

func (*Box) SetActive

func (b *Box) SetActive(isActive bool)

func (*Box) SplitLeftRight

func (b *Box) SplitLeftRight() bool

func (*Box) Up

func (b *Box) Up() *Box

type BoxCursorOption

type BoxCursorOption struct {
	text.CursorStyler
	// contains filtered or unexported fields
}

func (*BoxCursorOption) Enable

func (o *BoxCursorOption) Enable() bool

type BoxTextOption

type BoxTextOption struct {
	text.TextStyler
	// contains filtered or unexported fields
}

func (*BoxTextOption) Background

func (o *BoxTextOption) Background() color.Color

func (*BoxTextOption) Border

func (o *BoxTextOption) Border() color.Color

func (*BoxTextOption) Edge

func (o *BoxTextOption) Edge() int

func (*BoxTextOption) Size

func (o *BoxTextOption) Size() image.Point

Jump to

Keyboard shortcuts

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