Skip to content
kerrishotts edited this page Apr 1, 2013 · 1 revision

(part of UI)

Returns: size object

Parameters: aRect (rect)

Returns the size portion of a rect.

Usage

var aRect = UI.makeRect ( UI.makePoint (10, 10), UI.makeSize(100, 100) );
var aSize = UI.sizeFromRect ( aRect );
// aSize is now { w: 100, h: 100 }

Version

0.3 Introduced; Docs Valid

Clone this wiki locally