16 lines
326 B
Go
16 lines
326 B
Go
|
package mobile
|
||
|
|
||
|
import "fyne.io/fyne/v2"
|
||
|
|
||
|
// TouchEvent contains data relating to mobile touch events
|
||
|
type TouchEvent struct {
|
||
|
fyne.PointEvent
|
||
|
}
|
||
|
|
||
|
// Touchable represents mobile touch events that can be sent to CanvasObjects
|
||
|
type Touchable interface {
|
||
|
TouchDown(*TouchEvent)
|
||
|
TouchUp(*TouchEvent)
|
||
|
TouchCancel(*TouchEvent)
|
||
|
}
|