mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +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
|
||||
// Move of a pointer.
|
||||
Move
|
||||
// Pointer enters an area watching for pointer input
|
||||
Enter
|
||||
// Pointer leaves an area watching for pointer input
|
||||
Leave
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -176,6 +180,10 @@ func (t Type) String() string {
|
||||
return "Cancel"
|
||||
case Move:
|
||||
return "Move"
|
||||
case Enter:
|
||||
return "Enter"
|
||||
case Leave:
|
||||
return "Leave"
|
||||
default:
|
||||
panic("unknown Type")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user