跳轉到內容

Rebol 程式設計/in-window?

來自華夏公益教科書,開放的書籍,為開放的世界
IN-WINDOW? window face 

如果視窗包含給定面,則返回 true。

IN-WINDOW? 是一個函式值。

  • window -- (型別:任何)
  • face -- (型別:任何)

原始碼

[編輯 | 編輯原始碼]
in-window?: func [
    "Return true if a window contains a given face." 
    window face
][
    if face = window [return true] 
    if none? face/parent-face [return false] 
    in-window? window face/parent-face
]
華夏公益教科書