Commit Graph

8 Commits

Author SHA1 Message Date
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 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 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 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 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 98318abb60 apps/hello: add hello world example 2019-03-31 13:04:44 +02:00