REBOL Programming/win-offset?

USAGE:Edit

WIN-OFFSET? face 

DESCRIPTION:Edit

Returns the offset of a face within its window.

WIN-OFFSET? is a function value.

ARGUMENTSEdit

  • face -- (Type: object)

SOURCE CODEEdit

win-offset?: func [
    "Returns the offset of a face within its window." 
    face [object!] 
    /local xy
][
    xy: 0x0 
    while [face/parent-face] [
        xy: xy + face/offset 
        face: face/parent-face 
        if face/edge [xy: xy + face/edge/size]
    ] 
    xy
]
Last modified on 13 November 2012, at 10:42