mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
io/pointer: define new Enter/Leave pointer events
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
@@ -95,6 +95,10 @@ const (
|
|||||||
Release
|
Release
|
||||||
// Move of a pointer.
|
// Move of a pointer.
|
||||||
Move
|
Move
|
||||||
|
// Pointer enters an area watching for pointer input
|
||||||
|
Enter
|
||||||
|
// Pointer leaves an area watching for pointer input
|
||||||
|
Leave
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -176,6 +180,10 @@ func (t Type) String() string {
|
|||||||
return "Cancel"
|
return "Cancel"
|
||||||
case Move:
|
case Move:
|
||||||
return "Move"
|
return "Move"
|
||||||
|
case Enter:
|
||||||
|
return "Enter"
|
||||||
|
case Leave:
|
||||||
|
return "Leave"
|
||||||
default:
|
default:
|
||||||
panic("unknown Type")
|
panic("unknown Type")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user