This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathglobalLoc.xml
More file actions
47 lines (47 loc) · 2.82 KB
/
Copy pathglobalLoc.xml
File metadata and controls
47 lines (47 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<doc>
<legacy_id>2246</legacy_id>
<name>globalLoc</name>
<type>function</type>
<syntax>
<example>the globalLoc of <i>point</i></example>
<example>globalLoc(<i>point</i>)</example>
</syntax>
<library></library>
<objects>
</objects>
<synonyms>
</synonyms>
<classification>
<category>Appearance & Positioning</category>
</classification>
<references>
<command tag="revSetVideoGrabberRect">revSetVideoGrabberRect Command</command>
<keyword tag="relative">relative Keyword</keyword>
</references>
<history>
<introduced version="1.0">Added.</introduced>
</history>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
</security>
<summary><glossary tag="return">Returns</glossary> the equivalent, in <href tag="glossary/Appearance/288.xml">global coordinates</href>, of a <keyword tag="point">point</keyword> given in <glossary tag="relative coordinates">local coordinates</glossary>.</summary>
<examples>
<example>globalLoc("22,173")</example>
<example>put globalLoc(the mouseLoc) into screenLoc</example>
</examples>
<description>
<p>Use the <b>globalLoc</b> <control_st tag="function">function</control_st> to translate between <href tag="glossary/Appearance/288.xml">screen coordinates</href> and <glossary tag="relative coordinates">window coordinates</glossary>.</p><p/><p><b>Parameters:</b></p><p>The <i>point</i> is any <glossary tag="expression">expression</glossary> that evaluates to a <keyword tag="point">point</keyword>--a vertical and horizontal distance from the top left of the <glossary tag="current stack">current stack</glossary>, separated by a comma.</p><p/><p><b>Value:</b></p><p>The <b>globalLoc</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> two <glossary tag="integer">integers</glossary> separated by a comma.</p><p/><p><b>Comments:</b></p><p>In window coordinates, the point<code> 0,0 </code>is at the top left of the stack window. In screen coordinates, the point<code> 0,0 </code>is at the top left of the screen.</p><p/><p>The point returned by the <b>globalLoc</b> function is relative to the top left of the screen. If the system has more than one monitor, the <b>globalLoc</b> function <glossary tag="return">returns</glossary> a <keyword tag="point">point</keyword> relative to the top left of the main screen.</p><p/><p>The first item of the return value is the horizontal distance in pixels from the left edge of the screen to the location given by <i>point</i>. The second <keyword tag="item">item</keyword> of the <glossary tag="return value">return value</glossary> is the vertical distance from the top edge of the screen to the location given by <i>point</i>.</p>
</description>
</doc>