Last modified on 31 October 2012, at 15:57

REBOL Programming/offset-to-caret

USAGE:Edit

OFFSET-TO-CARET face offset 

DESCRIPTION:Edit

Returns the offset in the face's text corresponding to the offset pair.

OFFSET-TO-CARET is a native value.

ARGUMENTS:Edit

  • face -- The face containing the text. (Type: object)
  • offset -- The XY offset relative to the face. (Type: pair)

SOURCE CODEEdit

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."
]