diff options
Diffstat (limited to 'gui.go')
-rw-r--r-- | gui.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -4,14 +4,18 @@ import ( "image/color" "log" - "gioui.org/io/system" + "gioui.org/app" "gioui.org/layout" "gioui.org/text" "gioui.org/widget/material" ) -func (l *Limox) draw(e system.FrameEvent) { - gtx := layout.NewContext(&l.Operations, e) +func (l *Limox) draw(e app.FrameEvent) { + gtx := app.NewContext(&l.Operations, e) + + if l.MainButton.Clicked(gtx) { + l.buttonCallback() + } flex := layout.Flex{ Axis: layout.Vertical, |