Compare commits

..

1 Commits

Author SHA1 Message Date
Greg 03740d940b Add README.md 2019-08-15 09:34:47 -04:00
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,10 @@
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
@ -59,5 +63,6 @@ func (f Flex) Flexible(v float32) Widget {
giowrap.Flexible(1),
w3,
))
ctx.Draw()
...
```