ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

rect.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 VOID
00004 FORCEINLINE
00005 RECTL_vSetRect(RECTL *prcl, LONG left, LONG top, LONG right, LONG bottom)
00006 {
00007     prcl->left = left;
00008     prcl->top = top;
00009     prcl->right = right;
00010     prcl->bottom = bottom;
00011 }
00012 
00013 VOID
00014 FORCEINLINE
00015 RECTL_vSetEmptyRect(RECTL *prcl)
00016 {
00017     prcl->left = 0;
00018     prcl->top = 0;
00019     prcl->right = 0;
00020     prcl->bottom = 0;
00021 }
00022 
00023 VOID
00024 FORCEINLINE
00025 RECTL_vOffsetRect(RECTL *prcl, INT cx, INT cy)
00026 {
00027     prcl->left += cx;
00028     prcl->right += cx;
00029     prcl->top += cy;
00030     prcl->bottom += cy;
00031 }
00032 
00033 BOOL
00034 FORCEINLINE
00035 RECTL_bIsEmptyRect(const RECTL *prcl)
00036 {
00037     return (prcl->left >= prcl->right || prcl->top >= prcl->bottom);
00038 }
00039 
00040 BOOL
00041 FORCEINLINE
00042 RECTL_bPointInRect(const RECTL *prcl, INT x, INT y)
00043 {
00044     return (x >= prcl->left && x < prcl->right &&
00045             y >= prcl->top  && y < prcl->bottom);
00046 }
00047 
00048 BOOL
00049 FORCEINLINE
00050 RECTL_bIsWellOrdered(const RECTL *prcl)
00051 {
00052     return ((prcl->left <= prcl->right) &&
00053             (prcl->top  <= prcl->bottom));
00054 }
00055 
00056 BOOL
00057 FASTCALL
00058 RECTL_bUnionRect(RECTL *prclDst, const RECTL *prcl1, const RECTL *prcl2);
00059 
00060 BOOL
00061 FASTCALL
00062 RECTL_bIntersectRect(RECTL *prclDst, const RECTL *prcl1, const RECTL *prcl2);
00063 
00064 VOID
00065 FASTCALL
00066 RECTL_vMakeWellOrdered(RECTL *prcl);
00067 
00068 VOID
00069 FASTCALL
00070 RECTL_vInflateRect(RECTL *rect, INT dx, INT dy);

Generated on Sat May 26 2012 04:37:15 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.