From 2827f4e06382534de20cf0f41ac0b9ae56def85b Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Mon, 9 Mar 2026 18:20:51 +0100 Subject: [PATCH] gui2: added generic button class this gives child elements a button behavior. --- avr/devices/c03/test/main.asm | 24 ++ avr/modules/lcd2/gui2/base/button.asm | 343 ++++++++++++++++++++++ avr/modules/lcd2/gui2/base/guiapp.asm | 15 +- avr/modules/lcd2/gui2/base/object.asm | 4 +- avr/modules/lcd2/gui2/base/rootwindow.asm | 3 +- avr/modules/lcd2/gui2/base/widget.asm | 227 +++++++++++++- 6 files changed, 598 insertions(+), 18 deletions(-) create mode 100644 avr/modules/lcd2/gui2/base/button.asm diff --git a/avr/devices/c03/test/main.asm b/avr/devices/c03/test/main.asm index 7864097..271cbfd 100644 --- a/avr/devices/c03/test/main.asm +++ b/avr/devices/c03/test/main.asm @@ -265,11 +265,34 @@ test: ldi r20, LOW(RESSSOURCE_TXT_LIVINGROOM) ldi r21, HIGH(RESSSOURCE_TXT_LIVINGROOM) bigcall MainWindow_new + bigcall MainWindow_GetContentWidget + brcc DEBUG_STOP mov xl, yl mov xh, yh + push xl + push xh + mov xl, r18 + mov xh, r19 + + ldi r16, (1<