gui2: more work (vlayout doesn't work, yet).

This commit is contained in:
Martin Preuss
2026-03-09 02:08:33 +01:00
parent 92efebccf1
commit 0758579b43
11 changed files with 657 additions and 523 deletions

View File

@@ -250,16 +250,44 @@ test:
ldi r16, 0
ldi r17, 0
bigcall GuiApp_new
brcs test_ok
bigjmp DEBUG1
test_ok:
brcc DEBUG_STOP
sts guiApp, yl
sts guiApp+1, yh
bigcall GuiApp_GetRootWindow
brcc DEBUG_STOP
sts rootWindow, r18
sts rootWindow+1, r19
mov xl, r18
mov xh, r19
ldi r16, 0 ; OPTS
ldi r17, (WIDGET_PACK_FILLED<<WIDGET_PACK_HSELF0_BIT) | (WIDGET_PACK_FILLED<<WIDGET_PACK_VSELF0_BIT) ; PACK
ldi r20, LOW(RESSSOURCE_TXT_LIVINGROOM)
ldi r21, HIGH(RESSSOURCE_TXT_LIVINGROOM)
bigcall MainWindow_new
brcc DEBUG_STOP
sts mainWin1, yl
sts mainWin1+1, yh
ldd r16, Y+OBJECT_OFFS_FLAGS
sbr r16, (1<<WIDGET_FLAGS_VISIBLE_BIT) | (1<<WIDGET_FLAGS_LAYOUT_BIT) | (1<<WIDGET_FLAGS_DIRTY_BIT)
std Y+OBJECT_OFFS_FLAGS, r16
ret
DEBUG_STOP:
bigjmp DEBUG1
DEBUG_STOP2:
bigjmp DEBUG2
DEBUG_STOP3:
bigjmp DEBUG3
; ***************************************************************************
@@ -320,8 +348,10 @@ test_ok:
.dseg
guiApp: .byte 2
guiApp: .byte 2
; debug
rootWindow: .byte 2
mainWin1: .byte 2
heapStart: