Commit Graph

38 Commits

Author SHA1 Message Date
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
Elias Naur b65820c9b0 gophers: change title
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 12:46:08 +02:00
Elias Naur aa4d478172 README.md: describe the -token flag
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 12:27:57 +02:00
Elias Naur fef4969e52 README.md: add GO111MODULE=on to instructions
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 12:23:51 +02:00
Elias Naur 6d1715d239 apps/gophers: don't crash if fetching commits fail 2019-03-31 12:18:07 +02:00
Elias Naur 7c8fdf69f5 README.md: add iOS/tvOS setup instructions
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 12:12:01 +02:00
Elias Naur 9a9b69eea4 apps/gophers/ios/gophers.xcodeproject: clean up
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 11:34:46 +02:00
Elias Naur 1475fa6833 cmd/gio: don't use stderr output from the go tool
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 11:11:15 +02:00
Elias Naur e063ba704f apps/go.*: go get -u gioui.org/ui; go mod tidy
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 11:02:01 +02:00
Elias Naur ca5204fcb8 ui: fix macOS build
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 11:00:26 +02:00
Elias Naur 76b10751a6 apps: go get -u gioui.org/ui; go mod tidy
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 10:48:33 +02:00
Elias Naur 0f05231c35 all: initial import
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-03-31 10:47:22 +02:00