mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
op: add package op for operations
Extract operation types from package ui into package op. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Vendored
+1
-2
@@ -7,7 +7,6 @@ import (
|
||||
"image/color"
|
||||
"log"
|
||||
|
||||
"gioui.org/ui"
|
||||
"gioui.org/app"
|
||||
"gioui.org/f32"
|
||||
"gioui.org/paint"
|
||||
@@ -25,7 +24,7 @@ func main() {
|
||||
|
||||
func loop(w *app.Window) error {
|
||||
background := color.RGBA{255, 0, 0, 255}
|
||||
ops := new(ui.Ops)
|
||||
ops := new(op.Ops)
|
||||
for {
|
||||
e := <-w.Events()
|
||||
switch e := e.(type) {
|
||||
|
||||
Reference in New Issue
Block a user