nsrect(
X
,
Y
,
WIDTH
,
HEIGHT
)

The nsrect( function defines a rectangle using the same parameter order as the Cocoa NSMakeRect( function.


Parameters

This function has four parameters:

x – is the position of the left edge of the rectangle. (Like standard cartesian co-ordinates, positive is right and negative is left.)

y – is the position of the top edge of the rectangle. (Unlike standard cartesian co-ordinates, positive is down and negative is up.)

width – is the width of the rectangle.

height – is the height of the rectangle.


Description

This function defines a rectangle. It is similar to rectanglesize(, but the coordinates are listed in the order used by the Cocoa NSMakeRect( function.

Note: The rectanglesize( function lists the coordinates in the order used by Bill Atkinson in Quickdraw (the original Mac 128 ROMs).


See Also


History

VersionStatusNotes
10.0=NewNew in this version.