mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
io/pointer: [API] make cursor name into a byte
Add most of the common cursors defined by different systems. Normalize cursor names to match CSS. This is API change: some cursor names have changed, and the underlying type is no longer a string. Signed-off-by: Egon Elbre <egonelbre@gmail.com>
This commit is contained in:
@@ -638,7 +638,7 @@ func TestCursorNameOp(t *testing.T) {
|
||||
event: func() []event.Event {
|
||||
widget2 = func() {
|
||||
pointer.InputOp{Tag: &h2}.Add(ops)
|
||||
pointer.CursorNameOp{Name: pointer.CursorCrossHair}.Add(ops)
|
||||
pointer.CursorNameOp{Name: pointer.CursorCrosshair}.Add(ops)
|
||||
}
|
||||
return []event.Event{
|
||||
_at(50, 50),
|
||||
@@ -648,7 +648,7 @@ func TestCursorNameOp(t *testing.T) {
|
||||
},
|
||||
}
|
||||
},
|
||||
want: pointer.CursorCrossHair,
|
||||
want: pointer.CursorCrosshair,
|
||||
},
|
||||
{label: "remove input on top while inside",
|
||||
event: func() []event.Event {
|
||||
|
||||
Reference in New Issue
Block a user