优化窗口移动的逻辑,显示还是有问题,需要继续优化

This commit is contained in:
2021-08-16 23:36:56 +08:00
parent 398d16f69f
commit 2eb96d763e
16 changed files with 13476 additions and 13390 deletions
+8 -4
View File
@@ -18,6 +18,8 @@ typedef struct
uint16_t high;
COLOR_16 background;
char title[16];
}window;
@@ -38,11 +40,13 @@ typedef struct
uint16_t high;
windows_stack *windows;
windows_stack *last_windows;
//touch_device *touch; //Ò»¸öUI¹ÒÔØÒ»¸ö´¥¿ØÉ豸
int window_move_x;
int window_move_y;
window *moveed_windwos;//¼Ç¼ÕýÔÚ±»Òƶ¯µÄ´°¿Ú
int move_x;
int move_y;
uint8_t move_lock:1;
uint8_t First_click_flag:1;
uint8_t refresh_ui_flag:1;
uint8_t window_move_lock:1;
}UI;
void Inteface_SetCursor(uint16_t Xpos, uint16_t Ypos);