2017-08-02 14:24:26 +00:00
|
|
|
#ifndef __INCLUDE_GUI_BASIC__
|
|
|
|
#define __INCLUDE_GUI_BASIC__
|
|
|
|
//=======================================================================//
|
|
|
|
//= Include files. =//
|
|
|
|
//=======================================================================//
|
|
|
|
#include "SGUI_Common.h"
|
|
|
|
|
|
|
|
//=======================================================================//
|
|
|
|
//= User Macro definition. =//
|
|
|
|
//=======================================================================//
|
2019-12-01 15:04:02 +00:00
|
|
|
#define SGUI_USED_BYTE(V) (((V-1)/8)+1)
|
2018-06-20 14:34:03 +00:00
|
|
|
//Bitmap(include font) data bit operation
|
|
|
|
#define SGUI_SET_PAGE_BIT(PAGE, Bit) ((PAGE) = (PAGE) | (0x01 << (Bit)))
|
|
|
|
#define SGUI_CLR_PAGE_BIT(PAGE, Bit) ((PAGE) = (PAGE) & (~(0x01 << (Bit))))
|
2018-10-29 15:51:57 +00:00
|
|
|
#define SGUI_GET_PAGE_BIT(PAGE, Bit) ((((PAGE) & (0x01 << (Bit)))>0)?1:0)
|
2017-08-02 14:24:26 +00:00
|
|
|
|
|
|
|
//=======================================================================//
|
|
|
|
//= Public function declaration. =//
|
|
|
|
//=======================================================================//
|
2019-12-25 15:23:13 +00:00
|
|
|
void SGUI_Basic_ClearScreen(SGUI_SCR_DEV* pstDeviceIF);
|
2020-12-24 14:36:52 +00:00
|
|
|
void SGUI_Basic_DrawPoint(SGUI_SCR_DEV* pstDeviceIF, SGUI_INT iPosX, SGUI_INT iPosY, SGUI_COLOR eColor);
|
2019-12-25 15:23:13 +00:00
|
|
|
void SGUI_Basic_DrawLine(SGUI_SCR_DEV* pstDeviceIF, SGUI_INT uiStartX, SGUI_INT uiStartY, SGUI_INT uiEndX, SGUI_INT uiEndY, SGUI_COLOR eColor);
|
2020-03-19 14:34:59 +00:00
|
|
|
void SGUI_Basic_DrawLineInArea(SGUI_SCR_DEV* pstDeviceIF, SGUI_POINT* pstStartPoint, SGUI_POINT* pstEndPoint, const SGUI_RECT* pcstArea, SGUI_COLOR eColor);
|
2019-12-25 15:23:13 +00:00
|
|
|
void SGUI_Basic_DrawRectangle(SGUI_SCR_DEV* pstDeviceIF, SGUI_UINT uiStartX, SGUI_UINT uiStartY, SGUI_UINT uiWidth, SGUI_UINT uiHeight, SGUI_COLOR eEdgeColor, SGUI_COLOR eFillColor);
|
|
|
|
void SGUI_Basic_DrawCircle(SGUI_SCR_DEV* pstDeviceIF, SGUI_UINT uiCx, SGUI_UINT uiCy, SGUI_UINT uiRadius, SGUI_COLOR eEdgeColor, SGUI_COLOR eFillColor);
|
2020-12-24 14:36:52 +00:00
|
|
|
void SGUI_Basic_ReverseBlockColor(SGUI_SCR_DEV* pstDeviceIF, SGUI_INT iStartX, SGUI_INT iStartY, SGUI_INT iWidth, SGUI_INT iHeight);
|
2019-12-25 15:23:13 +00:00
|
|
|
void SGUI_Basic_DrawBitMap(SGUI_SCR_DEV* pstDeviceIF, SGUI_RECT* pstDisplayArea, SGUI_POINT* pstInnerPos, const SGUI_BMP_RES* pstBitmapData, SGUI_DRAW_MODE eDrawMode);
|
2020-12-24 14:36:52 +00:00
|
|
|
SGUI_COLOR SGUI_Basic_GetPoint(SGUI_SCR_DEV* pstDeviceIF, SGUI_INT iPosX, SGUI_INT iPosY);
|
2019-12-25 15:23:13 +00:00
|
|
|
SGUI_BOOL SGUI_Basic_PointIsInArea(const SGUI_RECT* pstArea, const SGUI_POINT* pstPoint);
|
2017-08-02 14:24:26 +00:00
|
|
|
|
|
|
|
#endif
|