dundas.Rect Class

 

Inheritance Hierarchy

 
Class
   dundas.Rect
 

Constructors

 
  Name Description
init Initializes a new instance of Rect.
 
 

Properties

 
  Name Description
bottom Gets or sets the bottom coordinate of the rectangle by modifying the height. If the new value is less than top, the rectangle is normalized by adjusting top and making height positive.
height Gets or sets the height of the rectangle. If set to a negative value, the rectangle is normalized by adjusting top and making height positive.
left Gets or sets the left coordinate of the rectangle without modifying the width.
right Gets or sets the right coordinate of the rectangle by modifying the width. If the new value is less than left, the rectangle is normalized by adjusting left and making width positive.
top Gets or sets the top coordinate of the rectangle without modifying the height.
width Gets or sets the width of the rectangle. If set to a negative value, the rectangle is normalized by adjusting left and making width positive.
x Gets or sets the left coordinate of the rectangle without modifying the width.
y Gets or sets the top coordinate of the rectangle without modifying the height.
 
 

Methods

 
  Name Description
clone Returns a mutable copy of this rectangle.
containsPoint Determines whether this rectangle contains the coordinates of a point.
containsRect Determines whether this rectangle contains another rectangle.
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.

Static
fromPoint Creates a rectangle using two points.
intersectsWith Determines whether the specified rectangle intersects with this rectangle.
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.
union Expands the current rectangle exactly enough to contain the specified rectangle.