mirror of
https://gitee.com/Polarix/simplegui.git
synced 2025-06-17 13:37:52 +00:00
[分支对齐] 又一批空格对齐orz
This commit is contained in:
parent
0c5646cd54
commit
166b062263
@ -112,7 +112,7 @@ void HMI_DemoCurve_RepaintText(SGUI_SCR_DEV* pstDeviceIF)
|
|||||||
SGUI_RECT stTextArea;
|
SGUI_RECT stTextArea;
|
||||||
SGUI_POINT stInnsrPos;
|
SGUI_POINT stInnsrPos;
|
||||||
SGUI_CHAR szNumberTextBuffer[12];
|
SGUI_CHAR szNumberTextBuffer[12];
|
||||||
SGUI_AREA_SIZE stTextAreaSize;
|
SGUI_AREA_SIZE stTextAreaSize;
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
/* Initialize */
|
/* Initialize */
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
|
@ -224,7 +224,7 @@ void KeyPressEventProc(void)
|
|||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
/* Variable Declaration */
|
/* Variable Declaration */
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
KEY_PRESS_EVENT stEvent;
|
KEY_PRESS_EVENT stEvent;
|
||||||
#ifdef _SIMPLE_GUI_IN_VIRTUAL_SDK_
|
#ifdef _SIMPLE_GUI_IN_VIRTUAL_SDK_
|
||||||
const SDK_KB_EVENT* pstSDKEvent;
|
const SDK_KB_EVENT* pstSDKEvent;
|
||||||
#endif // _SIMPLE_GUI_IN_VIRTUAL_SDK_
|
#endif // _SIMPLE_GUI_IN_VIRTUAL_SDK_
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
/** Description: HMI demo for menu control interface. **/
|
/** Description: HMI demo for menu control interface. **/
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Include files. =//
|
//= Include files. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
#include "DemoProc.h"
|
#include "DemoProc.h"
|
||||||
#include "SGUI_Menu.h"
|
#include "SGUI_Menu.h"
|
||||||
@ -14,7 +14,7 @@
|
|||||||
#include "Resource.h"
|
#include "Resource.h"
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Static function declaration. =//
|
//= Static function declaration. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
static HMI_ENGINE_RESULT HMI_DemoMenu_Initialize(SGUI_SCR_DEV* pstDeviceIF);
|
static HMI_ENGINE_RESULT HMI_DemoMenu_Initialize(SGUI_SCR_DEV* pstDeviceIF);
|
||||||
static HMI_ENGINE_RESULT HMI_DemoMenu_Prepare(SGUI_SCR_DEV* pstDeviceIF, const void* pstParameters);
|
static HMI_ENGINE_RESULT HMI_DemoMenu_Prepare(SGUI_SCR_DEV* pstDeviceIF, const void* pstParameters);
|
||||||
@ -23,7 +23,7 @@ static HMI_ENGINE_RESULT HMI_DemoMenu_ProcessEvent(SGUI_SCR_DEV* pstDeviceIF, co
|
|||||||
static HMI_ENGINE_RESULT HMI_DemoMenu_PostProcess(SGUI_SCR_DEV* pstDeviceIF, HMI_ENGINE_RESULT eProcResult, SGUI_INT iActionID);
|
static HMI_ENGINE_RESULT HMI_DemoMenu_PostProcess(SGUI_SCR_DEV* pstDeviceIF, HMI_ENGINE_RESULT eProcResult, SGUI_INT iActionID);
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Static variable declaration. =//
|
//= Static variable declaration. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
static SGUI_ITEMS_ITEM s_arrstMenuItems[] = { {SCR6_MENU_ITEM1, NULL},
|
static SGUI_ITEMS_ITEM s_arrstMenuItems[] = { {SCR6_MENU_ITEM1, NULL},
|
||||||
{SCR6_MENU_ITEM2, NULL},
|
{SCR6_MENU_ITEM2, NULL},
|
||||||
@ -47,7 +47,7 @@ static SGUI_MENU s_stDemoSubMenuObject = {0x00};
|
|||||||
static SGUI_MENU* s_pstActivedMenu = &s_stDemoMenuObject;
|
static SGUI_MENU* s_pstActivedMenu = &s_stDemoMenuObject;
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Global variable declaration. =//
|
//= Global variable declaration. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
HMI_SCREEN_ACTION s_stDemoMenuActions = { HMI_DemoMenu_Initialize,
|
HMI_SCREEN_ACTION s_stDemoMenuActions = { HMI_DemoMenu_Initialize,
|
||||||
HMI_DemoMenu_Prepare,
|
HMI_DemoMenu_Prepare,
|
||||||
@ -55,12 +55,12 @@ HMI_SCREEN_ACTION s_stDemoMenuActions = { HMI_DemoMenu_Initialize,
|
|||||||
HMI_DemoMenu_ProcessEvent,
|
HMI_DemoMenu_ProcessEvent,
|
||||||
HMI_DemoMenu_PostProcess
|
HMI_DemoMenu_PostProcess
|
||||||
};
|
};
|
||||||
HMI_SCREEN_OBJECT g_stHMIDemo_Menu = { HMI_SCREEN_ID_DEMO_MENU,
|
HMI_SCREEN_OBJECT g_stHMIDemo_Menu = { HMI_SCREEN_ID_DEMO_MENU,
|
||||||
&s_stDemoMenuActions
|
&s_stDemoMenuActions
|
||||||
};
|
};
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Function define. =//
|
//= Function define. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
HMI_ENGINE_RESULT HMI_DemoMenu_Initialize(SGUI_SCR_DEV* pstDeviceIF)
|
HMI_ENGINE_RESULT HMI_DemoMenu_Initialize(SGUI_SCR_DEV* pstDeviceIF)
|
||||||
{
|
{
|
||||||
@ -68,7 +68,7 @@ HMI_ENGINE_RESULT HMI_DemoMenu_Initialize(SGUI_SCR_DEV* pstDeviceIF)
|
|||||||
/* Variable Declaration */
|
/* Variable Declaration */
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
SGUI_RECT stLayout;
|
SGUI_RECT stLayout;
|
||||||
SGUI_MENU_PALETTE stPalette;
|
SGUI_MENU_PALETTE stPalette;
|
||||||
|
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
/* Initialize */
|
/* Initialize */
|
||||||
@ -77,15 +77,15 @@ HMI_ENGINE_RESULT HMI_DemoMenu_Initialize(SGUI_SCR_DEV* pstDeviceIF)
|
|||||||
stLayout.iY = 0;
|
stLayout.iY = 0;
|
||||||
stLayout.iWidth = 48;
|
stLayout.iWidth = 48;
|
||||||
stLayout.iHeight = 60;
|
stLayout.iHeight = 60;
|
||||||
#if SGUI_CONF_GRAYSCALE_DEPTH_BITS==1
|
#if SGUI_CONF_GRAYSCALE_DEPTH_BITS==1
|
||||||
stPalette.stItemBase.eBackgroundColor = 0x00;
|
stPalette.stItemBase.eBackgroundColor = 0x00;
|
||||||
stPalette.stItemBase.eTextColor = 0x01;
|
stPalette.stItemBase.eTextColor = 0x01;
|
||||||
stPalette.stItemBase.eFocusColor = 0x01;
|
stPalette.stItemBase.eFocusColor = 0x01;
|
||||||
stPalette.stItemBase.eFocusTextColor = 0x00;
|
stPalette.stItemBase.eFocusTextColor = 0x00;
|
||||||
stPalette.eBorder = 0x01;
|
stPalette.eBorder = 0x01;
|
||||||
stPalette.eDirectionIconColor = 0x01;
|
stPalette.eDirectionIconColor = 0x01;
|
||||||
#elif SGUI_CONF_GRAYSCALE_DEPTH_BITS==4 || defined(SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED)
|
#elif SGUI_CONF_GRAYSCALE_DEPTH_BITS==4 || defined(SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED)
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
stPalette.uiDepthBits = 4;
|
stPalette.uiDepthBits = 4;
|
||||||
stPalette.stItemBase.uiDepthBits = 4;
|
stPalette.stItemBase.uiDepthBits = 4;
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
@ -96,14 +96,15 @@ HMI_ENGINE_RESULT HMI_DemoMenu_Initialize(SGUI_SCR_DEV* pstDeviceIF)
|
|||||||
stPalette.eBorder = 0x0F;
|
stPalette.eBorder = 0x0F;
|
||||||
stPalette.eDirectionIconColor = 0x0F;
|
stPalette.eDirectionIconColor = 0x0F;
|
||||||
#else
|
#else
|
||||||
#error Demo only support 1bit and 4bits screen, for other gray scale bits, please add more palette or turn on color mapping.
|
#error Demo only support 1bit and 4bits screen, for other gray scale bits, please add more palette or turn on color mapping.
|
||||||
#endif // SGUI_CONF_GRAYSCALE_DEPTH_BITS
|
#endif // SGUI_CONF_GRAYSCALE_DEPTH_BITS
|
||||||
|
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
/* Process */
|
/* Process */
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
// Initialize list data.
|
// Initialize list data.
|
||||||
SGUI_SystemIF_MemorySet(&s_stDemoMenuObject, 0x00, sizeof(SGUI_MENU));
|
SGUI_SystemIF_MemorySet(&s_stDemoMenuObject, 0x00, sizeof(SGUI_MENU));
|
||||||
//Initialize list object.
|
//Initialize list object.
|
||||||
SGUI_Menu_Initialize(&s_stDemoMenuObject, &stLayout, &stPalette, SGUI_FONT_REF(FONT_8), s_arrstMenuItems, sizeof(s_arrstMenuItems)/sizeof(SGUI_ITEMS_ITEM));
|
SGUI_Menu_Initialize(&s_stDemoMenuObject, &stLayout, &stPalette, SGUI_FONT_REF(FONT_8), s_arrstMenuItems, sizeof(s_arrstMenuItems)/sizeof(SGUI_ITEMS_ITEM));
|
||||||
return HMI_RET_NORMAL;
|
return HMI_RET_NORMAL;
|
||||||
}
|
}
|
||||||
@ -138,7 +139,7 @@ HMI_ENGINE_RESULT HMI_DemoMenu_ProcessEvent(SGUI_SCR_DEV* pstDeviceIF, const HMI
|
|||||||
KEY_PRESS_EVENT* pstKeyEvent;
|
KEY_PRESS_EVENT* pstKeyEvent;
|
||||||
SGUI_INT iProcessAction;
|
SGUI_INT iProcessAction;
|
||||||
SGUI_RECT stItemArea;
|
SGUI_RECT stItemArea;
|
||||||
SGUI_MENU_PALETTE stPalette;
|
SGUI_MENU_PALETTE stPalette;
|
||||||
|
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
/* Initialize */
|
/* Initialize */
|
||||||
@ -146,15 +147,15 @@ HMI_ENGINE_RESULT HMI_DemoMenu_ProcessEvent(SGUI_SCR_DEV* pstDeviceIF, const HMI
|
|||||||
eProcessResult = HMI_RET_NORMAL;
|
eProcessResult = HMI_RET_NORMAL;
|
||||||
pstKeyEvent = (KEY_PRESS_EVENT*)pstEvent;
|
pstKeyEvent = (KEY_PRESS_EVENT*)pstEvent;
|
||||||
iProcessAction = HMI_DEMO_PROC_NO_ACT;
|
iProcessAction = HMI_DEMO_PROC_NO_ACT;
|
||||||
#if SGUI_CONF_GRAYSCALE_DEPTH_BITS==1
|
#if SGUI_CONF_GRAYSCALE_DEPTH_BITS==1
|
||||||
stPalette.stItemBase.eBackgroundColor = 0x00;
|
stPalette.stItemBase.eBackgroundColor = 0x00;
|
||||||
stPalette.stItemBase.eTextColor = 0x01;
|
stPalette.stItemBase.eTextColor = 0x01;
|
||||||
stPalette.stItemBase.eFocusColor = 0x01;
|
stPalette.stItemBase.eFocusColor = 0x01;
|
||||||
stPalette.stItemBase.eFocusTextColor = 0x00;
|
stPalette.stItemBase.eFocusTextColor = 0x00;
|
||||||
stPalette.eBorder = 0x01;
|
stPalette.eBorder = 0x01;
|
||||||
stPalette.eDirectionIconColor = 0x01;
|
stPalette.eDirectionIconColor = 0x01;
|
||||||
#elif SGUI_CONF_GRAYSCALE_DEPTH_BITS==4 || defined(SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED)
|
#elif SGUI_CONF_GRAYSCALE_DEPTH_BITS==4 || defined(SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED)
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
stPalette.uiDepthBits = 4;
|
stPalette.uiDepthBits = 4;
|
||||||
stPalette.stItemBase.uiDepthBits = 4;
|
stPalette.stItemBase.uiDepthBits = 4;
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
@ -162,11 +163,12 @@ HMI_ENGINE_RESULT HMI_DemoMenu_ProcessEvent(SGUI_SCR_DEV* pstDeviceIF, const HMI
|
|||||||
stPalette.stItemBase.eTextColor = 0x0F;
|
stPalette.stItemBase.eTextColor = 0x0F;
|
||||||
stPalette.stItemBase.eFocusColor = 0x08;
|
stPalette.stItemBase.eFocusColor = 0x08;
|
||||||
stPalette.stItemBase.eFocusTextColor = 0x0F;
|
stPalette.stItemBase.eFocusTextColor = 0x0F;
|
||||||
stPalette.eBorder = 0x0F;
|
stPalette.eBorder = 0x0F;
|
||||||
stPalette.eDirectionIconColor = 0x0F;
|
stPalette.eDirectionIconColor = 0x0F;
|
||||||
#else
|
#else
|
||||||
#error Demo only support 1bit and 4bits screen, for other gray scale bits, please add more palette or turn on color mapping.
|
#error Demo only support 1bit and 4bits screen, for other gray scale bits, please add more palette or turn on color mapping.
|
||||||
#endif // SGUI_CONF_GRAYSCALE_DEPTH_BITS
|
#endif // SGUI_CONF_GRAYSCALE_DEPTH_BITS
|
||||||
|
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
/* Process */
|
/* Process */
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
|
15425
DemoProc/src/Resource.c
15425
DemoProc/src/Resource.c
File diff suppressed because it is too large
Load Diff
@ -6,7 +6,7 @@
|
|||||||
/** Description: HMI demo for graph interface. **/
|
/** Description: HMI demo for graph interface. **/
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Include files. =//
|
//= Include files. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
#include "DemoProc.h"
|
#include "DemoProc.h"
|
||||||
#include "Resource.h"
|
#include "Resource.h"
|
||||||
@ -16,7 +16,7 @@
|
|||||||
#include "SGUI_IconResource.h"
|
#include "SGUI_IconResource.h"
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= User Macro definition. =//
|
//= User Macro definition. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
#define TEXT_VARIABLE_LENGTH (20)
|
#define TEXT_VARIABLE_LENGTH (20)
|
||||||
|
|
||||||
@ -27,17 +27,17 @@
|
|||||||
#define VARIABLE_BOX_NUMBER_POSY (24)
|
#define VARIABLE_BOX_NUMBER_POSY (24)
|
||||||
#define VARIABLE_BOX_TEXT_POSY (40)
|
#define VARIABLE_BOX_TEXT_POSY (40)
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Static function declaration. =//
|
//= Static function declaration. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
static HMI_ENGINE_RESULT HMI_DemoVariableBox_Initialize(SGUI_SCR_DEV* pstDeviceIF);
|
static HMI_ENGINE_RESULT HMI_DemoVariableBox_Initialize(SGUI_SCR_DEV* pstDeviceIF);
|
||||||
static HMI_ENGINE_RESULT HMI_DemoVariableBox_Prepare(SGUI_SCR_DEV* pstDeviceIF, const void* pstParameters);
|
static HMI_ENGINE_RESULT HMI_DemoVariableBox_Prepare(SGUI_SCR_DEV* pstDeviceIF, const void* pstParameters);
|
||||||
static HMI_ENGINE_RESULT HMI_DemoVariableBox_RefreshScreen(SGUI_SCR_DEV* pstDeviceIF, const void* pstParameters);
|
static HMI_ENGINE_RESULT HMI_DemoVariableBox_RefreshScreen(SGUI_SCR_DEV* pstDeviceIF, const void* pstParameters);
|
||||||
static HMI_ENGINE_RESULT HMI_DemoVariableBox_ProcessEvent(SGUI_SCR_DEV* pstDeviceIF, const HMI_EVENT_BASE* pstEvent, SGUI_INT* piActionID);
|
static HMI_ENGINE_RESULT HMI_DemoVariableBox_ProcessEvent(SGUI_SCR_DEV* pstDeviceIF, const HMI_EVENT_BASE* pstEvent, SGUI_INT* piActionID);
|
||||||
static HMI_ENGINE_RESULT HMI_DemoVariableBox_PostProcess(SGUI_SCR_DEV* pstDeviceIF, HMI_ENGINE_RESULT eProcResult, SGUI_INT iActionID);
|
static HMI_ENGINE_RESULT HMI_DemoVariableBox_PostProcess(SGUI_SCR_DEV* pstDeviceIF, HMI_ENGINE_RESULT eProcResult, SGUI_INT iActionID);
|
||||||
static void HMI_DemoVariableBox_DrawFrame(SGUI_SCR_DEV* pstDeviceIF, SGUI_SZSTR szTitle);
|
static void HMI_DemoVariableBox_DrawFrame(SGUI_SCR_DEV* pstDeviceIF, SGUI_SZSTR szTitle);
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Static variable declaration. =//
|
//= Static variable declaration. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
static SGUI_NUM_VARBOX_STRUCT s_stNumberVariableBox = {0x00};
|
static SGUI_NUM_VARBOX_STRUCT s_stNumberVariableBox = {0x00};
|
||||||
static SGUI_CHAR s_szTextVariableBuffer[TEXT_VARIABLE_LENGTH+1] = {"ABCDEFG1234567890"};
|
static SGUI_CHAR s_szTextVariableBuffer[TEXT_VARIABLE_LENGTH+1] = {"ABCDEFG1234567890"};
|
||||||
@ -56,14 +56,14 @@ HMI_SCREEN_ACTION s_stDemoVariableBoxActions = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Global variable declaration. =//
|
//= Global variable declaration. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
HMI_SCREEN_OBJECT g_stHMIDemo_VariableBox = { HMI_SCREEN_ID_DEMO_VARIABLE_BOX,
|
HMI_SCREEN_OBJECT g_stHMIDemo_VariableBox = { HMI_SCREEN_ID_DEMO_VARIABLE_BOX,
|
||||||
&s_stDemoVariableBoxActions
|
&s_stDemoVariableBoxActions
|
||||||
};
|
};
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Function define. =//
|
//= Function define. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
HMI_ENGINE_RESULT HMI_DemoVariableBox_Initialize(SGUI_SCR_DEV* pstDeviceIF)
|
HMI_ENGINE_RESULT HMI_DemoVariableBox_Initialize(SGUI_SCR_DEV* pstDeviceIF)
|
||||||
{
|
{
|
||||||
@ -91,22 +91,22 @@ HMI_ENGINE_RESULT HMI_DemoVariableBox_Initialize(SGUI_SCR_DEV* pstDeviceIF)
|
|||||||
stNumBoxInitParam.stLayout.iY = VARIABLE_BOX_NUMBER_POSY+2;
|
stNumBoxInitParam.stLayout.iY = VARIABLE_BOX_NUMBER_POSY+2;
|
||||||
stNumBoxInitParam.stLayout.iWidth = pstDeviceIF->stSize.iWidth - (VARIABLE_BOX_POSX*2)-4;
|
stNumBoxInitParam.stLayout.iWidth = pstDeviceIF->stSize.iWidth - (VARIABLE_BOX_POSX*2)-4;
|
||||||
stNumBoxInitParam.stLayout.iHeight = SGUI_FONT(FONT_8).iHeight;
|
stNumBoxInitParam.stLayout.iHeight = SGUI_FONT(FONT_8).iHeight;
|
||||||
#if SGUI_CONF_GRAYSCALE_DEPTH_BITS==1
|
#if SGUI_CONF_GRAYSCALE_DEPTH_BITS==1
|
||||||
stNumBoxInitParam.stPalette.stFocus.eBackgroundColor = 0x01;
|
stNumBoxInitParam.stPalette.stFocus.eBackgroundColor = 0x01;
|
||||||
stNumBoxInitParam.stPalette.stFocus.eTextColor = 0x00;
|
stNumBoxInitParam.stPalette.stFocus.eTextColor = 0x00;
|
||||||
stNumBoxInitParam.stPalette.stNormal.eBackgroundColor = 0x00;
|
stNumBoxInitParam.stPalette.stNormal.eBackgroundColor = 0x00;
|
||||||
stNumBoxInitParam.stPalette.stNormal.eTextColor = 0x01;
|
stNumBoxInitParam.stPalette.stNormal.eTextColor = 0x01;
|
||||||
#elif SGUI_CONF_GRAYSCALE_DEPTH_BITS==4 || defined(SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED)
|
#elif SGUI_CONF_GRAYSCALE_DEPTH_BITS==4 || defined(SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED)
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
stNumBoxInitParam.stPalette.uiDepthBits = 4;
|
stNumBoxInitParam.stPalette.uiDepthBits = 4;
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
stNumBoxInitParam.stPalette.stFocus.eBackgroundColor = 0x0F;
|
stNumBoxInitParam.stPalette.stFocus.eBackgroundColor = 0x0F;
|
||||||
stNumBoxInitParam.stPalette.stFocus.eTextColor = 0x00;
|
stNumBoxInitParam.stPalette.stFocus.eTextColor = 0x00;
|
||||||
stNumBoxInitParam.stPalette.stNormal.eBackgroundColor = 0x00;
|
stNumBoxInitParam.stPalette.stNormal.eBackgroundColor = 0x00;
|
||||||
stNumBoxInitParam.stPalette.stNormal.eTextColor = 0x0F;
|
stNumBoxInitParam.stPalette.stNormal.eTextColor = 0x0F;
|
||||||
#else
|
#else
|
||||||
#error Demo only support 1bit and 4bits screen, for other gray scale bits, please add more palette or turn on color mapping.
|
#error Demo only support 1bit and 4bits screen, for other gray scale bits, please add more palette or turn on color mapping.
|
||||||
#endif // SGUI_CONF_GRAYSCALE_DEPTH_BITS
|
#endif // SGUI_CONF_GRAYSCALE_DEPTH_BITS
|
||||||
|
|
||||||
SGUI_NumberVariableBox_Initialize(&s_stNumberVariableBox, &stNumBoxInitParam);
|
SGUI_NumberVariableBox_Initialize(&s_stNumberVariableBox, &stNumBoxInitParam);
|
||||||
|
|
||||||
@ -117,21 +117,21 @@ HMI_ENGINE_RESULT HMI_DemoVariableBox_Initialize(SGUI_SCR_DEV* pstDeviceIF)
|
|||||||
stTextBoxInitParam.stLayout.iWidth = pstDeviceIF->stSize.iWidth-(VARIABLE_BOX_POSX*2)-4;
|
stTextBoxInitParam.stLayout.iWidth = pstDeviceIF->stSize.iWidth-(VARIABLE_BOX_POSX*2)-4;
|
||||||
stTextBoxInitParam.stLayout.iHeight = SGUI_FONT(FONT_12).iHeight;
|
stTextBoxInitParam.stLayout.iHeight = SGUI_FONT(FONT_12).iHeight;
|
||||||
#if SGUI_CONF_GRAYSCALE_DEPTH_BITS==1
|
#if SGUI_CONF_GRAYSCALE_DEPTH_BITS==1
|
||||||
stTextBoxInitParam.stPalette.stNormal.eBackgroundColor = 0x00;
|
stTextBoxInitParam.stPalette.stNormal.eBackgroundColor = 0x00;
|
||||||
stTextBoxInitParam.stPalette.stNormal.eTextColor = 0x01;
|
stTextBoxInitParam.stPalette.stNormal.eTextColor = 0x01;
|
||||||
stTextBoxInitParam.stPalette.stFocus.eBackgroundColor = 0x01;
|
stTextBoxInitParam.stPalette.stFocus.eBackgroundColor = 0x01;
|
||||||
stTextBoxInitParam.stPalette.stFocus.eTextColor = 0x00;
|
stTextBoxInitParam.stPalette.stFocus.eTextColor = 0x00;
|
||||||
#elif SGUI_CONF_GRAYSCALE_DEPTH_BITS==4 || defined(SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED)
|
#elif SGUI_CONF_GRAYSCALE_DEPTH_BITS==4 || defined(SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED)
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
stTextBoxInitParam.stPalette.uiDepthBits = 4;
|
stTextBoxInitParam.stPalette.uiDepthBits = 4;
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
stTextBoxInitParam.stPalette.stNormal.eBackgroundColor = 0x00;
|
stTextBoxInitParam.stPalette.stNormal.eBackgroundColor = 0x00;
|
||||||
stTextBoxInitParam.stPalette.stNormal.eTextColor = 0x0F;
|
stTextBoxInitParam.stPalette.stNormal.eTextColor = 0x0F;
|
||||||
stTextBoxInitParam.stPalette.stFocus.eBackgroundColor = 0x0F;
|
stTextBoxInitParam.stPalette.stFocus.eBackgroundColor = 0x0F;
|
||||||
stTextBoxInitParam.stPalette.stFocus.eTextColor = 0x00;
|
stTextBoxInitParam.stPalette.stFocus.eTextColor = 0x00;
|
||||||
#else
|
#else
|
||||||
#error Demo only support 1bit and 4bits screen, for other gray scale bits, please add more palette or turn on color mapping.
|
#error Demo only support 1bit and 4bits screen, for other gray scale bits, please add more palette or turn on color mapping.
|
||||||
#endif // SGUI_CONF_GRAYSCALE_DEPTH_BITS
|
#endif // SGUI_CONF_GRAYSCALE_DEPTH_BITS
|
||||||
stTextBoxInitParam.sTextLengthMax = TEXT_VARIABLE_LENGTH;
|
stTextBoxInitParam.sTextLengthMax = TEXT_VARIABLE_LENGTH;
|
||||||
|
|
||||||
SGUI_TextVariableBox_Initialize(&s_stTextVariableBox, &stTextBoxInitParam, s_szTextVariableBuffer);
|
SGUI_TextVariableBox_Initialize(&s_stTextVariableBox, &stTextBoxInitParam, s_szTextVariableBuffer);
|
||||||
@ -144,27 +144,27 @@ HMI_ENGINE_RESULT HMI_DemoVariableBox_Prepare(SGUI_SCR_DEV* pstDeviceIF, const v
|
|||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
/* Variable Declaration */
|
/* Variable Declaration */
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
SGUI_NOTICE_BOX stNoticeBox;
|
SGUI_NOTICE_BOX stNoticeBox;
|
||||||
|
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
/* Initialize */
|
/* Initialize */
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
stNoticeBox.pstIcon = &SGUI_RES_ICON_INFORMATION_16;
|
stNoticeBox.pstIcon = &SGUI_RES_ICON_INFORMATION_16;
|
||||||
stNoticeBox.cszNoticeText = s_szHelpNoticeText;
|
stNoticeBox.cszNoticeText = s_szHelpNoticeText;
|
||||||
#if SGUI_CONF_GRAYSCALE_DEPTH_BITS==1
|
#if SGUI_CONF_GRAYSCALE_DEPTH_BITS==1
|
||||||
stNoticeBox.stPalette.eEdgeColor = 0x01;
|
stNoticeBox.stPalette.eEdgeColor = 0x01;
|
||||||
stNoticeBox.stPalette.eFillColor = 0x00;
|
stNoticeBox.stPalette.eFillColor = 0x00;
|
||||||
stNoticeBox.stPalette.eTextColor = 0x01;
|
stNoticeBox.stPalette.eTextColor = 0x01;
|
||||||
#elif SGUI_CONF_GRAYSCALE_DEPTH_BITS==4 || defined(SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED)
|
#elif SGUI_CONF_GRAYSCALE_DEPTH_BITS==4 || defined(SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED)
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
stNoticeBox.stPalette.uiDepthBits = 4;
|
stNoticeBox.stPalette.uiDepthBits = 4;
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
stNoticeBox.stPalette.eEdgeColor = 0x0A;
|
stNoticeBox.stPalette.eEdgeColor = 0x0A;
|
||||||
stNoticeBox.stPalette.eFillColor = 0x01;
|
stNoticeBox.stPalette.eFillColor = 0x01;
|
||||||
stNoticeBox.stPalette.eTextColor = 0x0F;
|
stNoticeBox.stPalette.eTextColor = 0x0F;
|
||||||
#else
|
#else
|
||||||
#error Demo only support 1bit and 4bits screen, for other gray scale bits, please add more palette or turn on color mapping.
|
#error Demo only support 1bit and 4bits screen, for other gray scale bits, please add more palette or turn on color mapping.
|
||||||
#endif // SGUI_CONF_GRAYSCALE_DEPTH_BITS
|
#endif // SGUI_CONF_GRAYSCALE_DEPTH_BITS
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
/* Process */
|
/* Process */
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
@ -181,23 +181,23 @@ HMI_ENGINE_RESULT HMI_DemoVariableBox_Prepare(SGUI_SCR_DEV* pstDeviceIF, const v
|
|||||||
|
|
||||||
HMI_ENGINE_RESULT HMI_DemoVariableBox_RefreshScreen(SGUI_SCR_DEV* pstDeviceIF, const void* pstParameters)
|
HMI_ENGINE_RESULT HMI_DemoVariableBox_RefreshScreen(SGUI_SCR_DEV* pstDeviceIF, const void* pstParameters)
|
||||||
{
|
{
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
/* Process */
|
/* Process */
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
// Draw frame
|
// Draw frame
|
||||||
HMI_DemoVariableBox_DrawFrame(pstDeviceIF, (SGUI_SZSTR)s_szFrameTitle);
|
HMI_DemoVariableBox_DrawFrame(pstDeviceIF, (SGUI_SZSTR)s_szFrameTitle);
|
||||||
// Draw number box
|
// Draw number box
|
||||||
SGUI_Basic_DrawRectangle(pstDeviceIF, VARIABLE_BOX_POSX, VARIABLE_BOX_NUMBER_POSY,
|
SGUI_Basic_DrawRectangle(pstDeviceIF, VARIABLE_BOX_POSX, VARIABLE_BOX_NUMBER_POSY,
|
||||||
s_stNumberVariableBox.stParam.stLayout.iWidth+4, s_stNumberVariableBox.stParam.stLayout.iHeight+4,
|
s_stNumberVariableBox.stParam.stLayout.iWidth+4, s_stNumberVariableBox.stParam.stLayout.iHeight+4,
|
||||||
0x0A, SGUI_COLOR_BKGCLR);
|
0x0A, SGUI_COLOR_BKGCLR);
|
||||||
s_stNumberVariableBox.stData.iFocused = (s_uiFocusedFlag==0)?SGUI_TRUE:SGUI_FALSE;
|
s_stNumberVariableBox.stData.iFocused = (s_uiFocusedFlag==0)?SGUI_TRUE:SGUI_FALSE;
|
||||||
SGUI_NumberVariableBox_Repaint(pstDeviceIF, &s_stNumberVariableBox);
|
SGUI_NumberVariableBox_Repaint(pstDeviceIF, &s_stNumberVariableBox);
|
||||||
// Draw text box
|
// Draw text box
|
||||||
s_stTextVariableBox.stData.iFocused = (s_uiFocusedFlag==0)?SGUI_FALSE:SGUI_TRUE;
|
s_stTextVariableBox.stData.iFocused = (s_uiFocusedFlag==0)?SGUI_FALSE:SGUI_TRUE;
|
||||||
SGUI_Basic_DrawRectangle(pstDeviceIF, VARIABLE_BOX_POSX, VARIABLE_BOX_TEXT_POSY,
|
SGUI_Basic_DrawRectangle(pstDeviceIF, VARIABLE_BOX_POSX, VARIABLE_BOX_TEXT_POSY,
|
||||||
s_stTextVariableBox.stParam.stLayout.iWidth+4, s_stTextVariableBox.stParam.stLayout.iHeight+4,
|
s_stTextVariableBox.stParam.stLayout.iWidth+4, s_stTextVariableBox.stParam.stLayout.iHeight+4,
|
||||||
0x0A, SGUI_COLOR_BKGCLR);
|
0x0A, SGUI_COLOR_BKGCLR);
|
||||||
SGUI_TextVariableBox_Repaint(pstDeviceIF, &s_stTextVariableBox);
|
SGUI_TextVariableBox_Repaint(pstDeviceIF, &s_stTextVariableBox);
|
||||||
|
|
||||||
return HMI_RET_NORMAL;
|
return HMI_RET_NORMAL;
|
||||||
}
|
}
|
||||||
@ -207,7 +207,7 @@ HMI_ENGINE_RESULT HMI_DemoVariableBox_ProcessEvent(SGUI_SCR_DEV* pstDeviceIF, co
|
|||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
/* Variable Declaration */
|
/* Variable Declaration */
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
HMI_ENGINE_RESULT eProcessResult;
|
HMI_ENGINE_RESULT eProcessResult;
|
||||||
SGUI_UINT16 uiKeyValue;
|
SGUI_UINT16 uiKeyValue;
|
||||||
KEY_PRESS_EVENT* pstKeyEvent;
|
KEY_PRESS_EVENT* pstKeyEvent;
|
||||||
SGUI_INT iProcessAction;
|
SGUI_INT iProcessAction;
|
||||||
@ -222,7 +222,7 @@ HMI_ENGINE_RESULT HMI_DemoVariableBox_ProcessEvent(SGUI_SCR_DEV* pstDeviceIF, co
|
|||||||
/* Process */
|
/* Process */
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
if(s_uiAutoConfirmTimer > 0)
|
if(s_uiAutoConfirmTimer > 0)
|
||||||
{
|
{
|
||||||
if(EVENT_TYPE_ACTION == pstEvent->iType)
|
if(EVENT_TYPE_ACTION == pstEvent->iType)
|
||||||
{
|
{
|
||||||
if(EVENT_ID_KEY_PRESS == pstEvent->iID)
|
if(EVENT_ID_KEY_PRESS == pstEvent->iID)
|
||||||
@ -246,18 +246,18 @@ HMI_ENGINE_RESULT HMI_DemoVariableBox_ProcessEvent(SGUI_SCR_DEV* pstDeviceIF, co
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Redraw screen if time out.
|
// Redraw screen if time out.
|
||||||
if(0 == s_uiAutoConfirmTimer)
|
if(0 == s_uiAutoConfirmTimer)
|
||||||
{
|
{
|
||||||
eProcessResult = HMI_DemoVariableBox_RefreshScreen(pstDeviceIF, NULL);
|
eProcessResult = HMI_DemoVariableBox_RefreshScreen(pstDeviceIF, NULL);
|
||||||
RTCTimerEnable(false);
|
RTCTimerEnable(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(EVENT_ID_KEY_PRESS == pstEvent->iID)
|
if(EVENT_ID_KEY_PRESS == pstEvent->iID)
|
||||||
{
|
{
|
||||||
pstKeyEvent = (KEY_PRESS_EVENT*)pstEvent;
|
pstKeyEvent = (KEY_PRESS_EVENT*)pstEvent;
|
||||||
uiKeyValue = KEY_CODE_VALUE(pstKeyEvent->Data.uiKeyValue);
|
uiKeyValue = KEY_CODE_VALUE(pstKeyEvent->Data.uiKeyValue);
|
||||||
|
|
||||||
switch(uiKeyValue)
|
switch(uiKeyValue)
|
||||||
@ -345,10 +345,10 @@ HMI_ENGINE_RESULT HMI_DemoVariableBox_ProcessEvent(SGUI_SCR_DEV* pstDeviceIF, co
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(NULL != piActionID)
|
if(NULL != piActionID)
|
||||||
{
|
{
|
||||||
*piActionID = iProcessAction;
|
*piActionID = iProcessAction;
|
||||||
}
|
}
|
||||||
|
@ -49,15 +49,15 @@ SGUI_PTR SGUI_SystemIF_Allocate(SGUI_SIZE sSize);
|
|||||||
void SGUI_SystemIF_Free(SGUI_PTR pFreePointer);
|
void SGUI_SystemIF_Free(SGUI_PTR pFreePointer);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SGUI_SystemIF_MemoryCopy(DEST, SOURCE, SIZE) \
|
#define SGUI_SystemIF_MemoryCopy(DEST, SOURCE, SIZE) \
|
||||||
(memcpy(DEST, SOURCE, SIZE))
|
(memcpy(DEST, SOURCE, SIZE))
|
||||||
#define SGUI_SystemIF_MemorySet(PTR, VAL, SIZE) \
|
#define SGUI_SystemIF_MemorySet(PTR, VAL, SIZE) \
|
||||||
(memset(PTR, VAL, SIZE))
|
(memset(PTR, VAL, SIZE))
|
||||||
#define SGUI_SystemIF_StringLength(/* SGUI_CSZSTR */STR) \
|
#define SGUI_SystemIF_StringLength(/* SGUI_CSZSTR */STR) \
|
||||||
((NULL == (STR))?0:(strlen((STR))))
|
((NULL == (STR))?0:(strlen((STR))))
|
||||||
#define SGUI_SystemIF_StringCopy(/* SGUI_SZSTR */DEST, /* SGUI_CSZSTR */SRC) \
|
#define SGUI_SystemIF_StringCopy(/* SGUI_SZSTR */DEST, /* SGUI_CSZSTR */SRC) \
|
||||||
(strcpy((DEST), (SRC)))
|
(strcpy((DEST), (SRC)))
|
||||||
#define SGUI_SystemIF_StringLengthCopy(/* SGUI_SZSTR */DEST, /* SGUI_CSZSTR */SRC, /* SGUI_SIZE */SIZE) \
|
#define SGUI_SystemIF_StringLengthCopy(/* SGUI_SZSTR */DEST, /* SGUI_CSZSTR */SRC, /* SGUI_SIZE */SIZE) \
|
||||||
(strncpy((DEST), (SRC), (SIZE)))
|
(strncpy((DEST), (SRC), (SIZE)))
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -1,35 +1,35 @@
|
|||||||
#ifndef _INCLUDE_SGUI_ITEMS_BASE_H_
|
#ifndef _INCLUDE_SGUI_ITEMS_BASE_H_
|
||||||
#define _INCLUDE_SGUI_ITEMS_BASE_H_
|
#define _INCLUDE_SGUI_ITEMS_BASE_H_
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Include files. =//
|
//= Include files. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
#include "SGUI_Common.h"
|
#include "SGUI_Common.h"
|
||||||
#include "SGUI_Basic.h"
|
#include "SGUI_Basic.h"
|
||||||
#include "SGUI_Text.h"
|
#include "SGUI_Text.h"
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= User Macro definition. =//
|
//= User Macro definition. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
#define ITEM_EDGE_WIDTH (1)
|
#define ITEM_EDGE_WIDTH (1)
|
||||||
#define ITEM_HEIGHT(FONT) ((FONT)->iHeight+(ITEM_EDGE_WIDTH*2))
|
#define ITEM_HEIGHT(FONT) ((FONT)->iHeight+(ITEM_EDGE_WIDTH*2))
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Data type definition. =//
|
//= Data type definition. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
typedef struct {
|
typedef struct {
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
SGUI_UINT8 uiDepthBits;
|
SGUI_UINT8 uiDepthBits;
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
SGUI_COLOR eTextColor;
|
SGUI_COLOR eTextColor;
|
||||||
SGUI_COLOR eFocusTextColor;
|
SGUI_COLOR eFocusTextColor;
|
||||||
SGUI_COLOR eBackgroundColor;
|
SGUI_COLOR eBackgroundColor;
|
||||||
SGUI_COLOR eFocusColor;
|
SGUI_COLOR eFocusColor;
|
||||||
} SGUI_ITEMS_BASE_PALETTE;
|
} SGUI_ITEMS_BASE_PALETTE;
|
||||||
|
|
||||||
typedef struct _ST_SGUI_ITEMS_ITEM_
|
typedef struct _ST_SGUI_ITEMS_ITEM_
|
||||||
{
|
{
|
||||||
SGUI_CSZSTR cszLabelText; // This pointer points to a character array constant
|
SGUI_CSZSTR cszLabelText; // This pointer points to a character array constant
|
||||||
SGUI_SZSTR szVariableText; // This pointer points to a character array variable, this member will be used first if existed.
|
SGUI_SZSTR szVariableText; // This pointer points to a character array variable, this member will be used first if existed.
|
||||||
struct _ST_SGUI_ITEMS_ITEM_* pstPrev;
|
struct _ST_SGUI_ITEMS_ITEM_* pstPrev;
|
||||||
struct _ST_SGUI_ITEMS_ITEM_* pstNext;
|
struct _ST_SGUI_ITEMS_ITEM_* pstNext;
|
||||||
}SGUI_ITEMS_ITEM;
|
}SGUI_ITEMS_ITEM;
|
||||||
@ -43,7 +43,7 @@ typedef struct
|
|||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
SGUI_RECT stLayout;
|
SGUI_RECT stLayout;
|
||||||
SGUI_ITEMS_BASE_PALETTE stPalette;
|
SGUI_ITEMS_BASE_PALETTE stPalette;
|
||||||
SGUI_ITEMS_ITEM* pstFirstItem; // Read only
|
SGUI_ITEMS_ITEM* pstFirstItem; // Read only
|
||||||
SGUI_ITEMS_ITEM* pstLastItem;
|
SGUI_ITEMS_ITEM* pstLastItem;
|
||||||
SGUI_INT iCount;
|
SGUI_INT iCount;
|
||||||
@ -52,11 +52,11 @@ typedef struct
|
|||||||
SGUI_ITEM_SELECTION stVisibleEnd; // Read only
|
SGUI_ITEM_SELECTION stVisibleEnd; // Read only
|
||||||
SGUI_INT iVisibleItems;
|
SGUI_INT iVisibleItems;
|
||||||
SGUI_INT iItemPaintOffset;
|
SGUI_INT iItemPaintOffset;
|
||||||
const SGUI_FONT_RES* pstFontRes;
|
const SGUI_FONT_RES* pstFontRes;
|
||||||
}SGUI_ITEMS_BASE;
|
}SGUI_ITEMS_BASE;
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Public function declaration. =//
|
//= Public function declaration. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
void SGUI_ItemsBase_Initialize(SGUI_ITEMS_BASE* pstObj, const SGUI_RECT* cpstLayout, const SGUI_ITEMS_BASE_PALETTE* cpstPalette, const SGUI_FONT_RES* pstFontRes, SGUI_ITEMS_ITEM* pstItemsData, SGUI_INT iItemsCount);
|
void SGUI_ItemsBase_Initialize(SGUI_ITEMS_BASE* pstObj, const SGUI_RECT* cpstLayout, const SGUI_ITEMS_BASE_PALETTE* cpstPalette, const SGUI_FONT_RES* pstFontRes, SGUI_ITEMS_ITEM* pstItemsData, SGUI_INT iItemsCount);
|
||||||
SGUI_ITEMS_ITEM* SGUI_ItemsBase_JumpItem(SGUI_ITEMS_ITEM* pstBaseItem, SGUI_INT iSteps);
|
SGUI_ITEMS_ITEM* SGUI_ItemsBase_JumpItem(SGUI_ITEMS_ITEM* pstBaseItem, SGUI_INT iSteps);
|
||||||
@ -81,7 +81,7 @@ void SGUI_ItemsBase_Selecte(SGUI_ITEMS_BASE* pstObj, SGUI_INT iIndex);
|
|||||||
(&((OBJ)->stVisibleEnd))
|
(&((OBJ)->stVisibleEnd))
|
||||||
SGUI_ITEMS_ITEM* SGUI_ItemsBase_RemoveItem(SGUI_ITEMS_BASE* pstObj, SGUI_INT iRemoveIndex);
|
SGUI_ITEMS_ITEM* SGUI_ItemsBase_RemoveItem(SGUI_ITEMS_BASE* pstObj, SGUI_INT iRemoveIndex);
|
||||||
SGUI_ITEMS_ITEM* SGUI_ItemsBase_InsertItem(SGUI_ITEMS_BASE* pstObj, SGUI_ITEMS_ITEM* pstNewItem, SGUI_INT iIndex);
|
SGUI_ITEMS_ITEM* SGUI_ItemsBase_InsertItem(SGUI_ITEMS_BASE* pstObj, SGUI_ITEMS_ITEM* pstNewItem, SGUI_INT iIndex);
|
||||||
SGUI_BOOL SGUI_ItemsBase_CanScrollUp(SGUI_ITEMS_BASE* pstObj);
|
SGUI_BOOL SGUI_ItemsBase_CanScrollUp(SGUI_ITEMS_BASE* pstObj);
|
||||||
SGUI_BOOL SGUI_ItemsBase_CanScrollDown(SGUI_ITEMS_BASE* pstObj);
|
SGUI_BOOL SGUI_ItemsBase_CanScrollDown(SGUI_ITEMS_BASE* pstObj);
|
||||||
|
|
||||||
#endif // _INCLUDE_SGUI_ITEMS_BASE_H_
|
#endif // _INCLUDE_SGUI_ITEMS_BASE_H_
|
||||||
|
@ -1,34 +1,34 @@
|
|||||||
#ifndef __INCLUDE_GUI_NOTICE_H__
|
#ifndef __INCLUDE_GUI_NOTICE_H__
|
||||||
#define __INCLUDE_GUI_NOTICE_H__
|
#define __INCLUDE_GUI_NOTICE_H__
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Include files. =//
|
//= Include files. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
#include "SGUI_Common.h"
|
#include "SGUI_Common.h"
|
||||||
#include "SGUI_Basic.h"
|
#include "SGUI_Basic.h"
|
||||||
#include "SGUI_Text.h"
|
#include "SGUI_Text.h"
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Data type definition. =//
|
//= Data type definition. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
SGUI_UINT8 uiDepthBits;
|
SGUI_UINT8 uiDepthBits;
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
SGUI_COLOR eEdgeColor;
|
SGUI_COLOR eEdgeColor;
|
||||||
SGUI_COLOR eFillColor;
|
SGUI_COLOR eFillColor;
|
||||||
SGUI_COLOR eTextColor;
|
SGUI_COLOR eTextColor;
|
||||||
}SGUI_NOTICE_PALETTE;
|
}SGUI_NOTICE_PALETTE;
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
SGUI_CSZSTR cszNoticeText;
|
SGUI_CSZSTR cszNoticeText;
|
||||||
const SGUI_BMP_RES* pstIcon;
|
const SGUI_BMP_RES* pstIcon;
|
||||||
SGUI_RECT stLayout;
|
SGUI_RECT stLayout;
|
||||||
SGUI_NOTICE_PALETTE stPalette;
|
SGUI_NOTICE_PALETTE stPalette;
|
||||||
}SGUI_NOTICE_BOX;
|
}SGUI_NOTICE_BOX;
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Public function declaration. =//
|
//= Public function declaration. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
SGUI_SIZE SGUI_Notice_Repaint(SGUI_SCR_DEV* pstDeviceIF, SGUI_NOTICE_BOX* pstObject, const SGUI_FONT_RES* pstFontRes, SGUI_INT uiTextOffset);
|
SGUI_SIZE SGUI_Notice_Repaint(SGUI_SCR_DEV* pstDeviceIF, SGUI_NOTICE_BOX* pstObject, const SGUI_FONT_RES* pstFontRes, SGUI_INT uiTextOffset);
|
||||||
void SGUI_Notice_FitArea(SGUI_SCR_DEV* pstDeviceIF, SGUI_RECT* pstFitArea);
|
void SGUI_Notice_FitArea(SGUI_SCR_DEV* pstDeviceIF, SGUI_RECT* pstFitArea);
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
#ifndef __INCLUDE_GUI_PROCESSBAR_H__
|
#ifndef __INCLUDE_GUI_PROCESSBAR_H__
|
||||||
#define __INCLUDE_GUI_PROCESSBAR_H__
|
#define __INCLUDE_GUI_PROCESSBAR_H__
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Include files. =//
|
//= Include files. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
#include "SGUI_Common.h"
|
#include "SGUI_Common.h"
|
||||||
#include "SGUI_Basic.h"
|
#include "SGUI_Basic.h"
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Data type definition. =//
|
//= Data type definition. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
@ -19,20 +19,20 @@ typedef enum
|
|||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
SGUI_UINT8 uiDepthBits;
|
SGUI_UINT8 uiDepthBits;
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
SGUI_COLOR eProcessBarColor;
|
SGUI_COLOR eProcessBarColor;
|
||||||
SGUI_COLOR eEdgeColor;
|
SGUI_COLOR eEdgeColor;
|
||||||
SGUI_COLOR eBackgroundColor;
|
SGUI_COLOR eBackgroundColor;
|
||||||
} SGUI_PROCBAR_PALETTE;
|
} SGUI_PROCBAR_PALETTE;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
SGUI_RECT stLayout;
|
SGUI_RECT stLayout;
|
||||||
SGUI_UINT32 sMaxValue;
|
SGUI_UINT32 sMaxValue;
|
||||||
SGUI_PROCBAR_DIRECTION eDirection;
|
SGUI_PROCBAR_DIRECTION eDirection;
|
||||||
SGUI_PROCBAR_PALETTE stPalette;
|
SGUI_PROCBAR_PALETTE stPalette;
|
||||||
}SGUI_PROCBAR_PARAMETER;
|
}SGUI_PROCBAR_PARAMETER;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@ -47,7 +47,7 @@ typedef struct
|
|||||||
}SGUI_PROCBAR_STRUCT;
|
}SGUI_PROCBAR_STRUCT;
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Public function declaration. =//
|
//= Public function declaration. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
void SGUI_ProcessBar_Repaint(SGUI_SCR_DEV* pstDeviceIF, SGUI_PROCBAR_STRUCT *pProcessBarData);
|
void SGUI_ProcessBar_Repaint(SGUI_SCR_DEV* pstDeviceIF, SGUI_PROCBAR_STRUCT *pProcessBarData);
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
#ifndef __INCLUDE_GUI_SCROLLBAR__
|
#ifndef __INCLUDE_GUI_SCROLLBAR__
|
||||||
#define __INCLUDE_GUI_SCROLLBAR__
|
#define __INCLUDE_GUI_SCROLLBAR__
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Include files. =//
|
//= Include files. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
#include "SGUI_Basic.h"
|
#include "SGUI_Basic.h"
|
||||||
#include "SGUI_Common.h"
|
#include "SGUI_Common.h"
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Data type definition. =//
|
//= Data type definition. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
@ -17,20 +17,20 @@ typedef enum
|
|||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
SGUI_UINT8 uiDepthBits;
|
SGUI_UINT8 uiDepthBits;
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
SGUI_COLOR eHandleColor;
|
SGUI_COLOR eHandleColor;
|
||||||
SGUI_COLOR eEdgeColor;
|
SGUI_COLOR eEdgeColor;
|
||||||
SGUI_COLOR eBackgroundColor;
|
SGUI_COLOR eBackgroundColor;
|
||||||
} SGUI_SCROLLBAR_PALETTE;
|
} SGUI_SCROLLBAR_PALETTE;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
SGUI_RECT stLayout;
|
SGUI_RECT stLayout;
|
||||||
SGUI_SIZE sMaxValue;
|
SGUI_SIZE sMaxValue;
|
||||||
SGUI_SCROLLBAR_DIRECTION eDirection;
|
SGUI_SCROLLBAR_DIRECTION eDirection;
|
||||||
SGUI_SCROLLBAR_PALETTE stPalette;
|
SGUI_SCROLLBAR_PALETTE stPalette;
|
||||||
}SGUI_SCROLLBAR_PARAM;
|
}SGUI_SCROLLBAR_PARAM;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@ -45,7 +45,7 @@ typedef struct
|
|||||||
}SGUI_SCROLLBAR_STRUCT;
|
}SGUI_SCROLLBAR_STRUCT;
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Public function declaration. =//
|
//= Public function declaration. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
void SGUI_ScrollBar_Initialize(SGUI_SCROLLBAR_STRUCT* pstObj, const SGUI_SCROLLBAR_PARAM* pcstInitParam);
|
void SGUI_ScrollBar_Initialize(SGUI_SCROLLBAR_STRUCT* pstObj, const SGUI_SCROLLBAR_PARAM* pcstInitParam);
|
||||||
#define SGUI_ScrollBar_SetMax(OBJ, MAX) \
|
#define SGUI_ScrollBar_SetMax(OBJ, MAX) \
|
||||||
|
@ -2,25 +2,25 @@
|
|||||||
#define __INCLUDE_GUI_UTILITY_H__
|
#define __INCLUDE_GUI_UTILITY_H__
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Include files. =//
|
//= Include files. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
#include "SGUI_Common.h"
|
#include "SGUI_Common.h"
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= User Macro definition. =//
|
//= User Macro definition. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
// Character Utilities
|
// Character Utilities
|
||||||
#define SGUI_ISDIGIT(C) (((C>='0')&&(C<='9'))?true:false)
|
#define SGUI_ISDIGIT(C) (((C>='0')&&(C<='9'))?true:false)
|
||||||
#define SGUI_ISALPHA(C) ((((C>='A')&&(C<='Z'))||((C>='a')&&(C<='z')))?true:false)
|
#define SGUI_ISALPHA(C) ((((C>='A')&&(C<='Z'))||((C>='a')&&(C<='z')))?true:false)
|
||||||
#define SGUI_ISHEXDIGIT(C) ((((C>='A')&&(C<='F'))||((C>='a')&&(C<='f'))||((C>='0')&&(C<='9')))?true:false)
|
#define SGUI_ISHEXDIGIT(C) ((((C>='A')&&(C<='F'))||((C>='a')&&(C<='f'))||((C>='0')&&(C<='9')))?true:false)
|
||||||
#define SGUI_ISUPPER(C) (((C>='A')&&(C<='Z'))?true:false)
|
#define SGUI_ISUPPER(C) (((C>='A')&&(C<='Z'))?true:false)
|
||||||
#define SGUI_TOUPPER(C) (SGUI_ISUPPER(C)?(C):(C-32))
|
#define SGUI_TOUPPER(C) (SGUI_ISUPPER(C)?(C):(C-32))
|
||||||
// Variable Utilities
|
// Variable Utilities
|
||||||
#define SGUI_SWAP(A, B) {A=A^B; B=A^B; A=A^B;}
|
#define SGUI_SWAP(A, B) {A=A^B; B=A^B; A=A^B;}
|
||||||
#define SGUI_MAXCOLOR(D) (1<<(D))-1
|
#define SGUI_MAXCOLOR(D) (1<<(D))-1
|
||||||
#define SGUI_MAX_OF(A, B) (A>B?A:B)
|
#define SGUI_MAX_OF(A, B) (A>B?A:B)
|
||||||
#define SGUI_MIN_OF(A, B) (A<B?A:B)
|
#define SGUI_MIN_OF(A, B) (A<B?A:B)
|
||||||
#define LAYOUT(POBJ) ((POBJ)->stParam.stLayout)
|
#define LAYOUT(POBJ) ((POBJ)->stParam.stLayout)
|
||||||
// Curve Utilities
|
// Curve Utilities
|
||||||
#define RANGE_SIZE(RANGE) ((RANGE).iMax-(RANGE).iMin+1)
|
#define RANGE_SIZE(RANGE) ((RANGE).iMax-(RANGE).iMin+1)
|
||||||
// Rectangle Utilities
|
// Rectangle Utilities
|
||||||
@ -33,63 +33,63 @@
|
|||||||
#define RECT_VALID_WIDTH(DATA, POS) ((RECT_X_START(POS)>0)?RECT_WIDTH(DATA):(RECT_WIDTH(DATA)+RECT_X_START(POS)))
|
#define RECT_VALID_WIDTH(DATA, POS) ((RECT_X_START(POS)>0)?RECT_WIDTH(DATA):(RECT_WIDTH(DATA)+RECT_X_START(POS)))
|
||||||
#define RECT_VALID_HEIGHT(DATA, POS) ((RECT_Y_START(POS)>0)?RECT_HEIGHT(DATA):(RECT_HEIGHT(DATA)+RECT_Y_START(POS)))
|
#define RECT_VALID_HEIGHT(DATA, POS) ((RECT_Y_START(POS)>0)?RECT_HEIGHT(DATA):(RECT_HEIGHT(DATA)+RECT_Y_START(POS)))
|
||||||
// Bitmap Utilities
|
// Bitmap Utilities
|
||||||
#define SGUI_BMP_RESOURCE_DECLARE(NAME) extern const SGUI_BMP_RES NAME
|
#define SGUI_BMP_RESOURCE_DECLARE(NAME) extern const SGUI_BMP_RES NAME
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
#define SGUI_BMP_RESOURCE_DEFINE(NAME, W, H, D, FGP, ...) const SGUI_BYTE NAME##DATA[] = {__VA_ARGS__};\
|
#define SGUI_BMP_RESOURCE_DEFINE(NAME, W, H, D, FGP, ...) const SGUI_BYTE NAME##DATA[] = {__VA_ARGS__};\
|
||||||
const SGUI_BMP_RES NAME = {W, H, D, FGP, NAME##DATA}
|
const SGUI_BMP_RES NAME = {W, H, D, FGP, NAME##DATA}
|
||||||
#else
|
#else
|
||||||
#define SGUI_BMP_RESOURCE_DEFINE(NAME, W, H, FGP, ...) const SGUI_BYTE NAME##DATA[] = {__VA_ARGS__};\
|
#define SGUI_BMP_RESOURCE_DEFINE(NAME, W, H, FGP, ...) const SGUI_BYTE NAME##DATA[] = {__VA_ARGS__};\
|
||||||
const SGUI_BMP_RES NAME = {W, H, FGP, NAME##DATA}
|
const SGUI_BMP_RES NAME = {W, H, FGP, NAME##DATA}
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
// Font Utilities
|
// Font Utilities
|
||||||
#define SGUI_FONT(NAME) SGUI_FONT_##NAME
|
#define SGUI_FONT(NAME) SGUI_FONT_##NAME
|
||||||
#define SGUI_FONT_REF(NAME) &SGUI_FONT(NAME)
|
#define SGUI_FONT_REF(NAME) &SGUI_FONT(NAME)
|
||||||
#define SGUI_FONT_RESOURCE_DECLARE(NAME) extern const SGUI_FONT_RES SGUI_FONT(NAME)
|
#define SGUI_FONT_RESOURCE_DECLARE(NAME) extern const SGUI_FONT_RES SGUI_FONT(NAME)
|
||||||
|
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
#define SGUI_INTERNAL_MONOSPACE_FONT_RESOURCE_DEFINE(NAME,WIDTH,HEIGHT,DEPTH,BLOCKSIZE,DECODER,INDEXMAPPER,SCANMODE,...) \
|
#define SGUI_INTERNAL_MONOSPACE_FONT_RESOURCE_DEFINE(NAME,WIDTH,HEIGHT,DEPTH,BLOCKSIZE,DECODER,INDEXMAPPER,SCANMODE,...) \
|
||||||
static void SGUI_Resource_GetBitmap_##NAME(SGUI_BMP_RES* pBitmapData,SGUI_UINT32 uiCode,SGUI_BOOL bDryRun);\
|
static void SGUI_Resource_GetBitmap_##NAME(SGUI_BMP_RES* pBitmapData,SGUI_UINT32 uiCode,SGUI_BOOL bDryRun);\
|
||||||
const SGUI_BYTE DATA_##NAME[]={__VA_ARGS__};\
|
const SGUI_BYTE DATA_##NAME[]={__VA_ARGS__};\
|
||||||
const SGUI_FONT_RES SGUI_FONT_##NAME={HEIGHT,DEPTH,SGUI_Resource_GetBitmap_##NAME,DECODER};\
|
const SGUI_FONT_RES SGUI_FONT_##NAME={HEIGHT,DEPTH,SGUI_Resource_GetBitmap_##NAME,DECODER};\
|
||||||
static void SGUI_Resource_GetBitmap_##NAME(SGUI_BMP_RES* pBitmapData,SGUI_UINT32 uiCode,SGUI_BOOL bDryRun)\
|
static void SGUI_Resource_GetBitmap_##NAME(SGUI_BMP_RES* pBitmapData,SGUI_UINT32 uiCode,SGUI_BOOL bDryRun)\
|
||||||
{\
|
{\
|
||||||
SGUI_INT iCharIndex = INDEXMAPPER(uiCode);\
|
SGUI_INT iCharIndex = INDEXMAPPER(uiCode);\
|
||||||
if(NULL != pBitmapData) {\
|
if(NULL != pBitmapData) {\
|
||||||
pBitmapData->iHeight = SGUI_FONT_##NAME.iHeight;\
|
pBitmapData->iHeight = SGUI_FONT_##NAME.iHeight;\
|
||||||
pBitmapData->iWidth = WIDTH;\
|
pBitmapData->iWidth = WIDTH;\
|
||||||
pBitmapData->uiDepthBits = SGUI_FONT_##NAME.uiDepthBits;\
|
pBitmapData->uiDepthBits = SGUI_FONT_##NAME.uiDepthBits;\
|
||||||
if(!bDryRun) {\
|
if(!bDryRun) {\
|
||||||
pBitmapData->fnGetPixel = SCANMODE;\
|
pBitmapData->fnGetPixel = SCANMODE;\
|
||||||
pBitmapData->pData = DATA_##NAME + iCharIndex*BLOCKSIZE;\
|
pBitmapData->pData = DATA_##NAME + iCharIndex*BLOCKSIZE;\
|
||||||
}\
|
}\
|
||||||
}\
|
}\
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define SGUI_INTERNAL_MONOSPACE_FONT_RESOURCE_DEFINE(NAME,WIDTH,HEIGHT,BLOCKSIZE,DECODER,INDEXMAPPER,SCANMODE,...) \
|
#define SGUI_INTERNAL_MONOSPACE_FONT_RESOURCE_DEFINE(NAME,WIDTH,HEIGHT,BLOCKSIZE,DECODER,INDEXMAPPER,SCANMODE,...) \
|
||||||
static void SGUI_Resource_GetBitmap_##NAME(SGUI_BMP_RES* pBitmapData,SGUI_UINT32 uiCode,SGUI_BOOL bDryRun);\
|
static void SGUI_Resource_GetBitmap_##NAME(SGUI_BMP_RES* pBitmapData,SGUI_UINT32 uiCode,SGUI_BOOL bDryRun);\
|
||||||
const SGUI_BYTE DATA_##NAME[]={__VA_ARGS__};\
|
const SGUI_BYTE DATA_##NAME[]={__VA_ARGS__};\
|
||||||
const SGUI_FONT_RES SGUI_FONT_##NAME={HEIGHT,SGUI_Resource_GetBitmap_##NAME,DECODER};\
|
const SGUI_FONT_RES SGUI_FONT_##NAME={HEIGHT,SGUI_Resource_GetBitmap_##NAME,DECODER};\
|
||||||
static void SGUI_Resource_GetBitmap_##NAME(SGUI_BMP_RES* pBitmapData,SGUI_UINT32 uiCode,SGUI_BOOL bDryRun)\
|
static void SGUI_Resource_GetBitmap_##NAME(SGUI_BMP_RES* pBitmapData,SGUI_UINT32 uiCode,SGUI_BOOL bDryRun)\
|
||||||
{\
|
{\
|
||||||
SGUI_INT iCharIndex = INDEXMAPPER(uiCode);\
|
SGUI_INT iCharIndex = INDEXMAPPER(uiCode);\
|
||||||
if(NULL != pBitmapData) {\
|
if(NULL != pBitmapData) {\
|
||||||
pBitmapData->iHeight = SGUI_FONT_##NAME.iHeight;\
|
pBitmapData->iHeight = SGUI_FONT_##NAME.iHeight;\
|
||||||
pBitmapData->iWidth = WIDTH;\
|
pBitmapData->iWidth = WIDTH;\
|
||||||
if(!bDryRun) {\
|
if(!bDryRun) {\
|
||||||
pBitmapData->fnGetPixel = SCANMODE;\
|
pBitmapData->fnGetPixel = SCANMODE;\
|
||||||
pBitmapData->pData = DATA_##NAME + iCharIndex*BLOCKSIZE;\
|
pBitmapData->pData = DATA_##NAME + iCharIndex*BLOCKSIZE;\
|
||||||
}\
|
}\
|
||||||
}\
|
}\
|
||||||
}
|
}
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
|
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Public function declaration. =//
|
//= Public function declaration. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
void SGUI_Common_AdaptDisplayInfo(SGUI_RECT* pstDisplayArea, SGUI_POINT* pstInnerPos);
|
void SGUI_Common_AdaptDisplayInfo(SGUI_RECT* pstDisplayArea, SGUI_POINT* pstInnerPos);
|
||||||
SGUI_INT SGUI_Common_IntegerToStringWithDecimalPoint(SGUI_INT iInteger, SGUI_INT iDecimalPlaces, SGUI_SZSTR pszStringBuffer, SGUI_INT iAlignment, SGUI_CHAR cFillCharacter);
|
SGUI_INT SGUI_Common_IntegerToStringWithDecimalPoint(SGUI_INT iInteger, SGUI_INT iDecimalPlaces, SGUI_SZSTR pszStringBuffer, SGUI_INT iAlignment, SGUI_CHAR cFillCharacter);
|
||||||
SGUI_SIZE SGUI_Common_IntegerToString(SGUI_INT iInteger, SGUI_SZSTR pszStringBuffer, SGUI_UINT uiBase, SGUI_INT iAlignment, SGUI_CHAR cFillCharacter);
|
SGUI_SIZE SGUI_Common_IntegerToString(SGUI_INT iInteger, SGUI_SZSTR pszStringBuffer, SGUI_UINT uiBase, SGUI_INT iAlignment, SGUI_CHAR cFillCharacter);
|
||||||
SGUI_UINT SGUI_Common_ConvertStringToUnsignedInteger(SGUI_SZSTR szString, SGUI_CHAR** ppcEndPointer, SGUI_UINT uiBase);
|
SGUI_UINT SGUI_Common_ConvertStringToUnsignedInteger(SGUI_SZSTR szString, SGUI_CHAR** ppcEndPointer, SGUI_UINT uiBase);
|
||||||
SGUI_INT SGUI_Common_ConvertStringToInteger(SGUI_SZSTR szString, SGUI_CHAR** ppcEndPointer, SGUI_UINT uiBase);
|
SGUI_INT SGUI_Common_ConvertStringToInteger(SGUI_SZSTR szString, SGUI_CHAR** ppcEndPointer, SGUI_UINT uiBase);
|
||||||
|
|
||||||
#endif // __INCLUDE_GUI_UTILITY_H__
|
#endif // __INCLUDE_GUI_UTILITY_H__
|
||||||
|
@ -46,358 +46,358 @@ static SGUI_UINT32 SGUI_Resource_IndexMapper_Default(SGUI_UINT32 uiCode);
|
|||||||
//= 5 Pix mono space font library. =//
|
//= 5 Pix mono space font library. =//
|
||||||
//======================================================================//
|
//======================================================================//
|
||||||
SGUI_INTERNAL_MONOSPACE_FONT_RESOURCE_DEFINE(
|
SGUI_INTERNAL_MONOSPACE_FONT_RESOURCE_DEFINE(
|
||||||
MiniNum,4,5,
|
MiniNum,4,5,
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
1,
|
1,
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
4,
|
4,
|
||||||
SGUI_TEXT_DECODER_ASCII,
|
SGUI_TEXT_DECODER_ASCII,
|
||||||
SGUI_Resource_IndexMapper_MiniNum,
|
SGUI_Resource_IndexMapper_MiniNum,
|
||||||
SGUI_BMP_SCAN_MODE_DHPV,
|
SGUI_BMP_SCAN_MODE_DHPV,
|
||||||
0x1F, 0x11, 0x1F, 0x00, //0
|
0x1F, 0x11, 0x1F, 0x00, //0
|
||||||
0x00, 0x1F, 0x00, 0x00, //1
|
0x00, 0x1F, 0x00, 0x00, //1
|
||||||
0x1D, 0x15, 0x17, 0x00, //2
|
0x1D, 0x15, 0x17, 0x00, //2
|
||||||
0x15, 0x15, 0x1F, 0x00, //3
|
0x15, 0x15, 0x1F, 0x00, //3
|
||||||
0x07, 0x04, 0x1F, 0x00, //4
|
0x07, 0x04, 0x1F, 0x00, //4
|
||||||
0x17, 0x15, 0x1D, 0x00, //5
|
0x17, 0x15, 0x1D, 0x00, //5
|
||||||
0x1F, 0x15, 0x1D, 0x00, //6
|
0x1F, 0x15, 0x1D, 0x00, //6
|
||||||
0x19, 0x05, 0x03, 0x00, //7
|
0x19, 0x05, 0x03, 0x00, //7
|
||||||
0x1F, 0x15, 0x1F, 0x00, //8
|
0x1F, 0x15, 0x1F, 0x00, //8
|
||||||
0x17, 0x15, 0x1F, 0x00, //9
|
0x17, 0x15, 0x1F, 0x00, //9
|
||||||
0x00, 0x10, 0x00, 0x00, //.
|
0x00, 0x10, 0x00, 0x00, //.
|
||||||
0x04, 0x0E, 0x04, 0x00, //+
|
0x04, 0x0E, 0x04, 0x00, //+
|
||||||
0x04, 0x04, 0x04, 0x00, //-
|
0x04, 0x04, 0x04, 0x00, //-
|
||||||
0x0A, 0x04, 0x0A, 0x00, //**
|
0x0A, 0x04, 0x0A, 0x00, //**
|
||||||
0x18, 0x04, 0x03, 0x00, ///
|
0x18, 0x04, 0x03, 0x00, ///
|
||||||
0x00, 0x0E, 0x11, 0x00, //(
|
0x00, 0x0E, 0x11, 0x00, //(
|
||||||
0x11, 0x0E, 0x00, 0x00, //)
|
0x11, 0x0E, 0x00, 0x00, //)
|
||||||
0x00, 0x00, 0x00, 0x00, //space
|
0x00, 0x00, 0x00, 0x00, //space
|
||||||
0x1A, 0x04, 0x0B, 0x00, //%
|
0x1A, 0x04, 0x0B, 0x00, //%
|
||||||
0x0A, 0x0A, 0x0A, 0x00, //=
|
0x0A, 0x0A, 0x0A, 0x00, //=
|
||||||
);
|
);
|
||||||
//======================================================================//
|
//======================================================================//
|
||||||
//= 8 Pix mono space font library. //
|
//= 8 Pix mono space font library. //
|
||||||
//======================================================================//
|
//======================================================================//
|
||||||
SGUI_INTERNAL_MONOSPACE_FONT_RESOURCE_DEFINE(
|
SGUI_INTERNAL_MONOSPACE_FONT_RESOURCE_DEFINE(
|
||||||
FONT_8,6,8,
|
FONT_8,6,8,
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
1,
|
1,
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
6,
|
6,
|
||||||
SGUI_TEXT_DECODER_ASCII,
|
SGUI_TEXT_DECODER_ASCII,
|
||||||
SGUI_Resource_IndexMapper_Default,
|
SGUI_Resource_IndexMapper_Default,
|
||||||
SGUI_BMP_SCAN_MODE_DHPV,
|
SGUI_BMP_SCAN_MODE_DHPV,
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // space index 0
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // space index 0
|
||||||
0x00, 0x00, 0x5F, 0x00, 0x00, 0x00, // !
|
0x00, 0x00, 0x5F, 0x00, 0x00, 0x00, // !
|
||||||
0x00, 0x07, 0x00, 0x07, 0x00, 0x00, // "
|
0x00, 0x07, 0x00, 0x07, 0x00, 0x00, // "
|
||||||
0x14, 0x7F, 0x14, 0x7F, 0x14, 0x00, // #
|
0x14, 0x7F, 0x14, 0x7F, 0x14, 0x00, // #
|
||||||
0x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00, // $
|
0x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00, // $
|
||||||
0x23, 0x13, 0x08, 0x64, 0x62, 0x00, // %
|
0x23, 0x13, 0x08, 0x64, 0x62, 0x00, // %
|
||||||
0x36, 0x49, 0x55, 0x22, 0x50, 0x00, // &
|
0x36, 0x49, 0x55, 0x22, 0x50, 0x00, // &
|
||||||
0x00, 0x05, 0x03, 0x00, 0x00, 0x00, // '
|
0x00, 0x05, 0x03, 0x00, 0x00, 0x00, // '
|
||||||
0x00, 0x1C, 0x22, 0x41, 0x00, 0x00, // (
|
0x00, 0x1C, 0x22, 0x41, 0x00, 0x00, // (
|
||||||
0x00, 0x41, 0x22, 0x1C, 0x00, 0x00, // )
|
0x00, 0x41, 0x22, 0x1C, 0x00, 0x00, // )
|
||||||
0x08, 0x2A, 0x1C, 0x2A, 0x08, 0x00, // *
|
0x08, 0x2A, 0x1C, 0x2A, 0x08, 0x00, // *
|
||||||
0x08, 0x08, 0x3E, 0x08, 0x08, 0x00, // +
|
0x08, 0x08, 0x3E, 0x08, 0x08, 0x00, // +
|
||||||
0x00, 0x50, 0x30, 0x00, 0x00, 0x00, // ,
|
0x00, 0x50, 0x30, 0x00, 0x00, 0x00, // ,
|
||||||
0x08, 0x08, 0x08, 0x08, 0x08, 0x00, // -
|
0x08, 0x08, 0x08, 0x08, 0x08, 0x00, // -
|
||||||
0x00, 0x30, 0x30, 0x00, 0x00, 0x00, // .
|
0x00, 0x30, 0x30, 0x00, 0x00, 0x00, // .
|
||||||
0x20, 0x10, 0x08, 0x04, 0x02, 0x00, // /
|
0x20, 0x10, 0x08, 0x04, 0x02, 0x00, // /
|
||||||
0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00, // 0
|
0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00, // 0
|
||||||
0x00, 0x42, 0x7F, 0x40, 0x00, 0x00, // 1
|
0x00, 0x42, 0x7F, 0x40, 0x00, 0x00, // 1
|
||||||
0x42, 0x61, 0x51, 0x49, 0x46, 0x00, // 2
|
0x42, 0x61, 0x51, 0x49, 0x46, 0x00, // 2
|
||||||
0x21, 0x41, 0x45, 0x4B, 0x31, 0x00, // 3
|
0x21, 0x41, 0x45, 0x4B, 0x31, 0x00, // 3
|
||||||
0x18, 0x14, 0x12, 0x7F, 0x10, 0x00, // 4
|
0x18, 0x14, 0x12, 0x7F, 0x10, 0x00, // 4
|
||||||
0x27, 0x45, 0x45, 0x45, 0x39, 0x00, // 5
|
0x27, 0x45, 0x45, 0x45, 0x39, 0x00, // 5
|
||||||
0x3C, 0x4A, 0x49, 0x49, 0x30, 0x00, // 6
|
0x3C, 0x4A, 0x49, 0x49, 0x30, 0x00, // 6
|
||||||
0x01, 0x71, 0x09, 0x05, 0x03, 0x00, // 7
|
0x01, 0x71, 0x09, 0x05, 0x03, 0x00, // 7
|
||||||
0x36, 0x49, 0x49, 0x49, 0x36, 0x00, // 8
|
0x36, 0x49, 0x49, 0x49, 0x36, 0x00, // 8
|
||||||
0x06, 0x49, 0x49, 0x29, 0x1E, 0x00, // 9
|
0x06, 0x49, 0x49, 0x29, 0x1E, 0x00, // 9
|
||||||
0x00, 0x36, 0x36, 0x00, 0x00, 0x00, // :
|
0x00, 0x36, 0x36, 0x00, 0x00, 0x00, // :
|
||||||
0x00, 0x56, 0x36, 0x00, 0x00, 0x00, // ;
|
0x00, 0x56, 0x36, 0x00, 0x00, 0x00, // ;
|
||||||
0x00, 0x08, 0x14, 0x22, 0x41, 0x00, // <
|
0x00, 0x08, 0x14, 0x22, 0x41, 0x00, // <
|
||||||
0x14, 0x14, 0x14, 0x14, 0x14, 0x00, // =
|
0x14, 0x14, 0x14, 0x14, 0x14, 0x00, // =
|
||||||
0x41, 0x22, 0x14, 0x08, 0x00, 0x00, // >
|
0x41, 0x22, 0x14, 0x08, 0x00, 0x00, // >
|
||||||
0x02, 0x01, 0x51, 0x09, 0x06, 0x00, // ?
|
0x02, 0x01, 0x51, 0x09, 0x06, 0x00, // ?
|
||||||
0x32, 0x49, 0x79, 0x41, 0x3E, 0x00, // @
|
0x32, 0x49, 0x79, 0x41, 0x3E, 0x00, // @
|
||||||
0x7E, 0x11, 0x11, 0x11, 0x7E, 0x00, // A
|
0x7E, 0x11, 0x11, 0x11, 0x7E, 0x00, // A
|
||||||
0x7F, 0x49, 0x49, 0x49, 0x36, 0x00, // B
|
0x7F, 0x49, 0x49, 0x49, 0x36, 0x00, // B
|
||||||
0x3E, 0x41, 0x41, 0x41, 0x22, 0x00, // C
|
0x3E, 0x41, 0x41, 0x41, 0x22, 0x00, // C
|
||||||
0x7F, 0x41, 0x41, 0x22, 0x1C, 0x00, // D
|
0x7F, 0x41, 0x41, 0x22, 0x1C, 0x00, // D
|
||||||
0x7F, 0x49, 0x49, 0x49, 0x41, 0x00, // E
|
0x7F, 0x49, 0x49, 0x49, 0x41, 0x00, // E
|
||||||
0x7F, 0x09, 0x09, 0x01, 0x01, 0x00, // F
|
0x7F, 0x09, 0x09, 0x01, 0x01, 0x00, // F
|
||||||
0x3E, 0x41, 0x41, 0x51, 0x32, 0x00, // G
|
0x3E, 0x41, 0x41, 0x51, 0x32, 0x00, // G
|
||||||
0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00, // H
|
0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00, // H
|
||||||
0x00, 0x41, 0x7F, 0x41, 0x00, 0x00, // I
|
0x00, 0x41, 0x7F, 0x41, 0x00, 0x00, // I
|
||||||
0x20, 0x40, 0x41, 0x3F, 0x01, 0x00, // J
|
0x20, 0x40, 0x41, 0x3F, 0x01, 0x00, // J
|
||||||
0x7F, 0x08, 0x14, 0x22, 0x41, 0x00, // K
|
0x7F, 0x08, 0x14, 0x22, 0x41, 0x00, // K
|
||||||
0x7F, 0x40, 0x40, 0x40, 0x40, 0x00, // L
|
0x7F, 0x40, 0x40, 0x40, 0x40, 0x00, // L
|
||||||
0x7F, 0x02, 0x04, 0x02, 0x7F, 0x00, // M
|
0x7F, 0x02, 0x04, 0x02, 0x7F, 0x00, // M
|
||||||
0x7F, 0x04, 0x08, 0x10, 0x7F, 0x00, // N
|
0x7F, 0x04, 0x08, 0x10, 0x7F, 0x00, // N
|
||||||
0x3E, 0x41, 0x41, 0x41, 0x3E, 0x00, // O
|
0x3E, 0x41, 0x41, 0x41, 0x3E, 0x00, // O
|
||||||
0x7F, 0x09, 0x09, 0x09, 0x06, 0x00, // P
|
0x7F, 0x09, 0x09, 0x09, 0x06, 0x00, // P
|
||||||
0x3E, 0x41, 0x51, 0x21, 0x5E, 0x00, // Q
|
0x3E, 0x41, 0x51, 0x21, 0x5E, 0x00, // Q
|
||||||
0x7F, 0x09, 0x19, 0x29, 0x46, 0x00, // R
|
0x7F, 0x09, 0x19, 0x29, 0x46, 0x00, // R
|
||||||
0x46, 0x49, 0x49, 0x49, 0x31, 0x00, // S
|
0x46, 0x49, 0x49, 0x49, 0x31, 0x00, // S
|
||||||
0x01, 0x01, 0x7F, 0x01, 0x01, 0x00, // T
|
0x01, 0x01, 0x7F, 0x01, 0x01, 0x00, // T
|
||||||
0x3F, 0x40, 0x40, 0x40, 0x3F, 0x00, // U
|
0x3F, 0x40, 0x40, 0x40, 0x3F, 0x00, // U
|
||||||
0x1F, 0x20, 0x40, 0x20, 0x1F, 0x00, // V
|
0x1F, 0x20, 0x40, 0x20, 0x1F, 0x00, // V
|
||||||
0x7F, 0x20, 0x18, 0x20, 0x7F, 0x00, // W
|
0x7F, 0x20, 0x18, 0x20, 0x7F, 0x00, // W
|
||||||
0x63, 0x14, 0x08, 0x14, 0x63, 0x00, // X
|
0x63, 0x14, 0x08, 0x14, 0x63, 0x00, // X
|
||||||
0x03, 0x04, 0x78, 0x04, 0x03, 0x00, // Y
|
0x03, 0x04, 0x78, 0x04, 0x03, 0x00, // Y
|
||||||
0x61, 0x51, 0x49, 0x45, 0x43, 0x00, // Z
|
0x61, 0x51, 0x49, 0x45, 0x43, 0x00, // Z
|
||||||
0x00, 0x00, 0x7F, 0x41, 0x41, 0x00, // [
|
0x00, 0x00, 0x7F, 0x41, 0x41, 0x00, // [
|
||||||
0x02, 0x04, 0x08, 0x10, 0x20, 0x00, // "\"
|
0x02, 0x04, 0x08, 0x10, 0x20, 0x00, // "\"
|
||||||
0x41, 0x41, 0x7F, 0x00, 0x00, 0x00, // ]
|
0x41, 0x41, 0x7F, 0x00, 0x00, 0x00, // ]
|
||||||
0x04, 0x02, 0x01, 0x02, 0x04, 0x00, // ^
|
0x04, 0x02, 0x01, 0x02, 0x04, 0x00, // ^
|
||||||
0x40, 0x40, 0x40, 0x40, 0x40, 0x00, // _
|
0x40, 0x40, 0x40, 0x40, 0x40, 0x00, // _
|
||||||
0x00, 0x01, 0x02, 0x04, 0x00, 0x00, // `
|
0x00, 0x01, 0x02, 0x04, 0x00, 0x00, // `
|
||||||
0x20, 0x54, 0x54, 0x54, 0x78, 0x00, // a
|
0x20, 0x54, 0x54, 0x54, 0x78, 0x00, // a
|
||||||
0x7F, 0x48, 0x44, 0x44, 0x38, 0x00, // b
|
0x7F, 0x48, 0x44, 0x44, 0x38, 0x00, // b
|
||||||
0x38, 0x44, 0x44, 0x44, 0x20, 0x00, // c
|
0x38, 0x44, 0x44, 0x44, 0x20, 0x00, // c
|
||||||
0x38, 0x44, 0x44, 0x48, 0x7F, 0x00, // d
|
0x38, 0x44, 0x44, 0x48, 0x7F, 0x00, // d
|
||||||
0x38, 0x54, 0x54, 0x54, 0x18, 0x00, // e
|
0x38, 0x54, 0x54, 0x54, 0x18, 0x00, // e
|
||||||
0x08, 0x7E, 0x09, 0x01, 0x02, 0x00, // f
|
0x08, 0x7E, 0x09, 0x01, 0x02, 0x00, // f
|
||||||
0x08, 0x14, 0x54, 0x54, 0x3C, 0x00, // g
|
0x08, 0x14, 0x54, 0x54, 0x3C, 0x00, // g
|
||||||
0x7F, 0x08, 0x04, 0x04, 0x78, 0x00, // h
|
0x7F, 0x08, 0x04, 0x04, 0x78, 0x00, // h
|
||||||
0x00, 0x44, 0x7D, 0x40, 0x00, 0x00, // i
|
0x00, 0x44, 0x7D, 0x40, 0x00, 0x00, // i
|
||||||
0x20, 0x40, 0x44, 0x3D, 0x00, 0x00, // j
|
0x20, 0x40, 0x44, 0x3D, 0x00, 0x00, // j
|
||||||
0x00, 0x7F, 0x10, 0x28, 0x44, 0x00, // k
|
0x00, 0x7F, 0x10, 0x28, 0x44, 0x00, // k
|
||||||
0x00, 0x41, 0x7F, 0x40, 0x00, 0x00, // l
|
0x00, 0x41, 0x7F, 0x40, 0x00, 0x00, // l
|
||||||
0x7C, 0x04, 0x18, 0x04, 0x78, 0x00, // m
|
0x7C, 0x04, 0x18, 0x04, 0x78, 0x00, // m
|
||||||
0x7C, 0x08, 0x04, 0x04, 0x78, 0x00, // n
|
0x7C, 0x08, 0x04, 0x04, 0x78, 0x00, // n
|
||||||
0x38, 0x44, 0x44, 0x44, 0x38, 0x00, // o
|
0x38, 0x44, 0x44, 0x44, 0x38, 0x00, // o
|
||||||
0x7C, 0x14, 0x14, 0x14, 0x08, 0x00, // p
|
0x7C, 0x14, 0x14, 0x14, 0x08, 0x00, // p
|
||||||
0x08, 0x14, 0x14, 0x18, 0x7C, 0x00, // q
|
0x08, 0x14, 0x14, 0x18, 0x7C, 0x00, // q
|
||||||
0x7C, 0x08, 0x04, 0x04, 0x08, 0x00, // r
|
0x7C, 0x08, 0x04, 0x04, 0x08, 0x00, // r
|
||||||
0x48, 0x54, 0x54, 0x54, 0x20, 0x00, // s
|
0x48, 0x54, 0x54, 0x54, 0x20, 0x00, // s
|
||||||
0x04, 0x3F, 0x44, 0x40, 0x20, 0x00, // t
|
0x04, 0x3F, 0x44, 0x40, 0x20, 0x00, // t
|
||||||
0x3C, 0x40, 0x40, 0x20, 0x7C, 0x00, // u
|
0x3C, 0x40, 0x40, 0x20, 0x7C, 0x00, // u
|
||||||
0x1C, 0x20, 0x40, 0x20, 0x1C, 0x00, // v
|
0x1C, 0x20, 0x40, 0x20, 0x1C, 0x00, // v
|
||||||
0x3C, 0x40, 0x30, 0x40, 0x3C, 0x00, // w
|
0x3C, 0x40, 0x30, 0x40, 0x3C, 0x00, // w
|
||||||
0x44, 0x28, 0x10, 0x28, 0x44, 0x00, // x
|
0x44, 0x28, 0x10, 0x28, 0x44, 0x00, // x
|
||||||
0x0C, 0x50, 0x50, 0x50, 0x3C, 0x00, // y
|
0x0C, 0x50, 0x50, 0x50, 0x3C, 0x00, // y
|
||||||
0x44, 0x64, 0x54, 0x4C, 0x44, 0x00, // z
|
0x44, 0x64, 0x54, 0x4C, 0x44, 0x00, // z
|
||||||
0x00, 0x08, 0x36, 0x41, 0x00, 0x00, // {
|
0x00, 0x08, 0x36, 0x41, 0x00, 0x00, // {
|
||||||
0x00, 0x00, 0x7F, 0x00, 0x00, 0x00, // |
|
0x00, 0x00, 0x7F, 0x00, 0x00, 0x00, // |
|
||||||
0x00, 0x41, 0x36, 0x08, 0x00, 0x00, // }
|
0x00, 0x41, 0x36, 0x08, 0x00, 0x00, // }
|
||||||
0x00, 0x01, 0x02, 0x00, 0x00, 0x00 // ` index 94
|
0x00, 0x01, 0x02, 0x00, 0x00, 0x00 // ` index 94
|
||||||
);
|
);
|
||||||
//======================================================================//
|
//======================================================================//
|
||||||
//= 12 Pix mono space font library. =//
|
//= 12 Pix mono space font library. =//
|
||||||
//======================================================================//
|
//======================================================================//
|
||||||
SGUI_INTERNAL_MONOSPACE_FONT_RESOURCE_DEFINE(
|
SGUI_INTERNAL_MONOSPACE_FONT_RESOURCE_DEFINE(
|
||||||
FONT_12,6,12,
|
FONT_12,6,12,
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
1,
|
1,
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
12,
|
12,
|
||||||
SGUI_TEXT_DECODER_ASCII,
|
SGUI_TEXT_DECODER_ASCII,
|
||||||
SGUI_Resource_IndexMapper_Default,
|
SGUI_Resource_IndexMapper_Default,
|
||||||
SGUI_BMP_SCAN_MODE_DHPV,
|
SGUI_BMP_SCAN_MODE_DHPV,
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // space Index 0
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // space Index 0
|
||||||
0x00, 0x00, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, // !
|
0x00, 0x00, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, // !
|
||||||
0x00, 0x00, 0x0E, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // "
|
0x00, 0x00, 0x0E, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // "
|
||||||
0x90, 0xD0, 0xBC, 0xD0, 0xBC, 0x90, 0x00, 0x03, 0x00, 0x03, 0x00, 0x00, // #
|
0x90, 0xD0, 0xBC, 0xD0, 0xBC, 0x90, 0x00, 0x03, 0x00, 0x03, 0x00, 0x00, // #
|
||||||
0x18, 0x24, 0xFE, 0x44, 0x88, 0x00, 0x01, 0x02, 0x07, 0x02, 0x01, 0x00, // $
|
0x18, 0x24, 0xFE, 0x44, 0x88, 0x00, 0x01, 0x02, 0x07, 0x02, 0x01, 0x00, // $
|
||||||
0x18, 0x24, 0xD8, 0xB0, 0x4C, 0x80, 0x00, 0x03, 0x00, 0x01, 0x02, 0x01, // %
|
0x18, 0x24, 0xD8, 0xB0, 0x4C, 0x80, 0x00, 0x03, 0x00, 0x01, 0x02, 0x01, // %
|
||||||
0xC0, 0x38, 0xE4, 0x38, 0x80, 0x00, 0x01, 0x02, 0x02, 0x01, 0x02, 0x02, // &
|
0xC0, 0x38, 0xE4, 0x38, 0x80, 0x00, 0x01, 0x02, 0x02, 0x01, 0x02, 0x02, // &
|
||||||
0x00, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // '
|
0x00, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // '
|
||||||
0x00, 0x00, 0x00, 0xF0, 0x0C, 0x02, 0x00, 0x00, 0x00, 0x00, 0x03, 0x04, // (
|
0x00, 0x00, 0x00, 0xF0, 0x0C, 0x02, 0x00, 0x00, 0x00, 0x00, 0x03, 0x04, // (
|
||||||
0x02, 0x0C, 0xF0, 0x00, 0x00, 0x00, 0x04, 0x03, 0x00, 0x00, 0x00, 0x00, // )
|
0x02, 0x0C, 0xF0, 0x00, 0x00, 0x00, 0x04, 0x03, 0x00, 0x00, 0x00, 0x00, // )
|
||||||
0x90, 0x60, 0xF8, 0x60, 0x90, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, // *
|
0x90, 0x60, 0xF8, 0x60, 0x90, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, // *
|
||||||
0x20, 0x20, 0xFC, 0x20, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, // +
|
0x20, 0x20, 0xFC, 0x20, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, // +
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x06, 0x00, 0x00, 0x00, 0x00, // ,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x06, 0x00, 0x00, 0x00, 0x00, // ,
|
||||||
0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // -
|
0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // -
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, // .
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, // .
|
||||||
0x00, 0x80, 0x60, 0x18, 0x06, 0x00, 0x06, 0x01, 0x00, 0x00, 0x00, 0x00, // /
|
0x00, 0x80, 0x60, 0x18, 0x06, 0x00, 0x06, 0x01, 0x00, 0x00, 0x00, 0x00, // /
|
||||||
0xF8, 0x04, 0x04, 0x04, 0xF8, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // 0
|
0xF8, 0x04, 0x04, 0x04, 0xF8, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // 0
|
||||||
0x00, 0x08, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, // 1
|
0x00, 0x08, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, // 1
|
||||||
0x18, 0x84, 0x44, 0x24, 0x18, 0x00, 0x03, 0x02, 0x02, 0x02, 0x02, 0x00, // 2
|
0x18, 0x84, 0x44, 0x24, 0x18, 0x00, 0x03, 0x02, 0x02, 0x02, 0x02, 0x00, // 2
|
||||||
0x08, 0x04, 0x24, 0x24, 0xD8, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // 3
|
0x08, 0x04, 0x24, 0x24, 0xD8, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // 3
|
||||||
0x40, 0xB0, 0x88, 0xFC, 0x80, 0x00, 0x00, 0x00, 0x02, 0x03, 0x02, 0x00, // 4
|
0x40, 0xB0, 0x88, 0xFC, 0x80, 0x00, 0x00, 0x00, 0x02, 0x03, 0x02, 0x00, // 4
|
||||||
0x3C, 0x24, 0x24, 0x24, 0xC4, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // 5
|
0x3C, 0x24, 0x24, 0x24, 0xC4, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // 5
|
||||||
0xF8, 0x24, 0x24, 0x24, 0xC8, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // 6
|
0xF8, 0x24, 0x24, 0x24, 0xC8, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // 6
|
||||||
0x0C, 0x04, 0xE4, 0x14, 0x0C, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, // 7
|
0x0C, 0x04, 0xE4, 0x14, 0x0C, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, // 7
|
||||||
0xD8, 0x24, 0x24, 0x24, 0xD8, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // 8
|
0xD8, 0x24, 0x24, 0x24, 0xD8, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // 8
|
||||||
0x38, 0x44, 0x44, 0x44, 0xF8, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // 9
|
0x38, 0x44, 0x44, 0x44, 0xF8, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // 9
|
||||||
0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, // :
|
0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, // :
|
||||||
0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x04, 0x03, 0x00, 0x00, 0x00, // ;
|
0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x04, 0x03, 0x00, 0x00, 0x00, // ;
|
||||||
0x00, 0x20, 0x50, 0x88, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, // <
|
0x00, 0x20, 0x50, 0x88, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, // <
|
||||||
0x90, 0x90, 0x90, 0x90, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // =
|
0x90, 0x90, 0x90, 0x90, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // =
|
||||||
0x00, 0x02, 0x04, 0x88, 0x50, 0x20, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, // >
|
0x00, 0x02, 0x04, 0x88, 0x50, 0x20, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, // >
|
||||||
0x18, 0x04, 0xC4, 0x24, 0x18, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, // ?
|
0x18, 0x04, 0xC4, 0x24, 0x18, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, // ?
|
||||||
0xF8, 0x04, 0xE4, 0x94, 0x78, 0x00, 0x01, 0x02, 0x02, 0x02, 0x02, 0x00, // @
|
0xF8, 0x04, 0xE4, 0x94, 0x78, 0x00, 0x01, 0x02, 0x02, 0x02, 0x02, 0x00, // @
|
||||||
0x00, 0xF0, 0x9C, 0x9C, 0xF0, 0x00, 0x02, 0x03, 0x00, 0x00, 0x03, 0x02, // A
|
0x00, 0xF0, 0x9C, 0x9C, 0xF0, 0x00, 0x02, 0x03, 0x00, 0x00, 0x03, 0x02, // A
|
||||||
0x04, 0xFC, 0x24, 0x24, 0xD8, 0x00, 0x02, 0x03, 0x02, 0x02, 0x01, 0x00, // B
|
0x04, 0xFC, 0x24, 0x24, 0xD8, 0x00, 0x02, 0x03, 0x02, 0x02, 0x01, 0x00, // B
|
||||||
0xF8, 0x04, 0x04, 0x04, 0x08, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // C
|
0xF8, 0x04, 0x04, 0x04, 0x08, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // C
|
||||||
0x04, 0xFC, 0x04, 0x04, 0xF8, 0x00, 0x02, 0x03, 0x02, 0x02, 0x01, 0x00, // D
|
0x04, 0xFC, 0x04, 0x04, 0xF8, 0x00, 0x02, 0x03, 0x02, 0x02, 0x01, 0x00, // D
|
||||||
0x04, 0xFC, 0x24, 0x74, 0x0C, 0x00, 0x02, 0x03, 0x02, 0x02, 0x03, 0x00, // E
|
0x04, 0xFC, 0x24, 0x74, 0x0C, 0x00, 0x02, 0x03, 0x02, 0x02, 0x03, 0x00, // E
|
||||||
0x04, 0xFC, 0x24, 0x74, 0x0C, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, 0x00, // F
|
0x04, 0xFC, 0x24, 0x74, 0x0C, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, 0x00, // F
|
||||||
0xF8, 0x04, 0x04, 0x44, 0xCC, 0x40, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // G
|
0xF8, 0x04, 0x04, 0x44, 0xCC, 0x40, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // G
|
||||||
0x04, 0xFC, 0x20, 0x20, 0xFC, 0x04, 0x02, 0x03, 0x00, 0x00, 0x03, 0x02, // H
|
0x04, 0xFC, 0x20, 0x20, 0xFC, 0x04, 0x02, 0x03, 0x00, 0x00, 0x03, 0x02, // H
|
||||||
0x04, 0x04, 0xFC, 0x04, 0x04, 0x00, 0x02, 0x02, 0x03, 0x02, 0x02, 0x00, // I
|
0x04, 0x04, 0xFC, 0x04, 0x04, 0x00, 0x02, 0x02, 0x03, 0x02, 0x02, 0x00, // I
|
||||||
0x00, 0x04, 0x04, 0xFC, 0x04, 0x04, 0x02, 0x04, 0x04, 0x03, 0x00, 0x00, // J
|
0x00, 0x04, 0x04, 0xFC, 0x04, 0x04, 0x02, 0x04, 0x04, 0x03, 0x00, 0x00, // J
|
||||||
0x04, 0xFC, 0x24, 0xD0, 0x0C, 0x04, 0x02, 0x03, 0x02, 0x00, 0x03, 0x02, // K
|
0x04, 0xFC, 0x24, 0xD0, 0x0C, 0x04, 0x02, 0x03, 0x02, 0x00, 0x03, 0x02, // K
|
||||||
0x04, 0xFC, 0x04, 0x00, 0x00, 0x00, 0x02, 0x03, 0x02, 0x02, 0x02, 0x03, // L
|
0x04, 0xFC, 0x04, 0x00, 0x00, 0x00, 0x02, 0x03, 0x02, 0x02, 0x02, 0x03, // L
|
||||||
0xFC, 0x3C, 0xC0, 0x3C, 0xFC, 0x00, 0x03, 0x00, 0x03, 0x00, 0x03, 0x00, // M
|
0xFC, 0x3C, 0xC0, 0x3C, 0xFC, 0x00, 0x03, 0x00, 0x03, 0x00, 0x03, 0x00, // M
|
||||||
0x04, 0xFC, 0x30, 0xC4, 0xFC, 0x04, 0x02, 0x03, 0x02, 0x00, 0x03, 0x02, // N
|
0x04, 0xFC, 0x30, 0xC4, 0xFC, 0x04, 0x02, 0x03, 0x02, 0x00, 0x03, 0x02, // N
|
||||||
0xF8, 0x04, 0x04, 0x04, 0xF8, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // O
|
0xF8, 0x04, 0x04, 0x04, 0xF8, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // O
|
||||||
0x04, 0xFC, 0x24, 0x24, 0x18, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, 0x00, // P
|
0x04, 0xFC, 0x24, 0x24, 0x18, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, 0x00, // P
|
||||||
0xF8, 0x84, 0x84, 0x04, 0xF8, 0x00, 0x01, 0x02, 0x02, 0x07, 0x04, 0x00, // Q
|
0xF8, 0x84, 0x84, 0x04, 0xF8, 0x00, 0x01, 0x02, 0x02, 0x07, 0x04, 0x00, // Q
|
||||||
0x04, 0xFC, 0x24, 0x64, 0x98, 0x00, 0x02, 0x03, 0x02, 0x00, 0x03, 0x02, // R
|
0x04, 0xFC, 0x24, 0x64, 0x98, 0x00, 0x02, 0x03, 0x02, 0x00, 0x03, 0x02, // R
|
||||||
0x18, 0x24, 0x24, 0x44, 0x88, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // S
|
0x18, 0x24, 0x24, 0x44, 0x88, 0x00, 0x01, 0x02, 0x02, 0x02, 0x01, 0x00, // S
|
||||||
0x0C, 0x04, 0xFC, 0x04, 0x0C, 0x00, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, // T
|
0x0C, 0x04, 0xFC, 0x04, 0x0C, 0x00, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, // T
|
||||||
0x04, 0xFC, 0x00, 0x00, 0xFC, 0x04, 0x00, 0x01, 0x02, 0x02, 0x01, 0x00, // U
|
0x04, 0xFC, 0x00, 0x00, 0xFC, 0x04, 0x00, 0x01, 0x02, 0x02, 0x01, 0x00, // U
|
||||||
0x04, 0x7C, 0x80, 0x80, 0x7C, 0x04, 0x00, 0x00, 0x03, 0x03, 0x00, 0x00, // V
|
0x04, 0x7C, 0x80, 0x80, 0x7C, 0x04, 0x00, 0x00, 0x03, 0x03, 0x00, 0x00, // V
|
||||||
0x1C, 0xE0, 0x3C, 0xE0, 0x1C, 0x00, 0x00, 0x03, 0x00, 0x03, 0x00, 0x00, // W
|
0x1C, 0xE0, 0x3C, 0xE0, 0x1C, 0x00, 0x00, 0x03, 0x00, 0x03, 0x00, 0x00, // W
|
||||||
0x04, 0x9C, 0x60, 0x9C, 0x04, 0x00, 0x02, 0x03, 0x00, 0x03, 0x02, 0x00, // X
|
0x04, 0x9C, 0x60, 0x9C, 0x04, 0x00, 0x02, 0x03, 0x00, 0x03, 0x02, 0x00, // X
|
||||||
0x04, 0x1C, 0xE0, 0x1C, 0x04, 0x00, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, // Y
|
0x04, 0x1C, 0xE0, 0x1C, 0x04, 0x00, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, // Y
|
||||||
0x0C, 0x84, 0x64, 0x1C, 0x04, 0x00, 0x02, 0x03, 0x02, 0x02, 0x03, 0x00, // Z
|
0x0C, 0x84, 0x64, 0x1C, 0x04, 0x00, 0x02, 0x03, 0x02, 0x02, 0x03, 0x00, // Z
|
||||||
0x00, 0x00, 0xFE, 0x02, 0x02, 0x00, 0x00, 0x00, 0x07, 0x04, 0x04, 0x00, // [
|
0x00, 0x00, 0xFE, 0x02, 0x02, 0x00, 0x00, 0x00, 0x07, 0x04, 0x04, 0x00, // [
|
||||||
0x00, 0x0E, 0x30, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, // '\'
|
0x00, 0x0E, 0x30, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, // '\'
|
||||||
0x00, 0x02, 0x02, 0xFE, 0x00, 0x00, 0x00, 0x04, 0x04, 0x07, 0x00, 0x00, // ]
|
0x00, 0x02, 0x02, 0xFE, 0x00, 0x00, 0x00, 0x04, 0x04, 0x07, 0x00, 0x00, // ]
|
||||||
0x00, 0x04, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ^
|
0x00, 0x04, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ^
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, // _
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, // _
|
||||||
0x00, 0x00, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // `
|
0x00, 0x00, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // `
|
||||||
0x00, 0x40, 0xA0, 0xA0, 0xC0, 0x00, 0x00, 0x01, 0x02, 0x02, 0x01, 0x02, // a
|
0x00, 0x40, 0xA0, 0xA0, 0xC0, 0x00, 0x00, 0x01, 0x02, 0x02, 0x01, 0x02, // a
|
||||||
0x04, 0xFC, 0x20, 0x20, 0xC0, 0x00, 0x00, 0x03, 0x02, 0x02, 0x01, 0x00, // b
|
0x04, 0xFC, 0x20, 0x20, 0xC0, 0x00, 0x00, 0x03, 0x02, 0x02, 0x01, 0x00, // b
|
||||||
0x00, 0xC0, 0x20, 0x20, 0x60, 0x00, 0x00, 0x01, 0x02, 0x02, 0x02, 0x00, // c
|
0x00, 0xC0, 0x20, 0x20, 0x60, 0x00, 0x00, 0x01, 0x02, 0x02, 0x02, 0x00, // c
|
||||||
0x00, 0xC0, 0x20, 0x24, 0xFC, 0x00, 0x00, 0x01, 0x02, 0x02, 0x01, 0x02, // d
|
0x00, 0xC0, 0x20, 0x24, 0xFC, 0x00, 0x00, 0x01, 0x02, 0x02, 0x01, 0x02, // d
|
||||||
0x00, 0xC0, 0xA0, 0xA0, 0xC0, 0x00, 0x00, 0x01, 0x02, 0x02, 0x02, 0x00, // e
|
0x00, 0xC0, 0xA0, 0xA0, 0xC0, 0x00, 0x00, 0x01, 0x02, 0x02, 0x02, 0x00, // e
|
||||||
0x00, 0x20, 0xF8, 0x24, 0x24, 0x04, 0x00, 0x02, 0x03, 0x02, 0x02, 0x00, // f
|
0x00, 0x20, 0xF8, 0x24, 0x24, 0x04, 0x00, 0x02, 0x03, 0x02, 0x02, 0x00, // f
|
||||||
0x00, 0x40, 0xA0, 0xA0, 0x60, 0x20, 0x00, 0x07, 0x0A, 0x0A, 0x0A, 0x04, // g
|
0x00, 0x40, 0xA0, 0xA0, 0x60, 0x20, 0x00, 0x07, 0x0A, 0x0A, 0x0A, 0x04, // g
|
||||||
0x04, 0xFC, 0x20, 0x20, 0xC0, 0x00, 0x02, 0x03, 0x00, 0x00, 0x03, 0x02, // h
|
0x04, 0xFC, 0x20, 0x20, 0xC0, 0x00, 0x02, 0x03, 0x00, 0x00, 0x03, 0x02, // h
|
||||||
0x00, 0x20, 0xE4, 0x00, 0x00, 0x00, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, // i
|
0x00, 0x20, 0xE4, 0x00, 0x00, 0x00, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, // i
|
||||||
0x00, 0x00, 0x20, 0xE4, 0x00, 0x00, 0x08, 0x08, 0x08, 0x07, 0x00, 0x00, // j
|
0x00, 0x00, 0x20, 0xE4, 0x00, 0x00, 0x08, 0x08, 0x08, 0x07, 0x00, 0x00, // j
|
||||||
0x04, 0xFC, 0x80, 0xA0, 0x60, 0x20, 0x02, 0x03, 0x02, 0x00, 0x03, 0x02, // k
|
0x04, 0xFC, 0x80, 0xA0, 0x60, 0x20, 0x02, 0x03, 0x02, 0x00, 0x03, 0x02, // k
|
||||||
0x04, 0x04, 0xFC, 0x00, 0x00, 0x00, 0x02, 0x02, 0x03, 0x02, 0x02, 0x00, // l
|
0x04, 0x04, 0xFC, 0x00, 0x00, 0x00, 0x02, 0x02, 0x03, 0x02, 0x02, 0x00, // l
|
||||||
0xE0, 0x20, 0xE0, 0x20, 0xC0, 0x00, 0x03, 0x00, 0x03, 0x00, 0x03, 0x00, // m
|
0xE0, 0x20, 0xE0, 0x20, 0xC0, 0x00, 0x03, 0x00, 0x03, 0x00, 0x03, 0x00, // m
|
||||||
0x20, 0xE0, 0x20, 0x20, 0xC0, 0x00, 0x02, 0x03, 0x02, 0x00, 0x03, 0x02, // n
|
0x20, 0xE0, 0x20, 0x20, 0xC0, 0x00, 0x02, 0x03, 0x02, 0x00, 0x03, 0x02, // n
|
||||||
0x00, 0xC0, 0x20, 0x20, 0xC0, 0x00, 0x00, 0x01, 0x02, 0x02, 0x01, 0x00, // o
|
0x00, 0xC0, 0x20, 0x20, 0xC0, 0x00, 0x00, 0x01, 0x02, 0x02, 0x01, 0x00, // o
|
||||||
0x20, 0xE0, 0x20, 0x20, 0xC0, 0x00, 0x08, 0x0F, 0x0A, 0x02, 0x01, 0x00, // p
|
0x20, 0xE0, 0x20, 0x20, 0xC0, 0x00, 0x08, 0x0F, 0x0A, 0x02, 0x01, 0x00, // p
|
||||||
0x00, 0xC0, 0x20, 0x20, 0xE0, 0x00, 0x00, 0x01, 0x02, 0x0A, 0x0F, 0x08, // q
|
0x00, 0xC0, 0x20, 0x20, 0xE0, 0x00, 0x00, 0x01, 0x02, 0x0A, 0x0F, 0x08, // q
|
||||||
0x20, 0xE0, 0x40, 0x20, 0x20, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, 0x00, // r
|
0x20, 0xE0, 0x40, 0x20, 0x20, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, 0x00, // r
|
||||||
0x00, 0x40, 0xA0, 0xA0, 0x20, 0x00, 0x00, 0x02, 0x02, 0x02, 0x01, 0x00, // s
|
0x00, 0x40, 0xA0, 0xA0, 0x20, 0x00, 0x00, 0x02, 0x02, 0x02, 0x01, 0x00, // s
|
||||||
0x00, 0x20, 0xF8, 0x20, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x02, 0x00, // t
|
0x00, 0x20, 0xF8, 0x20, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x02, 0x00, // t
|
||||||
0x20, 0xE0, 0x00, 0x20, 0xE0, 0x00, 0x00, 0x01, 0x02, 0x02, 0x01, 0x02, // u
|
0x20, 0xE0, 0x00, 0x20, 0xE0, 0x00, 0x00, 0x01, 0x02, 0x02, 0x01, 0x02, // u
|
||||||
0x20, 0xE0, 0x00, 0x00, 0xE0, 0x20, 0x00, 0x00, 0x03, 0x03, 0x00, 0x00, // v
|
0x20, 0xE0, 0x00, 0x00, 0xE0, 0x20, 0x00, 0x00, 0x03, 0x03, 0x00, 0x00, // v
|
||||||
0x60, 0x80, 0xE0, 0x80, 0x60, 0x00, 0x00, 0x03, 0x00, 0x03, 0x00, 0x00, // w
|
0x60, 0x80, 0xE0, 0x80, 0x60, 0x00, 0x00, 0x03, 0x00, 0x03, 0x00, 0x00, // w
|
||||||
0x20, 0x60, 0x80, 0x60, 0x20, 0x00, 0x02, 0x03, 0x00, 0x03, 0x02, 0x00, // x
|
0x20, 0x60, 0x80, 0x60, 0x20, 0x00, 0x02, 0x03, 0x00, 0x03, 0x02, 0x00, // x
|
||||||
0x20, 0xE0, 0x20, 0x80, 0x60, 0x20, 0x08, 0x08, 0x07, 0x01, 0x00, 0x00, // y
|
0x20, 0xE0, 0x20, 0x80, 0x60, 0x20, 0x08, 0x08, 0x07, 0x01, 0x00, 0x00, // y
|
||||||
0x00, 0x20, 0xA0, 0x60, 0x20, 0x00, 0x00, 0x02, 0x03, 0x02, 0x02, 0x00, // z
|
0x00, 0x20, 0xA0, 0x60, 0x20, 0x00, 0x00, 0x02, 0x03, 0x02, 0x02, 0x00, // z
|
||||||
0x00, 0x00, 0x60, 0x9E, 0x02, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x00, // {
|
0x00, 0x00, 0x60, 0x9E, 0x02, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x00, // {
|
||||||
0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, // |
|
0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, // |
|
||||||
0x00, 0x02, 0x9E, 0x60, 0x00, 0x00, 0x00, 0x04, 0x07, 0x00, 0x00, 0x00, // }
|
0x00, 0x02, 0x9E, 0x60, 0x00, 0x00, 0x00, 0x04, 0x07, 0x00, 0x00, 0x00, // }
|
||||||
0x04, 0x02, 0x02, 0x04, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ~ Index 94
|
0x04, 0x02, 0x02, 0x04, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ~ Index 94
|
||||||
);
|
);
|
||||||
//======================================================================//
|
//======================================================================//
|
||||||
//= 16 Pix font library. //
|
//= 16 Pix font library. //
|
||||||
//======================================================================//
|
//======================================================================//
|
||||||
SGUI_INTERNAL_MONOSPACE_FONT_RESOURCE_DEFINE(
|
SGUI_INTERNAL_MONOSPACE_FONT_RESOURCE_DEFINE(
|
||||||
FONT_16,8,16,
|
FONT_16,8,16,
|
||||||
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
1,
|
1,
|
||||||
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
||||||
16,
|
16,
|
||||||
SGUI_TEXT_DECODER_ASCII,
|
SGUI_TEXT_DECODER_ASCII,
|
||||||
SGUI_Resource_IndexMapper_Default,
|
SGUI_Resource_IndexMapper_Default,
|
||||||
SGUI_BMP_SCAN_MODE_DHPV,
|
SGUI_BMP_SCAN_MODE_DHPV,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // space Index 0
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // space Index 0
|
||||||
0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0x00,0x00,0x00, //"!"
|
0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0x00,0x00,0x00, //"!"
|
||||||
0x00,0x00,0x1E,0x06,0x00,0x1E,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //"""
|
0x00,0x00,0x1E,0x06,0x00,0x1E,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //"""
|
||||||
0x40,0x40,0xF8,0x40,0x40,0xF8,0x40,0x00,0x04,0x3F,0x04,0x04,0x3F,0x04,0x04,0x00, //"#"
|
0x40,0x40,0xF8,0x40,0x40,0xF8,0x40,0x00,0x04,0x3F,0x04,0x04,0x3F,0x04,0x04,0x00, //"#"
|
||||||
0x00,0x70,0x88,0xFC,0x08,0x30,0x00,0x00,0x00,0x18,0x20,0xFF,0x21,0x1E,0x00,0x00, //"$"
|
0x00,0x70,0x88,0xFC,0x08,0x30,0x00,0x00,0x00,0x18,0x20,0xFF,0x21,0x1E,0x00,0x00, //"$"
|
||||||
0xF0,0x08,0xF0,0x00,0xE0,0x18,0x00,0x00,0x00,0x21,0x1C,0x03,0x1E,0x21,0x1E,0x00, //"%"
|
0xF0,0x08,0xF0,0x00,0xE0,0x18,0x00,0x00,0x00,0x21,0x1C,0x03,0x1E,0x21,0x1E,0x00, //"%"
|
||||||
0x00,0xF0,0x08,0x88,0x70,0x00,0x00,0x00,0x1E,0x21,0x23,0x24,0x19,0x27,0x21,0x10, //"&"
|
0x00,0xF0,0x08,0x88,0x70,0x00,0x00,0x00,0x1E,0x21,0x23,0x24,0x19,0x27,0x21,0x10, //"&"
|
||||||
0x00,0x1E,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //"'"
|
0x00,0x1E,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //"'"
|
||||||
0x00,0x00,0x00,0xE0,0x18,0x04,0x02,0x00,0x00,0x00,0x00,0x07,0x18,0x20,0x40,0x00, //"("
|
0x00,0x00,0x00,0xE0,0x18,0x04,0x02,0x00,0x00,0x00,0x00,0x07,0x18,0x20,0x40,0x00, //"("
|
||||||
0x00,0x02,0x04,0x18,0xE0,0x00,0x00,0x00,0x00,0x40,0x20,0x18,0x07,0x00,0x00,0x00, //")"
|
0x00,0x02,0x04,0x18,0xE0,0x00,0x00,0x00,0x00,0x40,0x20,0x18,0x07,0x00,0x00,0x00, //")"
|
||||||
0x40,0x40,0x80,0xF0,0x80,0x40,0x40,0x00,0x02,0x02,0x01,0x0F,0x01,0x02,0x02,0x00, //"*"
|
0x40,0x40,0x80,0xF0,0x80,0x40,0x40,0x00,0x02,0x02,0x01,0x0F,0x01,0x02,0x02,0x00, //"*"
|
||||||
0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x1F,0x01,0x01,0x01,0x00, //"+"
|
0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x1F,0x01,0x01,0x01,0x00, //"+"
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xB0,0x70,0x00,0x00,0x00,0x00,0x00, //","
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xB0,0x70,0x00,0x00,0x00,0x00,0x00, //","
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01, //"-"
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01, //"-"
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00, //"."
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00, //"."
|
||||||
0x00,0x00,0x00,0x00,0x80,0x60,0x18,0x06,0x00,0x60,0x18,0x06,0x01,0x00,0x00,0x00, //"/"
|
0x00,0x00,0x00,0x00,0x80,0x60,0x18,0x06,0x00,0x60,0x18,0x06,0x01,0x00,0x00,0x00, //"/"
|
||||||
0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00, //"0"
|
0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00, //"0"
|
||||||
0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00, //"1"
|
0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00, //"1"
|
||||||
0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00, //"2"
|
0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00, //"2"
|
||||||
0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00, //"3"
|
0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00, //"3"
|
||||||
0x00,0x00,0x80,0x60,0x10,0xF8,0x00,0x00,0x00,0x06,0x05,0x24,0x24,0x3F,0x24,0x00, //"4"
|
0x00,0x00,0x80,0x60,0x10,0xF8,0x00,0x00,0x00,0x06,0x05,0x24,0x24,0x3F,0x24,0x00, //"4"
|
||||||
0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00, //"5"
|
0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00, //"5"
|
||||||
0x00,0xE0,0x10,0x88,0x88,0x08,0x10,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00, //"6"
|
0x00,0xE0,0x10,0x88,0x88,0x08,0x10,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00, //"6"
|
||||||
0x00,0x38,0x08,0x08,0xC8,0x28,0x18,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00, //"7"
|
0x00,0x38,0x08,0x08,0xC8,0x28,0x18,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00, //"7"
|
||||||
0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00, //"8"
|
0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00, //"8"
|
||||||
0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x10,0x21,0x22,0x22,0x11,0x0F,0x00, //"9"
|
0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x10,0x21,0x22,0x22,0x11,0x0F,0x00, //"9"
|
||||||
0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00, //":"
|
0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00, //":"
|
||||||
0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0x60,0x00,0x00,0x00, //";"
|
0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0x60,0x00,0x00,0x00, //";"
|
||||||
0x00,0x00,0x80,0x40,0x20,0x10,0x08,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x00, //"<"
|
0x00,0x00,0x80,0x40,0x20,0x10,0x08,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x00, //"<"
|
||||||
0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x00, //"="
|
0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x00, //"="
|
||||||
0x00,0x08,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0x20,0x10,0x08,0x04,0x02,0x01,0x00, //">"
|
0x00,0x08,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0x20,0x10,0x08,0x04,0x02,0x01,0x00, //">"
|
||||||
0x00,0x70,0x08,0x08,0x08,0x08,0xF0,0x00,0x00,0x00,0x00,0x00,0x36,0x01,0x00,0x00, //"?"
|
0x00,0x70,0x08,0x08,0x08,0x08,0xF0,0x00,0x00,0x00,0x00,0x00,0x36,0x01,0x00,0x00, //"?"
|
||||||
0xC0,0x30,0xC8,0x28,0xC8,0x10,0xE0,0x00,0x07,0x18,0x27,0x24,0x23,0x14,0x0B,0x00, //"@"
|
0xC0,0x30,0xC8,0x28,0xC8,0x10,0xE0,0x00,0x07,0x18,0x27,0x24,0x23,0x14,0x0B,0x00, //"@"
|
||||||
0x00,0x00,0xC0,0x38,0x38,0xC0,0x00,0x00,0x20,0x3C,0x23,0x02,0x02,0x23,0x3C,0x20, //"A"
|
0x00,0x00,0xC0,0x38,0x38,0xC0,0x00,0x00,0x20,0x3C,0x23,0x02,0x02,0x23,0x3C,0x20, //"A"
|
||||||
0x08,0xF8,0x88,0x88,0x88,0x70,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x11,0x0E,0x00, //"B"
|
0x08,0xF8,0x88,0x88,0x88,0x70,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x11,0x0E,0x00, //"B"
|
||||||
0xC0,0x30,0x08,0x08,0x08,0x08,0x30,0x00,0x07,0x18,0x20,0x20,0x20,0x10,0x08,0x00, //"C"
|
0xC0,0x30,0x08,0x08,0x08,0x08,0x30,0x00,0x07,0x18,0x20,0x20,0x20,0x10,0x08,0x00, //"C"
|
||||||
0x08,0xF8,0x08,0x08,0x08,0x10,0xE0,0x00,0x20,0x3F,0x20,0x20,0x20,0x10,0x0F,0x00, //"D"
|
0x08,0xF8,0x08,0x08,0x08,0x10,0xE0,0x00,0x20,0x3F,0x20,0x20,0x20,0x10,0x0F,0x00, //"D"
|
||||||
0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x20,0x23,0x20,0x18,0x00, //"E"
|
0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x20,0x23,0x20,0x18,0x00, //"E"
|
||||||
0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x00,0x03,0x00,0x00,0x00, //"F"
|
0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x00,0x03,0x00,0x00,0x00, //"F"
|
||||||
0xC0,0x30,0x08,0x08,0x08,0x18,0x00,0x00,0x07,0x18,0x20,0x20,0x22,0x1E,0x02,0x00, //"G"
|
0xC0,0x30,0x08,0x08,0x08,0x18,0x00,0x00,0x07,0x18,0x20,0x20,0x22,0x1E,0x02,0x00, //"G"
|
||||||
0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x20,0x3F,0x21,0x01,0x01,0x21,0x3F,0x20, //"H"
|
0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x20,0x3F,0x21,0x01,0x01,0x21,0x3F,0x20, //"H"
|
||||||
0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00, //"I"
|
0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00, //"I"
|
||||||
0x00,0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00,0x00, //"J"
|
0x00,0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00,0x00, //"J"
|
||||||
0x08,0xF8,0x88,0xC0,0x28,0x18,0x08,0x00,0x20,0x3F,0x20,0x01,0x26,0x38,0x20,0x00, //"K"
|
0x08,0xF8,0x88,0xC0,0x28,0x18,0x08,0x00,0x20,0x3F,0x20,0x01,0x26,0x38,0x20,0x00, //"K"
|
||||||
0x08,0xF8,0x08,0x00,0x00,0x00,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x20,0x30,0x00, //"L"
|
0x08,0xF8,0x08,0x00,0x00,0x00,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x20,0x30,0x00, //"L"
|
||||||
0x08,0xF8,0xF8,0x00,0xF8,0xF8,0x08,0x00,0x20,0x3F,0x00,0x3F,0x00,0x3F,0x20,0x00, //"M"
|
0x08,0xF8,0xF8,0x00,0xF8,0xF8,0x08,0x00,0x20,0x3F,0x00,0x3F,0x00,0x3F,0x20,0x00, //"M"
|
||||||
0x08,0xF8,0x30,0xC0,0x00,0x08,0xF8,0x08,0x20,0x3F,0x20,0x00,0x07,0x18,0x3F,0x00, //"N"
|
0x08,0xF8,0x30,0xC0,0x00,0x08,0xF8,0x08,0x20,0x3F,0x20,0x00,0x07,0x18,0x3F,0x00, //"N"
|
||||||
0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x10,0x20,0x20,0x20,0x10,0x0F,0x00, //"O"
|
0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x10,0x20,0x20,0x20,0x10,0x0F,0x00, //"O"
|
||||||
0x08,0xF8,0x08,0x08,0x08,0x08,0xF0,0x00,0x20,0x3F,0x21,0x01,0x01,0x01,0x00,0x00, //"P"
|
0x08,0xF8,0x08,0x08,0x08,0x08,0xF0,0x00,0x20,0x3F,0x21,0x01,0x01,0x01,0x00,0x00, //"P"
|
||||||
0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x18,0x24,0x24,0x38,0x50,0x4F,0x00, //"Q"
|
0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x18,0x24,0x24,0x38,0x50,0x4F,0x00, //"Q"
|
||||||
0x08,0xF8,0x88,0x88,0x88,0x88,0x70,0x00,0x20,0x3F,0x20,0x00,0x03,0x0C,0x30,0x20, //"R"
|
0x08,0xF8,0x88,0x88,0x88,0x88,0x70,0x00,0x20,0x3F,0x20,0x00,0x03,0x0C,0x30,0x20, //"R"
|
||||||
0x00,0x70,0x88,0x08,0x08,0x08,0x30,0x00,0x00,0x18,0x20,0x21,0x21,0x22,0x1C,0x00, //"S"
|
0x00,0x70,0x88,0x08,0x08,0x08,0x30,0x00,0x00,0x18,0x20,0x21,0x21,0x22,0x1C,0x00, //"S"
|
||||||
0x18,0x08,0x08,0xF8,0x08,0x08,0x18,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00, //"T"
|
0x18,0x08,0x08,0xF8,0x08,0x08,0x18,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00, //"T"
|
||||||
0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00, //"U"
|
0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00, //"U"
|
||||||
0x08,0x78,0x88,0x00,0x00,0xC8,0x38,0x08,0x00,0x00,0x07,0x38,0x38,0x07,0x00,0x00, //"V"
|
0x08,0x78,0x88,0x00,0x00,0xC8,0x38,0x08,0x00,0x00,0x07,0x38,0x38,0x07,0x00,0x00, //"V"
|
||||||
0xF8,0x08,0x00,0xF0,0x00,0x08,0xF8,0x00,0x03,0x3C,0x07,0x00,0x07,0x3C,0x03,0x00, //"W"
|
0xF8,0x08,0x00,0xF0,0x00,0x08,0xF8,0x00,0x03,0x3C,0x07,0x00,0x07,0x3C,0x03,0x00, //"W"
|
||||||
0x08,0x18,0x68,0x80,0x80,0x68,0x18,0x08,0x20,0x30,0x2C,0x03,0x03,0x2C,0x30,0x20, //"X"
|
0x08,0x18,0x68,0x80,0x80,0x68,0x18,0x08,0x20,0x30,0x2C,0x03,0x03,0x2C,0x30,0x20, //"X"
|
||||||
0x08,0x38,0xC8,0x00,0xC8,0x38,0x08,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00, //"Y"
|
0x08,0x38,0xC8,0x00,0xC8,0x38,0x08,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00, //"Y"
|
||||||
0x18,0x08,0x08,0x08,0xC8,0x38,0x08,0x00,0x20,0x38,0x26,0x21,0x20,0x20,0x38,0x00, //"Z"
|
0x18,0x08,0x08,0x08,0xC8,0x38,0x08,0x00,0x20,0x38,0x26,0x21,0x20,0x20,0x38,0x00, //"Z"
|
||||||
0x00,0x00,0x00,0xFE,0x02,0x02,0x02,0x00,0x00,0x00,0x00,0x7F,0x40,0x40,0x40,0x00, //"["
|
0x00,0x00,0x00,0xFE,0x02,0x02,0x02,0x00,0x00,0x00,0x00,0x7F,0x40,0x40,0x40,0x00, //"["
|
||||||
0x00,0x0C,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0C,0x30,0xC0, //"\"
|
0x00,0x0C,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0C,0x30,0xC0, //"\"
|
||||||
0x00,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,0x00,0x40,0x40,0x40,0x7F,0x00,0x00,0x00, //"]"
|
0x00,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,0x00,0x40,0x40,0x40,0x7F,0x00,0x00,0x00, //"]"
|
||||||
0x00,0x00,0x04,0x02,0x02,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //"^"
|
0x00,0x00,0x04,0x02,0x02,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //"^"
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80, //"_"
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80, //"_"
|
||||||
0x00,0x02,0x06,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //"`"
|
0x00,0x02,0x06,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //"`"
|
||||||
0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x19,0x24,0x22,0x22,0x22,0x1F,0x20, //"a"
|
0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x19,0x24,0x22,0x22,0x22,0x1F,0x20, //"a"
|
||||||
0x08,0xF8,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x3F,0x11,0x20,0x20,0x11,0x0E,0x00, //"b"
|
0x08,0xF8,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x3F,0x11,0x20,0x20,0x11,0x0E,0x00, //"b"
|
||||||
0x00,0x00,0x00,0x80,0x80,0x80,0x00,0x00,0x00,0x0E,0x11,0x20,0x20,0x20,0x11,0x00, //"c"
|
0x00,0x00,0x00,0x80,0x80,0x80,0x00,0x00,0x00,0x0E,0x11,0x20,0x20,0x20,0x11,0x00, //"c"
|
||||||
0x00,0x00,0x00,0x80,0x80,0x88,0xF8,0x00,0x00,0x0E,0x11,0x20,0x20,0x10,0x3F,0x20, //"d"
|
0x00,0x00,0x00,0x80,0x80,0x88,0xF8,0x00,0x00,0x0E,0x11,0x20,0x20,0x10,0x3F,0x20, //"d"
|
||||||
0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x22,0x22,0x22,0x22,0x13,0x00, //"e"
|
0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x22,0x22,0x22,0x22,0x13,0x00, //"e"
|
||||||
0x00,0x80,0x80,0xF0,0x88,0x88,0x88,0x18,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00, //"f"
|
0x00,0x80,0x80,0xF0,0x88,0x88,0x88,0x18,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00, //"f"
|
||||||
0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x6B,0x94,0x94,0x94,0x93,0x60,0x00, //"g"
|
0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x6B,0x94,0x94,0x94,0x93,0x60,0x00, //"g"
|
||||||
0x08,0xF8,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20, //"h"
|
0x08,0xF8,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20, //"h"
|
||||||
0x00,0x80,0x98,0x98,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00, //"i"
|
0x00,0x80,0x98,0x98,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00, //"i"
|
||||||
0x00,0x00,0x00,0x80,0x98,0x98,0x00,0x00,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00, //"j"
|
0x00,0x00,0x00,0x80,0x98,0x98,0x00,0x00,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00, //"j"
|
||||||
0x08,0xF8,0x00,0x00,0x80,0x80,0x80,0x00,0x20,0x3F,0x24,0x02,0x2D,0x30,0x20,0x00, //"k"
|
0x08,0xF8,0x00,0x00,0x80,0x80,0x80,0x00,0x20,0x3F,0x24,0x02,0x2D,0x30,0x20,0x00, //"k"
|
||||||
0x00,0x08,0x08,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00, //"l"
|
0x00,0x08,0x08,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00, //"l"
|
||||||
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x20,0x3F,0x20,0x00,0x3F,0x20,0x00,0x3F, //"m"
|
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x20,0x3F,0x20,0x00,0x3F,0x20,0x00,0x3F, //"m"
|
||||||
0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20, //"n"
|
0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20, //"n"
|
||||||
0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00, //"o"
|
0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00, //"o"
|
||||||
0x80,0x80,0x00,0x80,0x80,0x00,0x00,0x00,0x80,0xFF,0xA1,0x20,0x20,0x11,0x0E,0x00, //"p"
|
0x80,0x80,0x00,0x80,0x80,0x00,0x00,0x00,0x80,0xFF,0xA1,0x20,0x20,0x11,0x0E,0x00, //"p"
|
||||||
0x00,0x00,0x00,0x80,0x80,0x00,0x80,0x00,0x00,0x0E,0x11,0x20,0x20,0xA1,0xFF,0x80, //"q"
|
0x00,0x00,0x00,0x80,0x80,0x00,0x80,0x00,0x00,0x0E,0x11,0x20,0x20,0xA1,0xFF,0x80, //"q"
|
||||||
0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x20,0x20,0x3F,0x21,0x20,0x00,0x01,0x00, //"r"
|
0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x20,0x20,0x3F,0x21,0x20,0x00,0x01,0x00, //"r"
|
||||||
0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x13,0x24,0x24,0x24,0x24,0x19,0x00, //"s"
|
0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x13,0x24,0x24,0x24,0x24,0x19,0x00, //"s"
|
||||||
0x00,0x80,0x80,0xE0,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x1F,0x20,0x20,0x00,0x00, //"t"
|
0x00,0x80,0x80,0xE0,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x1F,0x20,0x20,0x00,0x00, //"t"
|
||||||
0x80,0x80,0x00,0x00,0x00,0x80,0x80,0x00,0x00,0x1F,0x20,0x20,0x20,0x10,0x3F,0x20, //"u"
|
0x80,0x80,0x00,0x00,0x00,0x80,0x80,0x00,0x00,0x1F,0x20,0x20,0x20,0x10,0x3F,0x20, //"u"
|
||||||
0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x00,0x01,0x0E,0x30,0x30,0x0E,0x01,0x00, //"v"
|
0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x00,0x01,0x0E,0x30,0x30,0x0E,0x01,0x00, //"v"
|
||||||
0x80,0x80,0x00,0x00,0x00,0x80,0x80,0x80,0x0F,0x30,0x0C,0x03,0x0C,0x30,0x0F,0x00, //"w"
|
0x80,0x80,0x00,0x00,0x00,0x80,0x80,0x80,0x0F,0x30,0x0C,0x03,0x0C,0x30,0x0F,0x00, //"w"
|
||||||
0x00,0x80,0x80,0x00,0x00,0x80,0x80,0x00,0x00,0x20,0x31,0x0E,0x0E,0x31,0x20,0x00, //"x"
|
0x00,0x80,0x80,0x00,0x00,0x80,0x80,0x00,0x00,0x20,0x31,0x0E,0x0E,0x31,0x20,0x00, //"x"
|
||||||
0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x80,0x81,0x8E,0x70,0x18,0x06,0x01,0x00, //"y"
|
0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x80,0x81,0x8E,0x70,0x18,0x06,0x01,0x00, //"y"
|
||||||
0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x21,0x30,0x2C,0x22,0x21,0x30,0x00, //"z"
|
0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x21,0x30,0x2C,0x22,0x21,0x30,0x00, //"z"
|
||||||
0x00,0x00,0x00,0x00,0x80,0x7C,0x02,0x02,0x00,0x00,0x00,0x00,0x00,0x3F,0x40,0x40, //"{"
|
0x00,0x00,0x00,0x00,0x80,0x7C,0x02,0x02,0x00,0x00,0x00,0x00,0x00,0x3F,0x40,0x40, //"{"
|
||||||
0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00, //"|"
|
0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00, //"|"
|
||||||
0x00,0x02,0x02,0x7C,0x80,0x00,0x00,0x00,0x00,0x40,0x40,0x3F,0x00,0x00,0x00,0x00, //"}"
|
0x00,0x02,0x02,0x7C,0x80,0x00,0x00,0x00,0x00,0x40,0x40,0x3F,0x00,0x00,0x00,0x00, //"}"
|
||||||
0x00,0x06,0x01,0x01,0x02,0x02,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //"~" Index 94
|
0x00,0x06,0x01,0x01,0x02,0x02,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //"~" Index 94
|
||||||
)
|
)
|
||||||
|
|
||||||
SGUI_UINT32 SGUI_Resource_IndexMapper_MiniNum(SGUI_UINT32 uiCode)
|
SGUI_UINT32 SGUI_Resource_IndexMapper_MiniNum(SGUI_UINT32 uiCode)
|
||||||
|
@ -5,14 +5,14 @@
|
|||||||
/** Description: LCD display panel in wxWidgets frame. **/
|
/** Description: LCD display panel in wxWidgets frame. **/
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Include files. =//
|
//= Include files. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
#include "wxLCD.h"
|
#include "wxLCD.h"
|
||||||
#include "SGUI_Common.h"
|
#include "SGUI_Common.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
//= Function define. =//
|
//= Function define. =//
|
||||||
//=======================================================================//
|
//=======================================================================//
|
||||||
wxLCD::wxLCD(wxWindow *pclsParent, wxWindowID iWinID, const wxPoint& clsPosition, const wxSize& clsSizeInPixel):
|
wxLCD::wxLCD(wxWindow *pclsParent, wxWindowID iWinID, const wxPoint& clsPosition, const wxSize& clsSizeInPixel):
|
||||||
wxLCDBase(pclsParent, iWinID, clsPosition, clsSizeInPixel)
|
wxLCDBase(pclsParent, iWinID, clsPosition, clsSizeInPixel)
|
||||||
@ -178,7 +178,7 @@ void wxLCD::SetParameter(PixelPanelParameter* pstPanelParameter)
|
|||||||
if(NULL != pstPanelParameter)
|
if(NULL != pstPanelParameter)
|
||||||
{
|
{
|
||||||
SetPixelUnitSize(wxSize(pstPanelParameter->PixelUnitWidth, pstPanelParameter->PixelUnitHeight));
|
SetPixelUnitSize(wxSize(pstPanelParameter->PixelUnitWidth, pstPanelParameter->PixelUnitHeight));
|
||||||
SetGridVisibled(pstPanelParameter->EnableGrid);
|
SetGridVisibled(pstPanelParameter->EnableGrid);
|
||||||
SetPixelNumber(pstPanelParameter->HorizontalPixelNumber, pstPanelParameter->VerticalPixelNumber);
|
SetPixelNumber(pstPanelParameter->HorizontalPixelNumber, pstPanelParameter->VerticalPixelNumber);
|
||||||
SetBorderWidth(pstPanelParameter->BorderWidth);
|
SetBorderWidth(pstPanelParameter->BorderWidth);
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <SGUI_Typedef.h>
|
#include <SGUI_Typedef.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user