Rebol 编程/win-offset?
外观
< Rebol 编程
WIN-OFFSET? face
返回一个面在其窗口中的偏移量。
WIN-OFFSET? 是一个函数值。
- face -- (类型:对象)
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 ]