2017-08-02 14:24:26 +00:00
|
|
|
#ifndef __INCLUDE_GUI_NOTICE_H__
|
|
|
|
#define __INCLUDE_GUI_NOTICE_H__
|
|
|
|
//=======================================================================//
|
2021-03-30 13:40:07 +00:00
|
|
|
//= Include files. =//
|
2017-08-02 14:24:26 +00:00
|
|
|
//=======================================================================//
|
|
|
|
#include "SGUI_Common.h"
|
|
|
|
#include "SGUI_Basic.h"
|
2019-03-06 13:44:21 +00:00
|
|
|
#include "SGUI_Text.h"
|
2017-08-02 14:24:26 +00:00
|
|
|
|
|
|
|
//=======================================================================//
|
2021-03-30 13:40:07 +00:00
|
|
|
//= Data type definition. =//
|
2017-08-02 14:24:26 +00:00
|
|
|
//=======================================================================//
|
2019-12-09 14:11:37 +00:00
|
|
|
typedef struct
|
2020-08-13 08:06:19 +00:00
|
|
|
{
|
2021-03-30 13:40:07 +00:00
|
|
|
#ifdef SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
|
|
|
SGUI_UINT8 uiDepthBits;
|
|
|
|
#endif // SGUI_CONF_GRAYSCALE_COLOR_MAPPING_ENABLED
|
|
|
|
SGUI_COLOR eEdgeColor;
|
|
|
|
SGUI_COLOR eFillColor;
|
|
|
|
SGUI_COLOR eTextColor;
|
2020-08-13 08:06:19 +00:00
|
|
|
}SGUI_NOTICE_PALETTE;
|
|
|
|
typedef struct
|
2019-12-09 14:11:37 +00:00
|
|
|
{
|
2021-03-30 13:40:07 +00:00
|
|
|
SGUI_CSZSTR cszNoticeText;
|
|
|
|
const SGUI_BMP_RES* pstIcon;
|
|
|
|
SGUI_RECT stLayout;
|
|
|
|
SGUI_NOTICE_PALETTE stPalette;
|
2020-08-13 08:06:19 +00:00
|
|
|
}SGUI_NOTICE_BOX;
|
2017-08-02 14:24:26 +00:00
|
|
|
|
|
|
|
//=======================================================================//
|
2021-03-30 13:40:07 +00:00
|
|
|
//= Public function declaration. =//
|
2017-08-02 14:24:26 +00:00
|
|
|
//=======================================================================//
|
2020-08-13 08:06:19 +00:00
|
|
|
SGUI_SIZE SGUI_Notice_Repaint(SGUI_SCR_DEV* pstDeviceIF, SGUI_NOTICE_BOX* pstObject, const SGUI_FONT_RES* pstFontRes, SGUI_INT uiTextOffset);
|
2019-12-25 15:23:13 +00:00
|
|
|
void SGUI_Notice_FitArea(SGUI_SCR_DEV* pstDeviceIF, SGUI_RECT* pstFitArea);
|
2017-08-02 14:24:26 +00:00
|
|
|
|
|
|
|
#endif // __INCLUDE_GUI_NOTICE_H__
|