# Dimension

A simple object consisting of the position and size measurements. Effectively combines Size and Point but ensures numeric x/y values.

Availability
2.0.0
2.0.0
9.2.0
Extends

NOTE

This is an abstract type. Any object of this structure can be used where this type is used.

# Overview

When a dimension is returned by the Titanium.UI.View.rect property, x represents the view's left position, and y represents the view's top position.

The Titanium.UI.View.size property returns a dimension object with x and y both set to 0.

# Properties

# height

Availability
2.0.0
2.0.0
9.2.0
height :Number

The height measurement.


# width

Availability
2.0.0
2.0.0
9.2.0
width :Number

The width measurement.


# x

Availability
2.0.0
2.0.0
9.2.0
x :Number

The x-axis coordinate of the position. When returned by rect the position is relative to it's parent.


# y

Availability
2.0.0
2.0.0
9.2.0
y :Number

The y-axis coordinate of the position. When returned by rect the position is relative to it's parent.