Rebol 程式設計/resize-face
外觀
RESIZE-FACE face size /x /y /no-show
調整人臉大小。
RESIZE-FACE 是一個函式值。
- face -- (型別:任何)
- size -- (型別:數字對)
- /x -- 只調整寬度
- /y -- 只調整高度
- /no-show -- 暫時不顯示更改
resize-face: func [
"Resize a face."
face
size [number! pair!]
/x "Resize only width"
/y "Resize only height"
/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
]