优化窗口移动的逻辑,显示还是有问题,需要继续优化
This commit is contained in:
+8
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user