; ***************************************************************************
; copyright   : (C) 2025 by Martin Preuss
; email       : martin@libchipcard.de
;
; ***************************************************************************
; * This file is part of the project "AqHome".                              *
; * Please see toplevel file COPYING of that project for license details.   *
; ***************************************************************************

#ifndef AQH_AVR_STATICGUI_DEFS_ASM
#define AQH_AVR_STATICGUI_DEFS_ASM


; all offsets in byte size (to be used with LPM)
.equ WIN_F_OFFS_X_LO       =  0
.equ WIN_F_OFFS_X_HI       =  1
.equ WIN_F_OFFS_Y_LO       =  2
.equ WIN_F_OFFS_Y_HI       =  3
.equ WIN_F_OFFS_WIDTH_LO   =  4
.equ WIN_F_OFFS_WIDTH_HI   =  5
.equ WIN_F_OFFS_HEIGHT_LO  =  6
.equ WIN_F_OFFS_HEIGHT_HI  =  7
.equ WIN_F_SIZE            =  8

.equ COLORWIN_F_OFFS_WIN         = WIN_F_SIZE
.equ COLORWIN_F_OFFS_BG_COLOR_LO = WIN_F_SIZE
.equ COLORWIN_F_OFFS_BG_COLOR_HI = WIN_F_SIZE+1
.equ COLORWIN_F_OFFS_FG_COLOR_LO = WIN_F_SIZE+2
.equ COLORWIN_F_OFFS_FG_COLOR_HI = WIN_F_SIZE+3
.equ COLORWIN_F_SIZE             = WIN_F_SIZE+4

.equ TEXTWIN_F_OFFS_WIN         = COLORWIN_F_SIZE
.equ TEXTWIN_F_OFFS_FONT_LO     = COLORWIN_F_SIZE
.equ TEXTWIN_F_OFFS_FONT_HI     = COLORWIN_F_SIZE+1
.equ TEXTWIN_F_SIZE             = COLORWIN_F_SIZE+2



.equ WIN_OFFS_X_LO       =  0
.equ WIN_OFFS_X_HI       =  1
.equ WIN_OFFS_Y_LO       =  2
.equ WIN_OFFS_Y_HI       =  3
.equ WIN_OFFS_WIDTH_LO   =  4
.equ WIN_OFFS_WIDTH_HI   =  5
.equ WIN_OFFS_HEIGHT_LO  =  6
.equ WIN_OFFS_HEIGHT_HI  =  7
.equ WIN_OFFS_BG_COL_LO  =  8
.equ WIN_OFFS_BG_COL_HI  =  9
.equ WIN_OFFS_FG_COL_LO  = 10
.equ WIN_OFFS_FG_COL_HI  = 11
.equ WIN_OFFS_FONT_LO    = 12  ;byte address!
.equ WIN_OFFS_FONT_HI    = 13
.equ WIN_SIZE            = 14



.equ WIN_EVENT_DESTROY   = 1
.equ WIN_EVENT_SHOW      = 2
.equ WIN_EVENT_HIDE      = 3
.equ WIN_EVENT_DRAW      = 4
.equ WIN_EVENT_TIMER     = 5


#endif ; AQH_AVR_STATICGUI_DEFS_ASM

