Elias Naur
7aa7bb3be4
ui: rename ops to have Op suffixed, not prefixed
...
Match Go's FooError name pattern.
While we're here, rename RedrawOp to InvalidateOp.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-06-21 17:01:45 +02:00
Elias Naur
b10a6938cd
ui/app: update comment and fix typo
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-06-21 14:54:34 +02:00
Elias Naur
955fe1bc77
ui: make the reference list argument to Ops.Write variadic
...
Makes the code nicer.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-06-03 15:22:11 +02:00
Elias Naur
0d2cffe196
ui: let OpsReader keep track of references
...
Instead of exposing the entire reference slice, return the relevant
references from Next.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-06-02 19:17:53 +02:00
Elias Naur
00cb158247
ui: add Config.Sp and Config.Dp convenience methods
...
And rename Pixels to Val.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-16 19:32:47 +02:00
Elias Naur
20f55a4ad7
all: delete the ui.Op type
...
It's no longer used.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-04-27 22:27:50 +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
8b2f6dbf13
ui: add doc.go
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-03-31 14:45:26 +02:00
Elias Naur
0f05231c35
all: initial import
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-03-31 10:47:22 +02:00