class text :Inherits?autoscroll:bool -> unit ->
object
..end
method clear : unit
method fmt : Format.formatter
printf
method.method printf : 'a. ?scroll:bool -> ('a, Format.formatter, unit) Pervasives.format -> 'a
The underlying formatter (method fmt
) recognizes the following tags:
"bf"
bold face"it"
italic style"ul"
underlined"st"
striked through"red"
, "orange"
, "green"
foreground color"fg:<color name>"
foreground color"bg:<color name>"
background color"link:<link name>"
clickable link, see method on_link
."mark:<mark name>"
named text range, see methods show
, set_properties
.set_tag_properties
.
t#printf
is a shortcut for Format.fprintf t#fmt
followed
by flushing and optional scrolling.
method highlight : mark:string -> GText.tag_property list -> unit
method focus : mark:string -> unit
method scroll : ?line:int -> unit -> unit
method lines : int
method on_link : (GdkEvent.Button.t -> string -> unit) -> unit
method set_font : string -> unit
method set_autoscroll : bool -> unit
method get_view : GText.view