Re: Bounding Rectangle
Re: Bounding Rectangle
- Subject: Re: Bounding Rectangle
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 28 Jul 2002 14:28:00 -0700
On 7/28/02 12:13 PM, I wrote:
>
Can someone tell me where the class 'bounding rectangle' is defined? Many
>
applications define 'bounds' properties of their Class 'window' as having
>
the class 'bounding rectangle', almost always in the Standard Suite, or
>
occasionally just 'rectangle'.
>
>
OK, where is 'bounding rectangle' defined?
In the antique Finder Guide, copyright 1994, I have found this as a
definition for the 'bounds' property of the Finder Class 'item':
bounds The coordinates of the rectangle that bounds the content region
of the item9s icon.
Class: List of four integers (Bounding Rectangle data type).
The first two integers specify the coordinates of the upper left
corner of the item9s icon, and the last two integers specify
the coordinates of the lower-right corner of the icon.
Modifiable? Yes
Now we're getting somewhere. It appears that there is indeed something
called the 'Boundary Rectangle' data type, and that its class is:
List of four integers
Well, that's OK then. Both a list and an integer are clearly defined classes
in AppleScript, not to mention 'four', which is clear enough. And it's OK by
me if each implementation of 'bounds' for different application might want
to specify what the four integers each represent. I.e., it could be that
although the Finder specifies the first two integers as the coordinates - in
some unspecified measurement (pixels?) - as the upper left corner, again
presumably as {x, y} - {horizontal, vertical} - measuring from left edge
and top (? - or bottom?) edge, some other application might choose to define
the first two integers as left bottom corner, as long it tells me that
somewhere. It could even tell me if it's measuring from the top or bottom
edge if it were nice.
But where's this 'Boundary Rectangle' data type, and other 'data types'
defined? I'd still like to know that. Is this something so deep it doesn't
have to be defined anywhere human eyes can see? Is a 'data type' something
outside of and precursive to AppleScript, like 'integer' or 'string'? Maybe
that's it.
Anyway, even if it's in some deeper part of the Mac OS, where would data
types be defined, or at least enumerated? Does anyone know?
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.