view

package
v0.0.0-...-bf1bca9 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LineView

func LineView() fyne.CanvasObject

func LinesFromMatrix

func LinesFromMatrix(M matrix.Matrix) []fyne.CanvasObject

LinesFromMatrix creates new canvas.Line from the matrix.

func NewLineBetween

func NewLineBetween(x1, y1, x2, y2 float64) *canvas.Line

NewLineBetween creates a new line between the given coordinates.

Types

type LineDrawer

type LineDrawer struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

LineDrawer draws lines from a matrix of position vectors.

func NewLineDrawer

func NewLineDrawer(matrix matrix.Matrix) *LineDrawer

NewLineDrawer creates a new LineDrawer with the given matrix.

func (*LineDrawer) CreateRenderer

func (l *LineDrawer) CreateRenderer() fyne.WidgetRenderer

CreateRenderer is a method that creates a renderer for the widget.

func (*LineDrawer) DragEnd

func (l *LineDrawer) DragEnd()

DragEnd is not currently needed other than to satisfy fyne.Draggable.

func (*LineDrawer) Dragged

func (l *LineDrawer) Dragged(d *fyne.DragEvent)

Dragged handles the rotation of the view.

func (*LineDrawer) Scrolled

func (l *LineDrawer) Scrolled(s *fyne.ScrollEvent)

Scrolled handles the zooming of the view.

Jump to

Keyboard shortcuts

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