411 REFERENCE · Wikibooks
Rebol Programming/offset-to-caret
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
USAGE:
OFFSET-TO-CARET face offset
DESCRIPTION:
Returns the offset in the face's text corresponding to the offset pair.
OFFSET-TO-CARET is a native value.
ARGUMENTS:
face -- The face containing the text. (Type: object)
offset -- The XY offset relative to the face. (Type: pair)
SOURCE CODE
offset-to-caret: native[
{Returns the offset in the face's text corresponding to the offset pair.}
face [object!] "The face containing the text."
offset [pair!] "The XY offset relative to the face."
]