Frama-C API - text
inherit Frama_c_gui.Widget.widget
Append material to the text buffer, optionally scrolling it to the beginning of the message (defaults to autoscrolling setting).
The underlying formatter (method fmt
) recognizes the following default tags:
"bf"
bold face"it"
italic style"ul"
underlined"st"
striked through"blue"
,"red"
,"orange"
,"green"
predefined foreground color"hover"
background green (default for highlighter)"link"
underlined blue"fg:<color name>"
foreground color"bg:<color name>"
background color"link:<name>"
add a link marker
Properties for any tag (except parametric and mark) can be modified with method set_tag_style
.
t#printf
is a shortcut for Format.fprintf t#fmt
followed by flushing and optional scrolling.
Override properties for the given tag name. Must be used before the tag is used.
method wrap : (int -> int -> unit) -> (Stdlib.Format.formatter -> unit) -> Stdlib.Format.formatter -> unit
Print with a callback to the actual bounds of the printed material after boxing.
method marker : 'a. 'a marker
method links : string marker
Automatically scroll to lastly inserted text (console behavior).
When scroll:false
(default), only minimal scrolling is performed to make the selection visible. Otherwise, the window is scrolled to center the selection at screen.