touch.go 326 B

123456789101112131415
  1. package mobile
  2. import "fyne.io/fyne/v2"
  3. // TouchEvent contains data relating to mobile touch events
  4. type TouchEvent struct {
  5. fyne.PointEvent
  6. }
  7. // Touchable represents mobile touch events that can be sent to CanvasObjects
  8. type Touchable interface {
  9. TouchDown(*TouchEvent)
  10. TouchUp(*TouchEvent)
  11. TouchCancel(*TouchEvent)
  12. }