mirror of
https://gitee.com/Polarix/simplegui.git
synced 2025-06-17 21:47:52 +00:00
Compare commits
32 Commits
ef33751599
...
77ef661fcf
Author | SHA1 | Date | |
---|---|---|---|
![]() |
77ef661fcf | ||
![]() |
e8bc8f90e6 | ||
![]() |
40e16f73b1 | ||
![]() |
ec00bab5b7 | ||
![]() |
d6922f3b29 | ||
![]() |
4d79a90036 | ||
![]() |
0580f20553 | ||
![]() |
36baa087e2 | ||
![]() |
2adffd0fd6 | ||
![]() |
86c7d3256d | ||
![]() |
98fa4423c2 | ||
![]() |
aeeb18079b | ||
![]() |
25d819f40a | ||
![]() |
f01138be5b | ||
![]() |
13f1d2301e | ||
![]() |
c04df7f5a4 | ||
![]() |
547032447c | ||
![]() |
a8a9fde477 | ||
![]() |
1c3b488b01 | ||
![]() |
3af120e4f3 | ||
![]() |
d9b049e1c9 | ||
![]() |
235fc54f98 | ||
![]() |
6337b1f327 | ||
![]() |
73632ac3c9 | ||
![]() |
fb0ac82ca7 | ||
![]() |
a1bade9cee | ||
![]() |
7eb27b0a4f | ||
![]() |
3a18774d59 | ||
![]() |
9ab116625b | ||
![]() |
bd8c38476e | ||
![]() |
5474706551 | ||
![]() |
8c393854a7 |
@ -1,4 +1,4 @@
|
||||
/*************************************************************************/
|
||||
/*************************************************************************/
|
||||
/** Copyright. **/
|
||||
/** FileName: RTCNotice.c **/
|
||||
/** Author: Polarix **/
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*************************************************************************/
|
||||
/*************************************************************************/
|
||||
/** Copyright. **/
|
||||
/** FileName: List.c **/
|
||||
/** Author: Polarix **/
|
||||
|
BIN
Documents/images/A1/QA03.png
Normal file
BIN
Documents/images/A1/QA03.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 225 KiB |
BIN
Documents/images/A1/QA04.png
Normal file
BIN
Documents/images/A1/QA04.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
BIN
Documents/images/A1/QA05.png
Normal file
BIN
Documents/images/A1/QA05.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 75 KiB |
BIN
Documents/images/A1/QA06.png
Normal file
BIN
Documents/images/A1/QA06.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
@ -570,7 +570,6 @@ void SGUI_Basic_DrawCircle(SGUI_SCR_DEV* pstDeviceIF, SGUI_INT iCx, SGUI_INT iCy
|
||||
/*----------------------------------*/
|
||||
SGUI_INT iPosXOffset = iRadius;
|
||||
SGUI_INT iPosYOffset = 0;
|
||||
SGUI_INT iPosXOffset_Old = -1;
|
||||
SGUI_INT iXChange = 1 - (iRadius<<1); /* iRadius*2 */
|
||||
SGUI_INT iYChange = 1;
|
||||
SGUI_INT iRadiusError = 0;
|
||||
@ -589,13 +588,13 @@ void SGUI_Basic_DrawCircle(SGUI_SCR_DEV* pstDeviceIF, SGUI_INT iCx, SGUI_INT iCy
|
||||
while(iPosXOffset >= iPosYOffset)
|
||||
{
|
||||
// Fill the circle
|
||||
if((iRadius > 1) && (eFillColor != SGUI_COLOR_TRANS) && (iPosXOffset_Old != iPosXOffset))
|
||||
if(eFillColor != SGUI_COLOR_TRANS)
|
||||
{
|
||||
SGUI_Basic_DrawVerticalLine(pstDeviceIF, iCx-iPosXOffset, iCy-iPosYOffset+1, iCy+iPosYOffset-1, eFillColor);
|
||||
SGUI_Basic_DrawVerticalLine(pstDeviceIF, iCx+iPosXOffset, iCy-iPosYOffset+1, iCy+iPosYOffset-1, eFillColor);
|
||||
SGUI_Basic_DrawVerticalLine(pstDeviceIF, iCx-iPosXOffset+1, iCy-iPosYOffset, iCy+iPosYOffset, eFillColor);
|
||||
SGUI_Basic_DrawVerticalLine(pstDeviceIF, iCx+iPosXOffset-1, iCy-iPosYOffset, iCy+iPosYOffset, eFillColor);
|
||||
SGUI_Basic_DrawVerticalLine(pstDeviceIF, iCx-iPosYOffset, iCy-iPosXOffset, iCy+iPosXOffset, eFillColor);
|
||||
SGUI_Basic_DrawVerticalLine(pstDeviceIF, iCx+iPosYOffset, iCy-iPosXOffset, iCy+iPosXOffset, eFillColor);
|
||||
}
|
||||
SGUI_Basic_DrawVerticalLine(pstDeviceIF, iCx-iPosYOffset, iCy-iPosXOffset+1, iCy+iPosXOffset-1, eFillColor);
|
||||
SGUI_Basic_DrawVerticalLine(pstDeviceIF, iCx+iPosYOffset, iCy-iPosXOffset+1, iCy+iPosXOffset-1, eFillColor);
|
||||
|
||||
// Draw edge.
|
||||
SGUI_Basic_DrawPoint(pstDeviceIF, iCx+iPosXOffset, iCy-iPosYOffset, eEdgeColor); /* 0- 45 */
|
||||
@ -607,8 +606,6 @@ void SGUI_Basic_DrawCircle(SGUI_SCR_DEV* pstDeviceIF, SGUI_INT iCx, SGUI_INT iCy
|
||||
SGUI_Basic_DrawPoint(pstDeviceIF, iCx+iPosYOffset, iCy+iPosXOffset, eEdgeColor); /* 270-315 */
|
||||
SGUI_Basic_DrawPoint(pstDeviceIF, iCx+iPosXOffset, iCy+iPosYOffset, eEdgeColor); /* 315-360 */
|
||||
|
||||
iPosXOffset_Old = iPosXOffset;
|
||||
|
||||
iPosYOffset++;
|
||||
iRadiusError += iYChange;
|
||||
iYChange += 2;
|
||||
|
@ -128,7 +128,12 @@ HMI_ENGINE_RESULT HMI_StartEngine(const void* pstParameters)
|
||||
if(NULL != pstStartScreen->pstActions->Prepare)
|
||||
{
|
||||
eProcessResult = pstStartScreen->pstActions->Prepare(g_pstActivedEngineObject->Interface, pstParameters);
|
||||
g_pstActivedEngineObject->Interface->fnSyncBuffer();
|
||||
|
||||
if( (NULL != g_pstActivedEngineObject->Interface) &&
|
||||
(NULL != g_pstActivedEngineObject->Interface->fnSyncBuffer))
|
||||
{
|
||||
g_pstActivedEngineObject->Interface->fnSyncBuffer();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
Images/WeiChatQRCode.png
Normal file
BIN
Images/WeiChatQRCode.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 125 KiB |
20
README.md
20
README.md
@ -4,7 +4,7 @@
|
||||
|
||||
#### 简介
|
||||
|
||||
SimpleGUI是一款针对单色显示屏设计的GUI绘图接口库。
|
||||
SimpleGUI是一款针对单色显示屏设计的接口库。
|
||||
|
||||
> 
|
||||
|
||||
@ -65,5 +65,19 @@ SimpleGUI发布已经有很长时间了,在发布后很多人都来询问一
|
||||
如果您有意参与SimpleGUI的讨论与改进,可以在以下地方留言:
|
||||
|
||||
1. 开源中国SimpleGUI页面:https://www.oschina.net/p/simplegui
|
||||
2. 码云页面:https://gitee.com/Polarix/simplegui
|
||||
3. QQ交流群:799501887
|
||||
2. Gitee托管页面:https://gitee.com/Polarix/simplegui
|
||||
3. GitCode托管页面:https://gitcode.com/Polarix/SimpleGUI
|
||||
4. QQ交流群:799501887
|
||||
|
||||
#### 开发计划
|
||||
|
||||
现阶段,SimpleGUI正在致力于解决以下问题
|
||||
|
||||
- 设计并使用遮罩机制,简化绘图接口,增强表达能力
|
||||
- 提供极坐标相关的绘图接口
|
||||
|
||||
#### 捐助项目
|
||||
|
||||
开源项目维护不易,如果您觉得本项目还不错,对您有所帮助,是不是也可以考虑捐助本项目。
|
||||
|
||||

|
||||
|
@ -200,7 +200,15 @@ void simulator_window::paint_pixel(int pos_x, int pos_y, uint32_t color_hex)
|
||||
|
||||
void simulator_window::clear_paint(void)
|
||||
{
|
||||
::memset(m_paint_buffer, 0x00, sizeof(uint8_t)*(m_width * m_height * SIMULATOR_COLOR_BYTES));
|
||||
for(int pos_y=0; pos_y<m_height; ++pos_y)
|
||||
{
|
||||
for(int pos_x=0; pos_x<m_width; ++pos_x)
|
||||
{
|
||||
m_paint_buffer[(pos_y * m_width + pos_x) * SIMULATOR_COLOR_BYTES + 0] = (SIMULATOR_BACKGROUND_COLOR >> 16) & 0xFF;
|
||||
m_paint_buffer[(pos_y * m_width + pos_x) * SIMULATOR_COLOR_BYTES + 1] = (SIMULATOR_BACKGROUND_COLOR >> 8) & 0xFF;
|
||||
m_paint_buffer[(pos_y * m_width + pos_x) * SIMULATOR_COLOR_BYTES + 2] = SIMULATOR_BACKGROUND_COLOR & 0xFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void simulator_window::sync_paint_buffer(void)
|
||||
|
Loading…
Reference in New Issue
Block a user