Documentation
¶
Overview ¶
Package arrowhead implements an arrowhead canvas object.
Index ¶
- type Arrowhead
- func (a *Arrowhead) Hide()
- func (a *Arrowhead) LeftPoint() fyne.Position
- func (a *Arrowhead) MinSize() fyne.Size
- func (a *Arrowhead) Move(p fyne.Position)
- func (a *Arrowhead) Objects() []fyne.CanvasObject
- func (a *Arrowhead) Position() fyne.Position
- func (a *Arrowhead) Refresh()
- func (a *Arrowhead) Resize(s fyne.Size)
- func (a *Arrowhead) RightPoint() fyne.Position
- func (a *Arrowhead) Show()
- func (a *Arrowhead) Size() fyne.Size
- func (a *Arrowhead) Visible() bool
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 (*Arrowhead) Objects ¶
func (a *Arrowhead) Objects() []fyne.CanvasObject
temporary hack, don't do this
func (*Arrowhead) RightPoint ¶
Click to show internal directories.
Click to hide internal directories.