跳轉到內容

Rebol 程式設計/edge-size?

來自華夏公益教科書,開放的書籍,開放的世界
EDGE-SIZE? face 

返回面邊緣的總大小(兩側),即使邊緣缺失。

EDGE-SIZE? 是一個函式值。

  • face -- (型別:物件)

原始碼

[編輯 | 編輯原始碼]
edge-size?: func [
    {Return total size of face edge (both sides), even if missing edge.} 
    face [object!]
][
    either face/edge [face/edge/size * 2] [0x0]
]
華夏公益教科書