Compare commits
2 Commits
03740d940b
...
10b99f3ffb
Author | SHA1 | Date | |
---|---|---|---|
10b99f3ffb | |||
13ffbd4fa3 |
|
@ -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()
|
||||
...
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user