type html_msg = [ `Error of html_tag | `Msg of html_tag ]
-class html_logger ~width ~height ~packing ~show () =
- let scrolled_window = GBin.scrolled_window ~packing ~show () in
+class html_logger ?width ?height ?packing ?show () =
+ let scrolled_window = GBin.scrolled_window ?packing ?show () in
let vadj = scrolled_window#vadjustment in
let tv =
GText.view ~editable:false ~cursor_visible:false
- ~width ~height ~packing:(scrolled_window#add) ()
+ ?width ?height ~packing:(scrolled_window#add) ()
in
let green =
tv#buffer#create_tag
type html_msg = [ `Error of html_tag | `Msg of html_tag ]
class html_logger:
- width:int -> height:int ->
- packing:(GObj.widget -> unit) -> show:bool ->
- unit ->
- object
- (* in all methods below "append_NL" defaults to true *)
+ ?width:int -> ?height:int -> ?packing:(GObj.widget -> unit) -> ?show:bool ->
+ unit ->
+ object
+ (* in all methods below "append_NL" defaults to true *)
- (** log an HTML like message, see minimal markup above *)
- method log: ?append_NL:bool -> html_msg -> unit
+ (** log an HTML like message, see minimal markup above *)
+ method log: ?append_NL:bool -> html_msg -> unit
- (** log a cic messages as degined in CicLogger *)
- method log_cic_msg: ?append_NL:bool -> CicLogger.msg -> unit
+ (** log a cic messages as degined in CicLogger *)
+ method log_cic_msg: ?append_NL:bool -> CicLogger.msg -> unit
- end
+ end