dundas.controls.Rectangle Class

 

Inheritance Hierarchy

 
Class
   dundas.controls.Cloneable
      dundas.controls.Rectangle
 

Constructors

 
  Name Description
init Creates a new instance.
 
 

Properties

 
  Name Description
bottom The coordinate of the bottom edge of this rectangle.
hCenter The y-axis value of the horizontal center of this rectangle.
height The height of this rectangle.
isSizeScaled Indicate whether or not the size reflects the size with the scale factored in or not.
left The left position of this rectangle.
position The position of this rectangle.
right The coordinate of the right edge of this rectangle.
size The size of the rectangle.
top The top position of this rectangle.
vCenter The x-axis value of the vertical center of this rectangle.
width The width of this rectangle.
 
 

Methods

 
  Name Description
clone Creates a copy of this.
containsPoint Check if a coordinate is contained by this rectangle.
convertToScaledSize Convert dimension to scaled size (scale factored in).
convertToUnscaledSize Convert dimensions to unscaled size (scale not factored in).
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.
round
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.