class text :Inherits?autoscroll:bool -> ?width:int -> ?indent:int -> unit ->
object
..end
method clear : unit
method fmt : Format.formatter
printf
method.method hrule : unit
method printf : 'a. ?scroll:bool -> ('a, Format.formatter, unit) Pervasives.format -> 'a
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 markerset_tag_style
.
t#printf
is a shortcut for Format.fprintf t#fmt
followed
by flushing and optional scrolling.
method set_monospace : unit
method set_font : string -> unit
method set_css : (string * GText.tag_property list) list -> unit
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) ->
(Format.formatter -> unit) -> Format.formatter -> unit
method marker : 'a. 'a marker
method links : string marker
method on_link : (string -> unit) -> unit
links#on_click
(callback without range).method set_autoscroll : bool -> unit
method scroll : ?line:int -> unit -> unit
method select : ?scroll:bool -> int -> int -> unit
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.view