📄 wm_getwindowrect.txt
字号:
; generated by ARM C/C++ Compiler with , RVCT4.0 [Build 524] for uVision
; commandline ArmCC [--split_sections --debug -c --asm --interleave -o.\Obj\wm_getwindowrect.o --depend=.\Obj\wm_getwindowrect.d --device=DARMSTM --apcs=interwork -O3 -I..\..\include -I..\..\..\FWLib\library\inc -I..\..\..\USBLib\library\inc -I..\..\Config -I..\..\GUI\Core -I..\..\GUI\Font -I..\..\GUI\ConvertColor -I..\..\GUI\AntiAlias -I..\..\GUI\ConvertMono -I..\..\GUI\JPEG -I..\..\GUI\MemDev -I..\..\GUI\MultiLayer -I..\..\GUI\Widget -I..\..\GUI\WM -IC:\Keil\ARM\INC\ST\STM32F10x ..\..\GUI\WM\WM_GetWindowRect.c]
THUMB
AREA ||i.WM_GetWindowRect||, CODE, READONLY, ALIGN=2
WM_GetWindowRect PROC
;;;38 */
;;;39 void WM_GetWindowRect(GUI_RECT* pRect) {
000000 b510 PUSH {r4,lr}
000002 0004 MOVS r4,r0
;;;40 WM_HWIN hWin;
;;;41 WM_LOCK();
;;;42 if (pRect) {
000004 d00f BEQ |L1.38|
;;;43 WM_Obj* pWin;
;;;44 #if WM_SUPPORT_TRANSPARENCY
;;;45 hWin = WM__hATransWindow ? WM__hATransWindow : GUI_Context.hAWin;
000006 4808 LDR r0,|L1.40|
000008 f9b00000 LDRSH r0,[r0,#0] ; WM__hATransWindow
00000c b910 CBNZ r0,|L1.20|
00000e 4807 LDR r0,|L1.44|
000010 f9b0003c LDRSH r0,[r0,#0x3c] ; GUI_Context
|L1.20|
;;;46 #else
;;;47 hWin = GUI_Context.hAWin;
;;;48 #endif
;;;49 pWin = WM_HANDLE2PTR(hWin);
000014 f7fffffe BL GUI_ALLOC_h2p
;;;50 *pRect = pWin->Rect;
000018 4601 MOV r1,r0
00001a 4620 MOV r0,r4
00001c e8bd4010 POP {r4,lr}
000020 2208 MOVS r2,#8
000022 f7ffbffe B.W __aeabi_memcpy
|L1.38|
;;;51 }
;;;52 WM_UNLOCK();
;;;53 }
000026 bd10 POP {r4,pc}
;;;54
ENDP
|L1.40|
DCD WM__hATransWindow
|L1.44|
DCD GUI_Context
AREA ||i.WM_GetWindowRectEx||, CODE, READONLY, ALIGN=1
WM_GetWindowRectEx PROC
;;;58 */
;;;59 void WM_GetWindowRectEx(WM_HWIN hWin, GUI_RECT * pRect) {
000000 b510 PUSH {r4,lr}
000002 460c MOV r4,r1
;;;60 if (hWin && pRect) {
000004 2800 CMP r0,#0
000006 d00c BEQ |L2.34|
000008 2c00 CMP r4,#0
00000a d00a BEQ |L2.34|
;;;61 WM_Obj * pWin;
;;;62 WM_LOCK();
;;;63 pWin = WM_HANDLE2PTR(hWin);
00000c f7fffffe BL GUI_ALLOC_h2p
;;;64 if (pWin) {
000010 2800 CMP r0,#0
000012 d006 BEQ |L2.34|
;;;65 *pRect = pWin->Rect;
000014 4601 MOV r1,r0
000016 4620 MOV r0,r4
000018 e8bd4010 POP {r4,lr}
00001c 2208 MOVS r2,#8
00001e f7ffbffe B.W __aeabi_memcpy
|L2.34|
;;;66 }
;;;67 WM_UNLOCK();
;;;68 }
;;;69 }
000022 bd10 POP {r4,pc}
;;;70
ENDP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -