forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathis-within.lcdoc
More file actions
51 lines (33 loc) · 1.15 KB
/
is-within.lcdoc
File metadata and controls
51 lines (33 loc) · 1.15 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
48
49
50
Name: is within
Type: operator
Syntax: <point> is within <rectangle>
Summary:
<evaluate|Evaluates> to true if a <point> is inside the specified
rectangle, false if it is outside.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
"22,33" is within "22,17,150,200" -- evaluates to true
Example:
the mouseLoc is within the rect of this card
Parameters:
point:
Any expression that evaluates to a point--a vertical and horizontal
distance from the top left of the current stack, separated by a comma.
rectangle:
Any expression that evaluates to a rectangle--a right, top, left, and
bottom edge, separated by commas.
Description:
Use the <is within> <operator> to determine whether a <point> is inside
a rectangle.
The expression
<point> is within the rect of object
is equivalent to
within(object,point)
unless the object is a graphic or image, or a tabbed button.
The <is within> <operator> is the logical inverse of the <is not within>
<operator>. When one is true, the other is false.
References: within (function), evaluate (glossary), operator (glossary),
point (keyword), is not within (operator)
Tags: ui