📄 gui_drawfocusrect.lst
字号:
C51 COMPILER V8.05a GUI_DRAWFOCUSRECT 04/11/2008 14:18:36 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE GUI_DRAWFOCUSRECT
OBJECT MODULE PLACED IN GUI_DrawFocusRect.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\Core\GUI_DrawFocusRect.c LARGE BROWSE MDU_F120 DEBUG OBJE
-CTEXTEND PRINT(.\GUI_DrawFocusRect.lst) OBJECT(GUI_DrawFocusRect.obj)
line level source
1 /*
2 *********************************************************************************************************
3 * uC/GUI
4 * Universal graphic software for embedded applications
5 *
6 * (c) Copyright 2002, Micrium Inc., Weston, FL
7 * (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
8 *
9 * 礐/GUI is protected by international copyright laws. Knowledge of the
10 * source code may not be used to write a similar product. This file may
11 * only be used in accordance with a license and should not be redistributed
12 * in any way. We appreciate your understanding and fairness.
13 *
14 ----------------------------------------------------------------------
15 File : GUI_DrawFocusRect.C
16 Purpose : Implementation of GUI_DrawFocusRect
17 ---------------------------END-OF-HEADER------------------------------
18 */
19
20 #include "gui\Core\GUI_Protected.h"
21
22 /*********************************************************************
23 *
24 * Public code
25 *
26 **********************************************************************
27 */
28
29
30 static void _DrawFocusRect(const GUI_RECT* pr) {
31 1 int i;
32 1 for (i = pr->x0; i <= pr->x1; i += 2) {
33 2 LCD_DrawPixel(i, pr->y0);
34 2 LCD_DrawPixel(i, pr->y1);
35 2 }
36 1 for (i = pr->y0; i <= pr->y1; i += 2) {
37 2 LCD_DrawPixel(pr->x0, i);
38 2 LCD_DrawPixel(pr->x1, i);
39 2 }
40 1 }
41
42 void GUI_DrawFocusRect(const GUI_RECT *pRect, int Dist) {
43 1 GUI_RECT r;
44 1 GUI__ReduceRect(&r, pRect, Dist);
45 1 GUI_LOCK();
46 1 #if (GUI_WINSUPPORT)
WM_ADDORG(r.x0, r.y0);
WM_ADDORG(r.x1, r.y1);
WM_ITERATE_START(&r); {
#endif
51 1 _DrawFocusRect(&r);
52 1 #if (GUI_WINSUPPORT)
} WM_ITERATE_END();
#endif
C51 COMPILER V8.05a GUI_DRAWFOCUSRECT 04/11/2008 14:18:36 PAGE 2
55 1 GUI_UNLOCK();
56 1 }
57
58
59
60
61
62
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 303 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- 16
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -