Class Index

Classes


Class $.wijmo.wijspread.Rect

Class Summary
Constructor Attributes Constructor Name and Description
 
Initializes a new instance of the Rect structure that has the specified <i>x</i>-coordinate, <i>y</i>-coordinate, width, and height.
Method Summary
Method Attributes Method Name and Description
 
contains(x, y)
Indicates whether the rectangle contains the specified <i>x</i>-coordinate and <i>y</i>-coordinate.
 
Gets the rectangle that intersects with the current rectangle.
 
intersect(x, y, width, height)
Indicates whether the specified rectangle intersects with the current rectangle.
 
Indicates whether the specified rectangle intersects with the current rectangle.
Class Detail
$.wijmo.wijspread.Rect(x, y, w, h)
Initializes a new instance of the Rect structure that has the specified <i>x</i>-coordinate, <i>y</i>-coordinate, width, and height.
Parameters:
{number} x
The x-coordinate of the top-left corner of the rectangle.
{number} y
The y-coordinate of the top-left corner of the rectangle.
{number} w
The width of the rectangle.
{number} h
The height of the rectangle.
Method Detail
{boolean} contains(x, y)
Indicates whether the rectangle contains the specified <i>x</i>-coordinate and <i>y</i>-coordinate.
Parameters:
{number} x
The x-coordinate of the point to check.
{number} y
The y-coordinate of the point to check.
Returns:
{boolean} true if (x, y) is contained by the rectangle; otherwise, false.

{Rect} getIntersectRect(rect)
Gets the rectangle that intersects with the current rectangle.
Parameters:
{Rect} rect
The rectangle.
Returns:
{Rect} The intersecting rectangle.

{boolean} intersect(x, y, width, height)
Indicates whether the specified rectangle intersects with the current rectangle.
Parameters:
{number} x
The x-coordinate of the top-left corner of the specified rectangle.
{number} y
The y-coordinate of the top-left corner of the specified rectangle.
{number} width
The width of the specified rectangle.
{number} height
The height of the specified rectangle.
Returns:
{boolean} true if the specified rectangle intersects with the current rectangle; otherwise, false.

{boolean} intersectRect(rect)
Indicates whether the specified rectangle intersects with the current rectangle.
Parameters:
{GrapeCity.$.wijmo.wijspread.Rect} rect
The specified rectangle.
Returns:
{boolean} true if the specified rectangle intersects with the current rectangle; otherwise, false.

©2013. ComponentOne, a division of GrapeCity. All Rights Reserved.