fancybutton

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FancyButton

type FancyButton struct {
	*widget.Card
	Data        interface{}
	Canvas      *canvas.Rectangle                    `json:"-"`
	OnTapped    func(*fyne.PointEvent, *FancyButton) `json:"-"`
	OnTappedSec func(*fyne.PointEvent, *FancyButton) `json:"-"`
	OnDragged   func(*fyne.DragEvent, *FancyButton)  `json:"-"`
	OnDragEnd   func(*FancyButton)                   `json:"-"`
	DragEvent   fyne.DragEvent                       `json:"-"`
}

func New

func New(content *fyne.Container, btnColor color.RGBA,
	tapped func(*fyne.PointEvent, *FancyButton), data interface{}) *FancyButton

func (*FancyButton) DragEnd

func (fb *FancyButton) DragEnd()

func (*FancyButton) Dragged

func (fb *FancyButton) Dragged(de *fyne.DragEvent)

func (*FancyButton) Tapped

func (fb *FancyButton) Tapped(p *fyne.PointEvent)

func (*FancyButton) TappedSecondary

func (fb *FancyButton) TappedSecondary(p *fyne.PointEvent)

Jump to

Keyboard shortcuts

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