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