class text :Inherits?autoscroll:bool -> ?width:int -> ?indent:int -> unit ->object..end
method clear : unit
method fmt : Stdlib.Format.formatterThe formatter used by printf method.
method hrule : unitPrint an horizontal rule. Consecutive rules are collapsed.
method printf : 'a. ?scroll:bool -> ('a, Stdlib.Format.formatter, unit) Stdlib.format -> 'aAppend 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 markerProperties 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.
method set_monospace : unitSet a monospace font
method set_font : string -> unitSet the font used to display the text.
method set_css : (string * GText.tag_property list) list -> unitOverride properties for the given tag name. Must be used before the tag is used.
method set_style : string -> int -> int -> unit
method remove_style : string -> int -> int -> unit
method remove_all : string list -> unit
method offset : int
method lines : int
method set_width : int -> unit
method set_indent : int -> unit
method wrap : (int -> int -> unit) ->
(Stdlib.Format.formatter -> unit) -> Stdlib.Format.formatter -> unitPrint with a callback to the actual bounds of the printed material after boxing.
method marker : 'a. 'a marker
method links : string marker
method on_link : (string -> unit) -> unitShort cut to links#on_click (callback without range).
method set_autoscroll : bool -> unitAutomatically scroll to lastly inserted text (console behavior).
method scroll : ?line:int -> unit -> unitDefault line is last one.
method select : ?scroll:bool -> int -> int -> unitWhen scroll:false (default), only minimal scrolling is performed to make
the selection visible. Otherwise, the window is scrolled to center the selection
at screen.
method get_view : GText.viewReturns the viewer object (and the buffer it contains).