⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rect.h

📁 Lido PXA270平台开发板的最新BSP,包括源代码
💻 H
字号:
/******************************************************************************
* Name         : rect.h
* Title        : Rectangle utility functions.
* Author(s)    : Imagination Technologies
* Created      : 1st August 2003
*
* Copyright    : 2003 by Imagination Technologies Limited.
*                All rights reserved.  No part of this software, either
*                material or conceptual may be copied or distributed,
*                transmitted, transcribed, stored in a retrieval system 
*                or translated into any human or computer language in any
*                form by any means, electronic, mechanical, manual or
*                other-wise, or disclosed to third parties without the
*                express written permission of Imagination Technologies
*                Limited, Unit 8, HomePark Industrial Estate, 
*                King's Langley, Hertfordshire, WD4 8LZ, U.K.
*
* Description  : Rectangle utility functions.
*
* Platform     : Generic
*
* Notes        : formerly rect.h mks rev 1.1
*
* Modifications:-
* $Log: rect.h $
*
*
******************************************************************************/

#if !defined (__RECT_H__)
#define __RECT_H__

#include <windef.h>

__inline LONG RectHeight ( const RECT * psRect )
{
  // RectHeight
  // This function returns the height of a rectangle. Inlined.
 
  return (psRect->bottom - psRect->top);
}


__inline LONG RectWidth ( const RECT * psRect )
{
  // RectWidth
  // This function returns the width of a rectangle. Inlined.

  return (psRect->right - psRect->left);
}

#endif /* #ifndef __RECT_H__ */

/*****************************************************************************
 End of file (rect.h)
*****************************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -