diff options
author | xengineering <me@xengineering.eu> | 2024-07-14 15:26:59 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-08-31 22:42:04 +0200 |
commit | e4f26f3844c77b8e10dc49f0db95ee34386b3c00 (patch) | |
tree | 275082270d56b49e51b73cd5f0106ca14dcdcb15 /gui.go | |
parent | 44bc88197196df41ead0ede734295cb2feac066d (diff) | |
download | limox-e4f26f3844c77b8e10dc49f0db95ee34386b3c00.tar limox-e4f26f3844c77b8e10dc49f0db95ee34386b3c00.tar.zst limox-e4f26f3844c77b8e10dc49f0db95ee34386b3c00.zip |
WIP: Update to gioui.org v0.7.1update
TODO: There is a race condition. It has to be fixed since the program
immediately crashes. Building the software is possible.
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, |