📄 wm_setusercliprect.lst
字号:
C51 COMPILER V8.05a WM_SETUSERCLIPRECT 04/11/2008 14:19:57 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE WM_SETUSERCLIPRECT
OBJECT MODULE PLACED IN WM_SetUserClipRect.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\WM\WM_SetUserClipRect.c LARGE BROWSE MDU_F120 DEBUG OBJEC
-TEXTEND PRINT(.\WM_SetUserClipRect.lst) OBJECT(WM_SetUserClipRect.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 : WM_SetUserClipArea.c
16 Purpose : Windows manager, add. module
17 ----------------------------------------------------------------------
18 */
19
20 #include "WM_Intern.h"
21
22 #if GUI_WINSUPPORT
/*
********************************************************************
* *
* Reduce clipping area *
* *
********************************************************************
*/
const GUI_RECT* WM_SetUserClipRect(const GUI_RECT* pRect) {
const GUI_RECT* pRectReturn;
GUI_RECT r;
WM_Obj* pAWin;
WM_LOCK();
pRectReturn = GUI_Context.WM__pUserClipRect;
GUI_Context.WM__pUserClipRect = pRect;
/* Activate it ... */
if (pRect) {
r = *pRect;
pAWin = WM_HANDLE2PTR(GUI_Context.hAWin);
WM__Client2Screen(pAWin, &r);
LCD_SetClipRectEx(&r);
} else {
WM_GetWindowRect(&r);
LCD_SetClipRectEx(&r);
}
WM_UNLOCK();
return pRectReturn;
}
#else
54
C51 COMPILER V8.05a WM_SETUSERCLIPRECT 04/11/2008 14:19:57 PAGE 2
55 void WM_SetUserClipRect(void) {} /* avoid empty object files */
56
57 #endif
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 1 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
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 + -