REBOL Programming/screen-offset?

USAGE:Edit

SCREEN-OFFSET? face 

DESCRIPTION:Edit

Returns the absolute screen offset for any face.

SCREEN-OFFSET? is a function value.

ARGUMENTSEdit

  • face -- (Type: object)

SOURCE CODEEdit

screen-offset?: func [
    "Returns the absolute screen offset for any face." 
    face [object!] 
    /local xy
][
    xy: face/offset 
    while [face: face/parent-face] [
        xy: xy + face/offset 
        if face/edge [xy: xy + face/edge/size]
    ] 
    xy
]
Last modified on 13 November 2012, at 10:50