/** @file * Header file for GUI engine. * * @author mandy.wu 2010/06/25 * @version 0.1 */ #ifndef __GUI_ENGINE__ #define __GUI_ENGINE__ #include #include #include "gui_eng/stddefs.h" #include "gui_eng/region.h" /* Header files of GUI engine */ #include "gui_eng/gel_struct.h" #include "gui_eng/datatypes.h" #include "gui_eng/font_common.h" #include "gui_eng/device_gdi.h" #include "gui_eng/windef.h" #include "gui_eng/wingdi.h" #include "gui_eng/windev.h" #include "gui_eng/windraw.h" #include "gui_eng/device_font.h" #include "gui_eng/cc_font.h" #include "gui_eng/font_code_translate.h" #include "gui_eng/gel_main.h" #include "gui_eng/gel_region.h" #include "gui_eng/gel_control.h" #include "gui_eng/gel_text.h" #include "gui_eng/gel_subtitle.h" #include "gui_eng/gel_drawing.h" #include "geng_setting.h" #define GUI_ENGINE_VERSION (0x6020926a) // v6.1.4.550 -> 4 8 8 12 /* This macro defines for supporting APP control update the OSD time point * Open the macro APP should call GEL_UpdateOSD to upate UI widget to panle */ #define SUPPORT_NEW_UPDATE_OSD /* OSD related definition */ #define GEL_PAL_ENTRY_NUM (256) // GEL palette entry number #define GEL_MAX_SURF_WIDTH (4096) // GEL max buffer width limitation #define GEL_MAX_SURF_HEIGHT (4096) // GEL max buffer height limitation #define GEL_SUB_MAX_TOTAL_LINE (20) // GEL subtitle max lines in each position /* Font buffer */ #define STRING_BITMAP_BUF_SIZE (300 * 1024) //300KB /* This macro defines the default region transparency (0~255) */ #define DEFAULT_TRANSPARENCY (255) //-- /* Bitmap COMMON/LOCAL flag*/ #define LOCAL_ICON_ID_MASK 0x0000 #define COMMON_ICON_ID_MASK 0x4000 #ifdef CONFIG_FONT_ENGINE_HARFBUZZ #define GET_UI_FONT_INFO(sizeIdx, pointer, bmpSize, style) \ {(UINT8*)NULL, style, sizeIdx, bmpSize}, #else #define GET_UI_FONT_INFO(sizeIdx, pointer, bmpSize, style) \ {(UINT8*)pointer, style, sizeIdx, bmpSize}, #endif #define GET_OSD_STR_INFO(arrayaddress, useLang) \ (UINT8 **)arrayaddress, /* Global variables */ /* Region */ /* Font */ extern FONTInfo_t *gUIFontRes; // Root UI font resouce extern UINT32 gDefaultStrType; extern UINT32 gUIFontStyleNum; // Font size num of the UI fontbase //extern DrawPoint_e gFontDrawPointStyle; extern const Color_t gDFontFgColor; // Deault font foreground color extern const Color_t gDFontBgColor; // Default font background color /* Others */ //-- extern IMAGEHDR *gUIBmpRes; // Root UI bitmap resource /* Animation */ #define MAX_ANIM_NUMBER (20) extern UINT32 gAnimCnt; /* Render */ #define MIN_RENDER_FPS (1) #define MAX_RENDER_FPS (15) #define DEFAULT_MARQUEE_FPS (2) #define DEFAULT_TWINKLE_PERIOD (10) //0.5s extern UINT8 gMarqueeFps; extern UINT8 gMarqueeInterval; // Update interval to record how many times to update once extern INT16 g_marqStep; #endif /* __GUI_ENGINE__ */