Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file ascii_table_kernel_intf.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149open!Core_kernelmoduleAttr=Ansi_kernel.AttrmoduleAlign=structtypet=|Left|Right|CenterendmoduletypeAscii_table_kernel=sigmoduleAttr=AttrmoduleAlign=AlignmoduleDisplay:sigtypet(** Default--cells can be multi-line. *)valshort_box:t(** Puts --- between entries. *)valtall_box:t(** Trails off with ... if necessary. *)valline:t(** No lines. *)valblank:t(** Draw lines only under column titles. *)valcolumn_titles:tendmoduleColumn:sigtype'at(** creates a column given the header and the to-string function *)valcreate:?align:Align.t(* Default: left *)->?min_width:int->?max_width:int->?show:[`Yes|`No|`If_not_empty](* Default: `Yes *)->string->('a->string)->'at(** like create, except that the to_string function must provide a list of
attributes. *)valcreate_attr:?align:Align.t(* Default: left *)->?min_width:int->?max_width:int->?show:[`Yes|`No|`If_not_empty](* Default: `Yes *)->string->('a->Attr.tlist*string)->'atvalheader:'at->stringvalto_data:'at->'a->Attr.tlist*stringlistmoduleOf_field:sig(** This module is used for constructing lists of ['a t]s from a record's fields. The
intention is to use [Fields.to_list] to obtain a list. *)(** Create a column based on a field of a record. *)valfield:?align:Align.t(* Default: left *)->?min_width:int->?max_width:int->?show:[`Yes|`No|`If_not_empty]->?header:string(** Defaults to field name *)->('field->string)->('record,'field)Field.t->'recordt(** [field_attr] is to [field] as [create_attr] is to [create]. *)valfield_attr:?align:Align.t(* Default: left *)->?min_width:int->?max_width:int->?show:[`Yes|`No|`If_not_empty]->?header:string(** Defaults to field name *)->('field->Attr.tlist*string)->('record,'field)Field.t->'recordt(** Like [field], but defaults to [""] if [None] *)valfield_opt:?align:Align.t(* Default: left *)->?min_width:int->?max_width:int->?show:[`Yes|`No|`If_not_empty]->?header:string(** Defaults to field name *)->('field->string)->('record,'fieldoption)Field.t->'recordt(** Like [field_attr], but defaults to [([], "")] if [None] *)valfield_opt_attr:?align:Align.t(* Default: left *)->?min_width:int->?max_width:int->?show:[`Yes|`No|`If_not_empty]->?header:string(** Defaults to field name *)->('field->Attr.tlist*string)->('record,'fieldoption)Field.t->'recordtendendmoduleScreen:sig(** A [Screen.t] represents a table after all of the layout calculations have been done.
*)typetvalrender:t->bars:[`Ascii|`Unicode]->output:(Attr.tlist->Buffer.t->unit)->close:(Buffer.t->'a)->'a(** Given a way to annotate strings with attributes, a [t] can be output to a string. *)valto_string:t->bars:[`Ascii|`Unicode]->string_with_attr:(Attr.tlist->string->string)->stringendvaldraw:?display:Display.t(* Default: short_box *)->?spacing:int(* Default: 1 *)->?limit_width_to:int(* defaults to 90 characters *)->?header_attr:Attr.tlist->?display_empty_rows:bool(* Default: false *)->'rowColumn.tlist->'rowlist->Screen.toptionmoduleTable_char:sigtypet={ascii:char;utf8:string}valconnect:?top:unit->?bottom:unit->?left:unit->?right:unit->unit->tendend