📄 gui_dispchar.lst
字号:
C51 COMPILER V8.05a GUI_DISPCHAR 04/11/2008 14:18:33 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE GUI_DISPCHAR
OBJECT MODULE PLACED IN GUI_DispChar.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\Core\GUI_DispChar.c LARGE BROWSE MDU_F120 DEBUG OBJECTEXT
-END PRINT(.\GUI_DispChar.lst) OBJECT(GUI_DispChar.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_DispChar.c
16 Purpose : Implementation of optional routines
17 ---------------------------END-OF-HEADER------------------------------
18 */
19
20
21 #include "gui\Core\GUI_Protected.h"
22
23
24
25 #if (GUI_WINSUPPORT)
/* Note on usage of this routine:
If at all possible, try to avoid using this, since
every call will invoke the window manager. If possible,
use the string routines.
*/
static void CL_DispChar(U16 c) {
GUI_RECT r;
WM_ADDORG(GUI_Context.DispPosX, GUI_Context.DispPosY);
r.x1 = (r.x0 = GUI_Context.DispPosX) + GUI_GetCharDistX(c)-1;
r.y1 = (r.y0 = GUI_Context.DispPosY) + GUI_GetFontSizeY()-1;
WM_ITERATE_START(&r) {
GL_DispChar(c);
if (c != '\n')
GUI_Context.DispPosX = r.x1 + 1;
} WM_ITERATE_END();
WM_SUBORG(GUI_Context.DispPosX,GUI_Context.DispPosY);
}
#endif
44
45 void GUI_DispChar(U16 c) {
46 1 GUI_LOCK();
47 1 #if (GUI_WINSUPPORT)
CL_DispChar(c);
#else
50 1 GL_DispChar(c);
51 1 #endif
52 1 GUI_UNLOCK();
53 1 }
54
C51 COMPILER V8.05a GUI_DISPCHAR 04/11/2008 14:18:33 PAGE 2
55
56
57 /***********************************************************
58 *
59 * GL/CL DispCharAt
60 *
61 ************************************************************
62
63 */
64
65 void GUI_DispCharAt(U16 c, I16P x, I16P y) {
66 1 GUI_LOCK();
67 1 GUI_Context.DispPosX =x;
68 1 GUI_Context.DispPosY =y;
69 1 #if (GUI_WINSUPPORT)
CL_DispChar(c);
#else
72 1 GL_DispChar(c);
73 1 #endif
74 1 GUI_UNLOCK();
75 1 }
76
77
78
79
80
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 40 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- 2
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 + -