Rebol Programming/deflag-face

USAGE:

edit
DEFLAG-FACE face 'flag 

DESCRIPTION:

edit

Clears a flag in a VID face.

DEFLAG-FACE is a function value.

ARGUMENTS

edit
  • face -- (Type: object)
  • flag -- (Type: any)

SOURCE CODE

edit
deflag-face: func [
    "Clears a flag in a VID face." 
    face [object!] 
    'flag
][
    if none? face/flags [exit] 
    if not find face/flags 'flags [face/flags: copy face/flags insert face/flags 'flags] 
    remove find face/flags flag
]