Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaScript Suite Documentation
Rectangle

Rectangle Class Reference

Constructors

Instance Methods

Constructors

new Rectangle(parameters)

Initializes an instance of Rectangle.

Instance Methods

rectangle.getHeight() ⇒ Number

Get the Height

Kind: Instance method of Rectangle
Returns: Number - the KEY_HEIGHT value

rectangle.getWidth() ⇒ Number

Get the Width

Kind: Instance method of Rectangle
Returns: Number - the KEY_WIDTH value

rectangle.getX() ⇒ Number

Get the X

Kind: Instance method of Rectangle
Returns: Number - the KEY_X value

rectangle.getY() ⇒ Number

Get the Y

Kind: Instance method of Rectangle
Returns: Number - the KEY_Y value

rectangle.setHeight(height) ⇒ Rectangle

Set the Height

Kind: Instance method of Rectangle
Returns: Rectangle - The class instance for method chaining.

ParamTypeDescription
height Number The height of the rectangle - The desired Height.

rectangle.setWidth(width) ⇒ Rectangle

Set the Width

Kind: Instance method of Rectangle
Returns: Rectangle - The class instance for method chaining.

ParamTypeDescription
width Number The width of the rectangle - The desired Width.

rectangle.setX(x) ⇒ Rectangle

Set the X

Kind: Instance method of Rectangle
Returns: Rectangle - The class instance for method chaining.

ParamTypeDescription
x Number The upper left X-coordinate of the rectangle - The desired X.

rectangle.setY(y) ⇒ Rectangle

Set the Y

Kind: Instance method of Rectangle
Returns: Rectangle - The class instance for method chaining.

ParamTypeDescription
y Number The upper left Y-coordinate of the rectangle - The desired Y.
View on GitHub.com
Previous Section Next Section