JCL Help:RectIncludesPoint

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Tests if a point lies within a rectangle.


Pascal

 function RectIncludesPoint(const R: TRect; const Pt: TPoint): Boolean;


Parameters

Parameters Description
const R: TRect The bounding rectangle.
const Pt: TPoint The point to test.


Return Value

If the point lies inside the rectangle (excluding the borders) the function returns True, otherwise it returns False.


Description

RectIncludesPoint tests if the specified point lies inside the boundaries defined by the specified rectangle. The test is performed excluding the borders of the rectangle (a point lying on a border of the rectangle causes the function to return False).


See Also

RectIncludesRect


About

Unit

JclGraphUtils


Donator

Pelle F. S. Liljendal


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page