mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
io/pointer: [API] rename PointerEvent.Type to Kind
Kind is the idiomatic field name for distinguishing a struct without using separate types. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+3
-3
@@ -39,15 +39,15 @@ func TestDraggable(t *testing.T) {
|
||||
r.Queue(
|
||||
pointer.Event{
|
||||
Position: f32.Pt(10, 10),
|
||||
Type: pointer.Press,
|
||||
Kind: pointer.Press,
|
||||
},
|
||||
pointer.Event{
|
||||
Position: f32.Pt(20, 10),
|
||||
Type: pointer.Move,
|
||||
Kind: pointer.Move,
|
||||
},
|
||||
pointer.Event{
|
||||
Position: f32.Pt(20, 10),
|
||||
Type: pointer.Release,
|
||||
Kind: pointer.Release,
|
||||
},
|
||||
)
|
||||
ofr := &offer{data: "hello"}
|
||||
|
||||
Reference in New Issue
Block a user