REBOL Programming/screen-offset?
From Wikibooks, open books for an open world
Contents |
USAGE: [edit]
SCREEN-OFFSET? face
DESCRIPTION: [edit]
Returns the absolute screen offset for any face.
SCREEN-OFFSET? is a function value.
ARGUMENTS [edit]
- face -- (Type: object)
SOURCE CODE [edit]
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
]
This page may need to be