Last modified on 30 October 2012, at 11:29

REBOL Programming/in-window?

USAGE:Edit

IN-WINDOW? window face 

DESCRIPTION:Edit

Return true if a window contains a given face.

IN-WINDOW? is a function value.

ARGUMENTS:Edit

  • window -- (Type: any)
  • face -- (Type: any)

SOURCE CODEEdit

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
]