Elias Naur
6440fc35b7
apps: update to renamed ColorOp.Color field
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-07-05 17:17:02 +02:00
Elias Naur
e3629cc0fb
apps: update to new material api
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-07-05 17:01:12 +02:00
Elias Naur
322a95adee
apps/hello: update to latest gio api
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-07-02 20:00:28 +02:00
Elias Naur
b94119d093
cmd: update to latest API
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-06-21 17:15:44 +02:00
Elias Naur
de5d5e19f5
cmd: update to latest API
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-06-21 17:03:31 +02:00
Elias Naur
893b7f3c9f
cmd/gophers,cmd/hello: update to latest API
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-06-21 16:18:44 +02:00
Elias Naur
528a588f2e
apps/hello: update to explicit API
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-06-02 19:17:53 +02:00
Elias Naur
4513d109b1
apps/hello: fix build
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-16 19:35:02 +02:00
Elias Naur
967484ce3a
apps/hello: fix error handling
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-02 17:28:32 +02:00
Elias Naur
252e058766
all: serialize ops
...
Pros:
- Much less per-frame garbage
- Allow future preprocessing of ops while building it
- Much fewer interface calls and pointer chasing
- Allow future serialization of ops for remote rendering
Cons:
- Slightly clumsier API
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-04-27 22:19:34 +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
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