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);
|
|
|
|
void SGUI_Basic_DrawPoint(SGUI_SCR_DEV* pstDeviceIF, SGUI_UINT uiPosX, SGUI_UINT uiPosY, SGUI_COLOR eColor);
|
|
|
|
void SGUI_Basic_DrawLine(SGUI_SCR_DEV* pstDeviceIF, SGUI_INT uiStartX, SGUI_INT uiStartY, SGUI_INT uiEndX, SGUI_INT uiEndY, SGUI_COLOR eColor);
|
|
|
|
void SGUI_Basic_DrawLineInArea(SGUI_SCR_DEV* pstDeviceIF, SGUI_POINT* pstStartPoint, SGUI_POINT* pstEndPoint, SGUI_RECT* pstArea, SGUI_COLOR eColor);
|
|
|
|
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);
|
|
|
|
void SGUI_Basic_ReverseBlockColor(SGUI_SCR_DEV* pstDeviceIF, SGUI_UINT uiStartX, SGUI_UINT uiStartY, SGUI_UINT uiWidth, SGUI_UINT uiHeight);
|
|
|
|
void SGUI_Basic_DrawBitMap(SGUI_SCR_DEV* pstDeviceIF, SGUI_RECT* pstDisplayArea, SGUI_POINT* pstInnerPos, const SGUI_BMP_RES* pstBitmapData, SGUI_DRAW_MODE eDrawMode);
|
|
|
|
SGUI_BOOL SGUI_Basic_PointIsInArea(const SGUI_RECT* pstArea, const SGUI_POINT* pstPoint);
|
2017-08-02 14:24:26 +00:00
|
|
|
|
|
|
|
#endif
|