Rebol 编程/screen-offset?
外观
< Rebol 编程
SCREEN-OFFSET? face
返回任何面的绝对屏幕偏移。
SCREEN-OFFSET? 是一个函数值。
- face -- (类型:对象)
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
]