Name
ccontext:InClip -- check if point is inside clip area
Synopsis
ok = ccontext:InClip(x, y)
Function
Tests whether the given point is inside the area that would be visible through the current clip, i.e. the area that would be filled by a ccontext:Paint() operation.

See ccontext:Clip() and ccontext:ClipPreserve().

This function returns a non-zero value if the point is inside, or zero if outside.

Inputs
x
X coordinate of the point to test
y
Y coordinate of the point to test
Results
ok
a non-zero value if the point is inside, or zero if outside

Show TOC