跳轉到內容

Rebol 程式設計/dump-pane

來自華夏公益教科書,開放的書籍,開放的世界
DUMP-PANE face 

列印整個窗格的面部資訊。(用於除錯)

DUMP-PANE 是一個函式值。

  • face -- (型別:物件)

原始碼

[編輯 | 編輯原始碼]
dump-pane: func [
    "Print face info for entire pane. (for debugging)" 
    face [object!] 
    /local depth style
][
    depth: "" 
    print [depth "Style:" all [in face 'style face/style] "Offset:" face/offset "Size:" face/size 
        "Text:" if face/text [copy/part form face/text 20]
    ] 
    insert depth tab 
    if object? face/pane [dump-face face/pane] 
    if block? face/pane [foreach f face/pane [dump-face f]] 
    remove depth
]
華夏公益教科書