411 REFERENCE · Wikibooks
Rebol Programming/screen-offset?
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
USAGE:
SCREEN-OFFSET? face
DESCRIPTION:
Returns the absolute screen offset for any face.
SCREEN-OFFSET? is a function value.
ARGUMENTS
face -- (Type: object)
SOURCE CODE
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
]