S3C44B0X全套培训资料及源代码 e008s3c44b0x

源代码在线查看: figure.c

软件大小: 15826 K
上传用户: lwsnsfp17
关键词: e008s3c44b0x S3C44B0X 培训资料 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				#include "..\inc\drv\figure.h"								void CopyRect(structRECT* prect1, structRECT* prect2)				{					prect1->left=prect2->left;					prect1->top=prect2->top;					prect1->right=prect2->right;					prect1->bottom=prect2->bottom;				}								void SetRect(structRECT* prect, int left, int top, int right, int bottom)				{					prect->left=left;					prect->top=top;					prect->right=right;					prect->bottom=bottom;				}								void InflateRect(structRECT* prect, int cx,int cy)				{					prect->left-=cx;					prect->top-=cy;					prect->right+=cx;					prect->bottom+=cy;				}								U8 IsInRect(structRECT *prect, int x, int y)				{					if(x>=prect->left && xright && y>=prect->top && ybottom)						return TRUE;									return FALSE;				}								U8 IsInRect2(structRECT *prect, structPOINT*ppt)				{					return IsInRect(prect, ppt->x, ppt->y);				}								int GetRectWidth(structRECT* prect)				{					return prect->right-prect->left;				}								int GetRectHeight(structRECT* prect)				{					return prect->bottom-prect->top;				}								void RectOffSet(structRECT* prect, int x,int y)				{					prect->left+=x;					prect->right+=x;					prect->top+=y;					prect->bottom+=y;				}											

相关资源