Compare commits

..

2 Commits

Author SHA1 Message Date
10b99f3ffb Update docs. 2019-08-15 09:32:39 -04:00
13ffbd4fa3 Add README.md 2019-08-15 09:27:04 -04:00

View File

@ -3,10 +3,6 @@
An experimental wrapper package for the Gio immediate mode GUI, designed to reduce
boilerplate.
```
go run ~/go/src/git.wow.st/gmp/giowrap/cmd/hello/main.go
```
The basic concept is to define a `Context` type that contains the Gio variables
required for layout and drawing. `Context` contains a pointer to `app.Window` and
`ui.Ops` so that, once layout is complete, you can call `Context.Draw()` to draw
@ -63,6 +59,5 @@ func (f Flex) Flexible(v float32) Widget {
giowrap.Flexible(1),
w3,
))
ctx.Draw()
...
```