< Rebol Programming
USAGE:
RESIZE-FACE face size /x /y /no-show
DESCRIPTION:
Resize a face.
RESIZE-FACE is a function value.
ARGUMENTS
- face -- (Type: any)
- size -- (Type: number pair)
REFINEMENTS
- /x -- Resize only width
- /y -- Resize only heigth
- /no-show -- Do not show change yet
SOURCE CODE
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
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.