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.

ARGUMENTSEdit

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

SOURCE CODEEdit

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
]
Last modified on 27 October 2012, at 22:14