📄 gui_rectsintersect.lst
字号:
C51 COMPILER V8.05a GUI_RECTSINTERSECT 04/11/2008 14:18:46 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE GUI_RECTSINTERSECT
OBJECT MODULE PLACED IN GUI_RectsIntersect.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\Core\GUI_RectsIntersect.c LARGE BROWSE MDU_F120 DEBUG OBJ
-ECTEXTEND PRINT(.\GUI_RectsIntersect.lst) OBJECT(GUI_RectsIntersect.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_RectsIntersect.C
16 Purpose : Implementation of GUI_RectsIntersect
17 ---------------------------END-OF-HEADER------------------------------
18 */
19
20
21 #include <stddef.h> /* needed for definition of NULL */
22 #include "gui\Core\GUI_Protected.h"
23
24
25 /*******************************************************************
26 *
27 * Macros
28 *
29 ********************************************************************
30
31 Check if rectangle do intersect.
32 Returns:
33 0 if they do not.
34 1 if they do.
35 */
36
37 int GUI_RectsIntersect(const GUI_RECT* pr0, const GUI_RECT* pr1) {
38 1 if (pr0->y0 <= pr1->y1) {
39 2 if (pr1->y0 <= pr0->y1) {
40 3 if (pr0->x0 <= pr1->x1) {
41 4 if (pr1->x0 <= pr0->x1) {
42 5 return 1;
43 5 }
44 4 }
45 3 }
46 2 }
47 1 return 0;
48 1 }
49
50
51
52
53
C51 COMPILER V8.05a GUI_RECTSINTERSECT 04/11/2008 14:18:46 PAGE 2
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 179 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- 6
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 + -