Jump to content

Rebol Programming/dump-pane

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
DUMP-PANE face 

DESCRIPTION:

[edit | edit source]

Print face info for entire pane. (for debugging)

DUMP-PANE is a function value.

ARGUMENTS

[edit | edit source]
  • face -- (Type: object)

SOURCE CODE

[edit | edit source]
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
]