跳转到内容

Rebol 编程/dump-face

来自维基教科书,开放世界中的开放书籍
DUMP-FACE face 

打印整个窗格的界面信息。(用于调试)

DUMP-FACE 是一个函数值。

  • 界面 -- (类型:对象)

源代码

[编辑 | 编辑源代码]
dump-face: 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
]
华夏公益教科书