3111 Commits

Author SHA1 Message Date
Elias Naur 3ad94ed20e ui/app: don't draw when not animating (Wayland)
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-25 10:02:14 +02:00
Elias Naur e0d586893d ui/app/internal/gpu: flush before drawing
And delete an unnecessary error check from Flush to make sure pending
draws are always finalized.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-25 10:01:58 +02:00
Elias Naur 47fbe56766 apps: go get gioui.org
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-17 12:46:37 +02:00
Elias Naur 8b47e2b4bf ui/app: don't use wl_touch interface v6
It's not tested, we don't need v6 capabilities and using them result
in build errors on older wayland clients:

https://www.reddit.com/r/golang/comments/b7rujg/gio_by_elias_naur_et_al_portable_immediate_mode/ejv804z/

Finally, since we request v5 of the parent wl_seat, the wl_touch instances
returned to us is capped at v5 anyway.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-17 12:42:18 +02:00
Elias Naur d4ff577259 README.md: add download link to Go
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-07 18:27:53 +02:00
Elias Naur ef20c9339f cmd/gio: drop 32-bit support for iOS
64-bit support was added in iOS 8 on iPhone 5S and newer,
32-bit support was dropped from iOS 12.

Gio is new and we have an opportunity to see if we can live without it.
We can always add 32-bit support back; it's harder to break users
later.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-06 16:37:26 +02:00
Elias Naur afa91ed942 README.md: note that the NVIDIA proprietary driver doesn't work
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-05 19:40:15 +02:00
Elias Naur f4f3f9e640 app/hello: add explicit WindowOptions, extract message, color text
Signed-off-by: Anthony Starks <ajstarks@gmail.com>
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-05 14:59:39 +02:00
Elias Naur b5d8e1cfe2 README.md: describe name and email configuration
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-05 11:27:17 +02:00
Elias Naur c20255335f README.md: point to git-send-email.io
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-05 11:10:07 +02:00
Elias Naur a876ce8a53 README.md: further clarify the mailing list description
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-03 17:02:55 +02:00
Elias Naur 31e06bd931 README.md: note that the mailing list is open to everyone
A Sourcehut account is only required for subscribing to new posts.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-03 14:57:45 +02:00
Elias Naur 23c5bbdf48 apps: go get gioui.org/ui@latest && go mod tidy
go get -u gioui.org/ui also upgrades indirect dependencies, which
we don't want.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-03 14:52:10 +02:00
Elias Naur 6f40e80bc2 apps: go get -u gioui.org/ui && go mod tidy
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-03 13:18:25 +02:00
Elias Naur b15ec53a03 ui/app: fix display link on iOS 10
For some reason, the CADisplayLink.paused property didn't work on
iOS 10 but does on iOS 12. Use addToRunLoop and removeFromRunLoop
instead.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-03 13:13:53 +02:00
Elias Naur fca780972a README.md: add note about commit message style
And move the issues section above the heavy contribution section
while we're here.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-03 12:19:16 +02:00
Wiktor Kwapisiewicz 2a99e1c955 README.md: fix git commit signoff command
Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-03 12:05:01 +02:00
Elias Naur 1096ac1938 apps/gophers: update commits page config every frame
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-02 21:46:41 +02:00
Elias Naur 962736cbbf apps/gophers: go back on CommandBack
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-02 21:06:30 +02:00
Elias Naur fc55c6ee5c ui/app: implement Command for system events
And add CommandBack for the Android back button.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-02 21:04:48 +02:00
Elias Naur 6bd5b73154 apps: go get -u gioui.org/ui && go mod tidy
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-02 19:55:53 +02:00
Elias Naur ed2590e30e ui/app,apps/gophers,apps/hello: revert NewWindow to CreateWindow
It turns out we already support multiple windows on Android: when
the activity is recreated.

This reverts commit f21b5eb1df.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-02 19:54:37 +02:00
Elias Naur 6899f96532 apps: go get -u gioui.org/ui && go mod tidy
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-02 18:59:45 +02:00
Elias Naur e7725a4fa1 apps,ui/app: delete ui/app.Window.Ack
Replace it with a dummy event send on the synchronous event channel;
a bit of cleverness for a simpler API.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-02 18:51:43 +02:00
Elias Naur abb9d291e9 ui/app: don't buffer the app event channel
We used to buffer input events to allow for batch processing
multiple events before redrawing. Now that redraws are scheduled to
run after the native event queue is empty, buffering is no longer
necessary.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-02 17:22:58 +02:00
Elias Naur 48b6a73753 all: run goimports
gioui.org/ui was renamed from gioui.org/ui/ui before the release,
but the import order wasn't changed accordingly.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-02 17:09:06 +02:00
Elias Naur fc7c5c13f4 README.md: add EGL development package to Linux requirements
Updates ~eliasnaur/gio#3

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-02 12:52:08 +02:00
Elias Naur 3b8cbc605e README.md: add missing word
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-02 12:49:04 +02:00
Elias Naur d18b6b39fe README.md: expand contributing section and add issues section
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-02 12:45:25 +02:00
Elias Naur 641c3b7279 README.md: add missing GLES dependency
Fixes ~eliasnaur/gio#3

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-02 08:38:57 +02:00
Elias Naur eaae45d87a README.md: add setup instructions for Ubuntu
And add minimum versions for Ubuntu and Fedora.

Fixes ~eliasnaur/gio/2

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-01 18:46:44 +02:00
Elias Naur 05d337d695 README.md: add Fedora instructions for installing dependencies
Updates ~eliasnaur/gio/2

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-01 18:29:22 +02:00
Elias Naur 8014de4f23 apps: add replace for gioui.org/ui to ../ui for hacking convenience
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-01 18:15:55 +02:00
Elias Naur 0c6f874379 ui/app: request unbuffered touch events on Android
Flutter and Chromium wants it, so I assume its good for us.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-01 17:35:12 +02:00
Elias Naur 1fc75d4eba apps: go get -u gioui.org/ui && go mod tidy
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-01 12:35:53 +02:00
Egon Elbre f863260514 app: replace COREVIDEO_TRUE with kCVReturnSuccess
Signed-off-by: Egon Elbre <egonelbre@gmail.com>
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-04-01 12:03:32 +02:00
Elias Naur 7a0975a516 README.md: remove errant period
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 17:45:01 +02:00
Elias Naur 740679aa39 README.md: add note about Go 1.13 and the vector renderer 2019-03-31 17:14:33 +02:00
Elias Naur 0aa04b89da README.md: clean up and fix typos
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 15:01:21 +02:00
Elias Naur c26e3b1191 apps/gophers,apps/hello: add references to gioui.org
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 14:54:58 +02:00
Elias Naur 1d91eb8557 apps/hello: comment the unusual program structure
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 14:51:21 +02:00
Elias Naur 8b2f6dbf13 ui: add doc.go
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 14:45:26 +02:00
Elias Naur 354976bb01 website: correct repository URL
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 14:17:09 +02:00
Elias Naur dde7961b7d README.md: add instructions to run the hello world program
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 14:08:41 +02:00
Elias Naur 5464fb0763 README.md: add godoc badge
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 14:01:52 +02:00
Elias Naur e61059859c apps/go.*: go get -u gioui.org/ui && go mod tidy
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 14:00:00 +02:00
Elias Naur 1d67fad0c3 ui/app,apps/gophers,apps/hello: accept nil WindowOptions in NewWindow
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 13:59:06 +02:00
Elias Naur f21b5eb1df ui/app,apps/gophers,apps/hello: replace CreateWindow with NewWindow
Gio doesn't support multiple windows anyway, so get rid of the
app.Windows channel and use NewWindow call for the mobile platforms
as well.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 13:52:14 +02:00
Elias Naur cf258f707f README.md: note that Go 1.13 is required for bitcode and tvOS support
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 13:23:21 +02:00
Elias Naur 98318abb60 apps/hello: add hello world example 2019-03-31 13:04:44 +02:00