~eliasnaur/gio

widget: Clickable: added support for NumClicks

Clickable.Clicks() now returns the number of clicks.

Signed-off-by: Pierre.Curto <pierre.curto@gmail.com>
widget: make Clickable.Clicked use a pointer receiver

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/window: [wayland] move listener registration to Go

In turns out that only the listener declarations need to be in C, not
the listener registration calls.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
cmd,example: bump gio

Signed-off-by: Elias Naur <mail@eliasnaur.com>
layout: create input group for List

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/window: fix multitouch action on Android

Fixes #122

Signed-off-by: Elias Naur <mail@eliasnaur.com>
io/router: simplify pointer event routing

- Drop pointer.Event.Hit in favour of Enter/Leave events.
- Track enter/leaves for each pointer.ID (updates #122). Add test.
- Resolve grabs once.
- Get rid of scratch slice.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
io/router: add addPointerHandler convenience function

Remove a redundant call and shorten image.Rectangle literals while here.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
cmd,example: bump gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/window,app/internal/xkb: silence string(int) conversion warnings

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/egl: use nilEGLConfig to guard against int vs pointer-typed EGLConfig

Updates #121

Signed-off-by: Elias Naur <mail@eliasnaur.com>
cmd,example: bump gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/window: [macOS,iOS] reduce display link starting and stopping

Recent changes to the macOS threading exposed a problem where a
window's display link may fail to start after being started and stopped
in rapid succession.

Introduce a displayLink type that waits a while after the last stop
request before stopping its display link. That seems to be the way
other projects are using display links.

As a bonus, the new implementation avoids the potentially expensive
overhead of frequent starting and stopping the underlying OS thread.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/window: [iOS] move redraw logic to Go

We're about to move the display link to common Go code. To do that,
we need the redraw logic in Go as well.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/window: [wasm] report key modifiers for pointer events

Signed-off-by: Elias Naur <mail@eliasnaur.com>
cmd,example: bump gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/window: [X11] report key modifiers for pointer events

Fixes #120

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/window,app/internal/xkb: [Wayland] report modifiers for pointer events

Updates #120

Signed-off-by: Elias Naur <mail@eliasnaur.com>
cmd,example: bump gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/window: [macOS] avoid racy access to window width, height, scale

The macOS redraw callback is not invoked on the main thread, so its
access to window fields must be synchronized.

An alternative would be to schedule the asynchronous redraws on the main
thread, but I believe frame callbacks are performance-sensitive enough
to warrant the extra locking complexity.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
Next