arrowhead

package
v0.0.0-...-583b476 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package arrowhead implements an arrowhead canvas object.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arrowhead

type Arrowhead struct {
	// Base is used to define the "base" of the arrow, which thus defines
	// the direction which the arrow faces.
	Base fyne.Position

	// Tip is the point at which the tip of the arrow will be placed.
	Tip fyne.Position

	// StrokeWidth is the width of the arrowhead lines
	StrokeWidth float32

	// StrokeColor is the color of the arrowhead
	StrokeColor color.Color

	// Theta is the angle between the two "tails" that intersect at the
	// tip.
	Theta float32

	// Length is the length of the two "tails" that intersect at the tip.
	Length int
	// contains filtered or unexported fields
}

Arrowhead defines a canvas object which renders an arrow pointing in a particular direction.

        Left
          \
           \  Length
      Theta \
Base ------- + Tip
            /
           /
          /
        Right

func MakeArrowhead

func MakeArrowhead(base, tip fyne.Position) *Arrowhead

func (*Arrowhead) Hide

func (a *Arrowhead) Hide()

func (*Arrowhead) LeftPoint

func (a *Arrowhead) LeftPoint() fyne.Position

func (*Arrowhead) MinSize

func (a *Arrowhead) MinSize() fyne.Size

func (*Arrowhead) Move

func (a *Arrowhead) Move(p fyne.Position)

func (*Arrowhead) Objects

func (a *Arrowhead) Objects() []fyne.CanvasObject

temporary hack, don't do this

func (*Arrowhead) Position

func (a *Arrowhead) Position() fyne.Position

func (*Arrowhead) Refresh

func (a *Arrowhead) Refresh()

func (*Arrowhead) Resize

func (a *Arrowhead) Resize(s fyne.Size)

func (*Arrowhead) RightPoint

func (a *Arrowhead) RightPoint() fyne.Position

func (*Arrowhead) Show

func (a *Arrowhead) Show()

func (*Arrowhead) Size

func (a *Arrowhead) Size() fyne.Size

func (*Arrowhead) Visible

func (a *Arrowhead) Visible() bool

Jump to

Keyboard shortcuts

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