Last modified on 13 November 2012, at 10:51

REBOL Programming/resize-face

USAGE:Edit

RESIZE-FACE face size /x /y /no-show 

DESCRIPTION:Edit

Resize a face.

RESIZE-FACE is a function value.

ARGUMENTSEdit

  • face -- (Type: any)
  • size -- (Type: number pair)

REFINEMENTSEdit

  • /x -- Resize only width
  • /y -- Resize only heigth
  • /no-show -- Do not show change yet

SOURCE CODEEdit

resize-face: func [
    "Resize a face." 
    face 
    size [number! pair!] 
    /x "Resize only width" 
    /y "Resize only heigth" 
    /no-show "Do not show change yet" 
    /local access
][
    if all [
        access: get in face 'access 
        in access 'resize-face*
    ] [
        access/resize-face* face size x y
    ] 
    if not no-show [show face] 
    face
]