【Asphyre引擎】关于AsphyreTypes中OverlapRect的改动,都是泪啊!!!
2015-11-10 22:45
549 查看
OverlapRect改动:两个参数对调了。想问问LP,这样真的好吗?
Sphinx304版本的代码:
PXL的代码:
另:提供了IntRect方法和IntRectBDS方法,分别替代原来System.Classes的Bounds和Rect方法。在转换以前代码的时候,不要看到Rect()就直接替换成IntRect(),而是要替换成IntRectBDS()。
Sphinx304版本的代码:
function OverlapRect(const Rect1, Rect2: TRect): Boolean; begin Result:= (Rect1.Left < Rect2.Right) and (Rect1.Right > Rect2.Left) and (Rect1.Top < Rect2.Bottom) and (Rect1.Bottom > Rect2.Top); end;
PXL的代码:
function OverlapRect(const Rect1, Rect2: TIntRect): Boolean; begin Result := (Rect2.Left < Rect1.Right) and (Rect2.Right > Rect1.Left) and (Rect2.Top < Rect1.Bottom) and (Rect2.Bottom > Rect1.Top); end;
另:提供了IntRect方法和IntRectBDS方法,分别替代原来System.Classes的Bounds和Rect方法。在转换以前代码的时候,不要看到Rect()就直接替换成IntRect(),而是要替换成IntRectBDS()。
相关文章推荐
- asp.net mvc 链接到其他area地址
- ASP.NET页面间传值总结
- ASP.NET 5
- asp.net MVC: PagedList + View Model
- ASP.NET vNext or .NET vNext?
- 详解 ASP.NET异步
- 利用JasperReport+iReport进行Web报表开发
- Struts2整合JasperReport
- Asp.net或C#使用word模板生成替换后的Word和pdf文档-总结
- Dnsmasp详解
- JasperReport学习笔记8-JasperReport和Hibernate,Struts的整合
- JasperReport学习笔记7-导出成其它格式(pdf,xls,html)
- JasperReport学习笔记6-JRXML的标签
- JasperReport学习笔记5-其它数据生成动态的报表(WEB)
- asp+AJAX 用escape解决url传递中文乱码的问题
- JasperReport学习笔记4-查询数据库生成动态的报表(WEB)
- JasperReport学习笔记3-在浏览器生成PDF文件
- 在GridView中设置每个单元格的数据
- JasperReport学习笔记2-创建简单的报表例子
- JasperReport学习笔记1-了解JasperReport