MonobjcMonobjc Documented Class Library
CGRectIntersection Method (r1, r2)
NamespacesMonobjc.ApplicationServicesCGGeometryCGRectIntersection(CGRect, CGRect)

Returns the intersection of two rectangles.

Original signature is 'CGRect CGRectIntersection ( CGRect r1, CGRect r2 );'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static CGRect CGRectIntersection(
	CGRect r1,
	CGRect r2
)
Public Shared Function CGRectIntersection ( _
	r1 As CGRect, _
	r2 As CGRect _
) As CGRect
public:
static CGRect CGRectIntersection(
	CGRect r1, 
	CGRect r2
)
Parameters
r1 (CGRect)
MISSING
r2 (CGRect)
MISSING
Return Value
A rectangle that represents the intersection of the two specified rectangles. If the two rectangles do not intersect, returns the null rectangle. To check for this condition, use CGRectIsNull.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)