Index of values


A
a [Brr.El.Name]
a [Brr.El]
a
abbr [Brr.El.Name]
abbr [Brr.El]
abort [Brr.File.Read]
abort r aborts the file read r.
abort [Brr.Ev]
add [Brr.Store]
add k v maps k to v.
add_cb [Brr.Ev]
add_cb ~capture t k f calls f e ev whenever an event ev of kind k occurs on t.
add_if [Brr.Att]
add_if b a l is a :: l if b is true and l otherwise
add_some [Brr.Att]
add_some n o l is v n a :: l if o is Some a and l otherwise.
address [Brr.El.Name]
address [Brr.El]
afterprint [Brr.Ev]
alt [Brr.Key]
alt evs is true whenver an alt key is down on the target.
any_down [Brr.Key]
any_down evs occurs whenever a key goes down on the target.
any_holds [Brr.Key]
any_holds evs is true whenever any key is down.
any_up [Brr.Key]
any_down evs occurs whenever a key goes up on the target.
app [Brr.Log]
app is msg App.
append [Brr.Str]
append s0 s1 appends s1 to s0.
area [Brr.El.Name]
area [Brr.El]
article [Brr.El.Name]
article [Brr.El]
aside [Brr.El.Name]
aside [Brr.El]
audio [Brr.El.Name]
audio [Brr.El]
autofocus [Brr.Att.Name]
autofocus [Brr.Att]
average_finger_width [Brr.Human]
average_finger_width is 11.mm, the average adult finger width.

B
b [Brr.El.Name]
b [Brr.El]
b
back [Brr.History]
back () is go ~-1.
background_color [Brr.El.Style]
base [Brr.El.Name]
base [Brr.El]
bdi [Brr.El.Name]
bdi [Brr.El]
bdi
bdo [Brr.El.Name]
bdo [Brr.El]
bdo
beforeprint [Brr.Ev]
beforeunload [Brr.Ev]
blockquote [Brr.El.Name]
blockquote [Brr.El]
blur [Brr.Ev]
body [Brr.El.Name]
body [Brr.El]
br [Brr.El.Name]
br [Brr.El]
br
button [Brr.El.Name]
button [Brr.El]
bytes_read [Brr.File.Read]
bytes_read p is the number of bytes read so far.
bytes_total [Brr.File.Read]
bytes_total p is the total number of bytes to read.

C
cached [Brr.Ev]
call [Brr.El]
call f ~on e calls f on e with the value of e whenever on occurs.
canvas [Brr.El.Name]
canvas [Brr.El]
caption [Brr.El.Name]
caption [Brr.El]
cb_ret [Brr.Ev]
cb_ret ~propagate ~default ev returns from the callback and propagates event ev if propagate is true (default).
change [Brr.Ev]
checked [Brr.Att.Name]
checked [Brr.Att]
checked [Brr.Prop]
chop [Brr.Str]
chop prefix s is s without the prefix prefix or None if prefix is not a prefix of s.
cite [Brr.El.Name]
cite [Brr.El]
class' [Brr.Att.Name]
class' [Brr.Att]
clear [Brr.Store]
clear (), clears all mapping.
click [Brr.Ev]
click [Brr.El]
click e simulates a click on e.
code [Brr.El.Name]
code [Brr.El]
col [Brr.El.Name]
col [Brr.El]
col
colgroup [Brr.El.Name]
colgroup [Brr.El]
color [Brr.El.Style]
command [Brr.El.Name]
command [Brr.El]
compare [Brr.Key]
compare is a total order on keys compatible with Brr.Key.equal.
compare [Brr.Str]
compare s0 s1 is a total order on strings compatible with Brr.Str.equal.
concat [Brr.Str]
concat sep ss is the concatenates the list of strings ss inserting sep between each of them.
counter [Brr.Time]
counter () is a counter counting time from call time on.
counter_value [Brr.Time]
counter_value c is the current counter value in seconds.
create_state [Brr.History]
create_state version v is state v with version version.
ctrl [Brr.Key]
ctrl evs is true whenver an ctrl key is down on the target.
cuts [Brr.Str]
cuts sep s is the list of all (possibly empty) substrings of s that are delimited by matches of the non empty separator string sep.

D
datalist [Brr.El.Name]
datalist [Brr.El]
dblclick [Brr.Ev]
dd [Brr.El.Name]
dd [Brr.El]
dd
debug [Brr.Log]
debug is msg Debug.
def_att [Brr.El]
def_att a v e defines the attribute a of e over time with the value of v.
def_children [Brr.El]
def_children e cs defines e's children over time with the value of signal cs.
def_class [Brr.El]
rdef_class a b e defines the membership of e to class e over time with the value of b.
def_focus [Brr.El]
def_focus e v defines the focus of e over time with the value of v.
def_prop [Brr.El]
def_prop p v e defines the property p of e over time with the value of v.
def_style [Brr.El]
def_style p v e sets the inline style property p of e over time with the value of v.
del [Brr.El.Name]
del [Brr.El]
del
delay [Brr.Time]
delay span f calls f after span seconds.
destroy [Brr.Mouse]
destroy evs removes the callbacks registred by evs.
details [Brr.El.Name]
details [Brr.El]
device_pixel_ratio [Brr.Win]
device_pixel_ratio () is the ratio between physical and CSS pixel resolution.
dfn [Brr.El.Name]
dfn [Brr.El]
dfn
disabled [Brr.Att.Name]
disabled [Brr.Att]
display [Brr.El.Style]
div [Brr.El.Name]
div [Brr.El]
div
dl [Brr.El.Name]
dl [Brr.El]
dl
document [Brr.El]
document is the document's element of the current browser document.
document_active [Brr.El]
document_active is the element of the DOM that currently has focus (if any).
document_body [Brr.El]
document_body is the Brr.El.body element of the current browser document.
domContentLoaded [Brr.Ev]
dow [Brr.Win]
dow is the browser windows.
down [Brr.Key]
down evs k occurs whenever key k goes down on the target.
dpos [Brr.Mouse]
dpos evs occurs on mouse moves with current mouse position minus the previous position.
dt [Brr.El.Name]
dt [Brr.El]
dt
dump_obj [Brr.Debug]
dump_obj o dumps object o on the browser console with level debug.

E
el [Brr.El]
el (`El e) is e.
elapsed [Brr.Time]
elapsed () is the number of seconds elapsed since the beginning of the program.
em [Brr.El.Name]
em [Brr.El]
em
embed [Brr.El.Name]
embed [Brr.El]
empty [Brr.Str]
empty is an empty string.
enter [Brr.Debug]
enter () stops and enters the JavaScript debugger (if available).
env [Brr.App]
env var ~default parse lookups var in the environment, parses it with parse and returns the result.
equal [Brr.Key]
equal k0 k1 is true iff k0 and k1 are equal.
equal [Brr.Str]
equal s0 s1 is true iff s0 and s1 are equal.
err [Brr.Log]
err is msg Error.
error [Brr.Ev]
etrace [Brr.Debug]
etrace ~pp id e traces e's occurence with Brr.Log.debug, pp (defaults to Brr.Debug.tick) and identifier id.
ev [Brr.Ev]
ev e is e.
exit_fullscreen [Brr.App]
exit_fullscreen () exits fullscreen mode.

F
feel [Brr.Human]
feel () is a signal that varies according to user latency constants: [user_feel ()]t = `Interacting if t < User.interrupted., [user_feel ()]t = `Interrupted if t < User.left., [user_feel ()]t = `Left if t >= User.left.
fieldset [Brr.El.Name]
fieldset [Brr.El]
figcaption [Brr.El.Name]
figcaption [Brr.El]
figure [Brr.El.Name]
figure [Brr.El]
find [Brr.Store]
find k is k's mapping in m, if any.
find_class [Brr.El]
find_class cl are the element with class cs in the browser document.
find_id [Brr.El]
find_id id is the element with id id in the browser document (if any).
focus [Brr.Ev]
footer [Brr.El.Name]
footer [Brr.El]
for' [Brr.Att.Name]
for' [Brr.Att]
for_el [Brr.Mouse]
for_el is like Brr.Mouse.for_target but for an element.
for_el [Brr.Key]
for_el e is like Brr.Key.for_target but for an element.
for_el [Brr.Ev]
for_el is like Brr.Ev.for_target except the target is an element.
for_els [Brr.Ev]
for_els is like Brr.Ev.for_targets excepts the targets are elements.
for_target [Brr.Mouse]
for_target t pt is mouse events for target t using pt to construct points.
for_target [Brr.Key]
for_target t is keyboard events for target t.
for_target [Brr.Ev]
for_target ~capture ~propagate ~default t k f is an event that reports events of kind k transformed by f on target t.
for_targets [Brr.Ev]
Brr.Ev.for_targets is like Brr.Ev.for_target except the event occurs for the event kind on the given list of targets.
force_version [Brr.Store]
force_version v checks that the version of the store is v.
form [Brr.El.Name]
form [Brr.El]
forward [Brr.History]
forward () is go 1.
fragment [Brr.Loc]
fragment () is fragment of Brr.Loc.uri () with the hash.
fullscreen_available [Brr.App]
fullscreen_enabled is true iff fullscreen is available.

G
get [Brr.Store]
get k is k's mapping.
get [Brr.Prop]
get p o is the property p of object o if defined and p's undefined value otherwise.
get_att [Brr.El]
get_att a e is the value of the attribute a of e (if any).
get_class [Brr.El]
get_class c e is the membership of e to class c.
get_computed_style [Brr.El]
get_computed_style p e is the computed style property p of e.
get_prop [Brr.El]
get_prop p e is the property p of element e if defined and p's undefined value otherwise.
get_style [Brr.El]
get_style p e is the inline style property p of e.
go [Brr.History]
go step goes step numbers forward (positive) or backward (negative) in history.

H
h1 [Brr.El.Name]
h1 [Brr.El]
h1
h2 [Brr.El.Name]
h2 [Brr.El]
h2
h3 [Brr.El.Name]
h3 [Brr.El]
h3
h4 [Brr.El.Name]
h4 [Brr.El]
h4
h5 [Brr.El.Name]
h5 [Brr.El]
h5
h6 [Brr.El.Name]
h6 [Brr.El]
h6
hashchange [Brr.Loc]
hashchange occurs whenever the window's fragment changes with the new value of fragment ().
hashchange [Brr.Ev]
head [Brr.El.Name]
head [Brr.El]
header [Brr.El.Name]
header [Brr.El]
height [Brr.El.Style]
height [Brr.Att.Name]
height [Brr.Att]
hgroup [Brr.El.Name]
hgroup [Brr.El]
hold_logr [Brr.El]
hold_logr e l lets e hold logger l and destroy it via Brr.El.on_rem once e is removed from the document.
holds [Brr.Key]
holds evs k is true whenever k is held down on the target.
host [Brr.Loc]
host () is the host of Brr.Loc.uri ().
hr [Brr.El.Name]
hr [Brr.El]
hr
href [Brr.Att.Name]
href [Brr.Att]
html [Brr.El.Name]
html [Brr.El]

I
i [Brr.El.Name]
i [Brr.El]
i
id [Brr.Att.Name]
id [Brr.Att]
id [Brr.Prop]
iframe [Brr.El.Name]
iframe [Brr.El]
img [Brr.El.Name]
img [Brr.El]
img
info [Brr.Log]
info is msg Info.
input [Brr.Ev]
input [Brr.El.Name]
input [Brr.El]
ins [Brr.El.Name]
ins [Brr.El]
ins
interrupted [Brr.Human]
interrupted is 1.s, the time span after which the user will feel interrupted and feedback from the system is needed.
invalid [Brr.Ev]
is_empty [Brr.Str]
is_empty s is true iff s is an empty string.
is_fullscreen [Brr.App]
is_fullscreen is true iff the application is in fullcreen mode.

K
kbd [Brr.El.Name]
kbd [Brr.El]
kbd
key [Brr.Store]
key ~ns () is a new storage key in namespace ns.
keydown [Brr.Ev]
keygen [Brr.El.Name]
keygen [Brr.El]
keypress [Brr.Ev]
keyup [Brr.Ev]
kind [Brr.Ev]
kmsg [Brr.Log]
kmsg k level m logs m with level level and continues with k.

L
label [Brr.El.Name]
label [Brr.El]
languages [Brr.Info]
languages () is the user's preferred languages as BCP 47 language tags.
last_modified_ms [Brr.File]
last_modified_ms f is the last modified time in ms from the epoch.
left [Brr.Human]
left is 10.s, the time span after which the user will switch to another task and feedback indicating when the system expects to respond is needed.
left [Brr.Mouse]
left evs is true whenever the left mouse button went down in the target and did not go up yet.
left_down [Brr.Mouse]
left_down evs has an occurence with the mouse position whenever the button goes down in the target.
left_up [Brr.Mouse]
left_up evs is true whenever the left mouse button went down in the target and goes back up anywhere.
legend [Brr.El.Name]
legend [Brr.El]
length [Brr.History]
length () is the number of elements in the history including the currently loaded page.
li [Brr.El.Name]
li [Brr.El]
li
link [Brr.El.Name]
link [Brr.El]
list_of_el [Brr.File]
list_of_el e is the file list of element e.
load [Brr.Ev]

M
map [Brr.El.Name]
map [Brr.El]
map
mark [Brr.El.Name]
mark [Brr.El]
may_hold_logr [Brr.El]
may_hold_logr e l is like Brr.El.hold_logr but does nothing on None.
mem [Brr.Store]
mem k is true iff k has a mapping.
mem [Brr.Mouse]
mem evs is true whenever the mouse position is inside the target.
menu [Brr.El.Name]
menu [Brr.El]
message [Brr.Ev]
meta [Brr.Key]
meta evs is true whenver an meta key is down on the target.
meta [Brr.El.Name]
meta [Brr.El]
meter [Brr.El.Name]
meter [Brr.El]
mid [Brr.Mouse]
mid is like Brr.Mouse.left but the middle button.
mid_down [Brr.Mouse]
mid_downis like Brr.Mouse.left_down but for the middle button.
mid_up [Brr.Mouse]
mid_up is like Brr.Mouse.left_up but for the middle button.
mousedown [Brr.Ev]
mouseenter [Brr.Ev]
mouseleave [Brr.Ev]
mousemove [Brr.Ev]
mouseout [Brr.Ev]
mouseover [Brr.Ev]
mouseup [Brr.Ev]
msg [Brr.Log]
msg l (fun m -> m fmt ...) logs with level l a message formatted with fmt.

N
name [Brr.File]
name f is the file name of f.
name [Brr.Att.Name]
name [Brr.Att]
name [Brr.Prop]
nav [Brr.El.Name]
nav [Brr.El]
nav
noscript [Brr.El.Name]
noscript [Brr.El]
noticed [Brr.Human]
noticed is 0.1s, the time span after which the user will notice a delay and feel that the system is not reacting instantaneously.

O
object' [Brr.El.Name]
object' [Brr.El]
of_ev [Brr.Key]
of_ev e is the physical key of keyboard event e.
of_string [Brr.Str]
of_string s is the OCaml string s as a JavaScript string.
offline [Brr.Ev]
ol [Brr.El.Name]
ol [Brr.El]
ol
on_add [Brr.El]
on_add f e references f until e is inserted in the HTML DOM, at which point f () is invoked.
on_rem [Brr.El]
on_rem f e references f until e is removed from the HTML DOM, at which point f () is invoked.
online [Brr.Ev]
optgroup [Brr.El.Name]
optgroup [Brr.El]
option [Brr.El.Name]
option [Brr.El]
output [Brr.El.Name]
output [Brr.El]

P
p [Brr.El.Name]
p [Brr.El]
p
pagehide [Brr.Ev]
pageshow [Brr.Ev]
param [Brr.El.Name]
param [Brr.El]
path [Brr.Loc]
path () is the path of Brr.Loc.uri ().
placeholder [Brr.Att.Name]
placeholder [Brr.Att]
popstate [Brr.Ev]
port [Brr.Loc]
port () is the port of Brr.Loc.uri ().
pos [Brr.Mouse]
pos evs is the current mouse position in the target.
pp [Brr.Key]
pp formats keys.
pp [Brr.Str]
pp ppf s prints s on ppf.
pp_error [Brr.File.Read]
pp_error ppf e prints an unspecified representation of e on ppf.
pp_ms [Brr.Time]
pp_ms ppf s prints s seconds in milliseconds.
pp_mus [Brr.Time]
pp_mus ppf s prints s seconds in microseconds.
pp_obj [Brr.Debug]
pp_obj ppf o applies the method toString to object o and prints the the resulting string on ppf.
pp_s [Brr.Time]
pp_s ppf s prints s seconds in seconds.
pr [Brr.Debug]
pr fmt ... unconditionally outputs on the browser console with level Debug.
pre [Brr.El.Name]
pre [Brr.El]
pre
progress [Brr.File.Read]
progress r is an event that occurs during the read of r.
progress [Brr.Ev]
progress [Brr.El.Name]
progress [Brr.El]
pt [Brr.Mouse]
pt x y is (x, y).
push [Brr.History]
push ~replace ~state ~title uri changes the browser location to uri but doesn't load the URI.

Q
q [Brr.El.Name]
q [Brr.El]
q
query [Brr.Loc]
query () is the query of Brr.Loc.uri ().
quit [Brr.App]
quit occurs whenever the user requested to quit.

R
rchop [Brr.Str]
rchop suffix s is s without the suffix suffix or None if suffix is not a suffix of s.
readystatechange [Brr.Ev]
reload [Brr.Loc]
reload () reloads the current location.
rem [Brr.Store]
rem k unbinds k.
rem_cb [Brr.Ev]
rem_cb cb removes the callback cb.
request_fullscreen [Brr.App]
request_fullscreen e requests e to take up the entire screen.
reset [Brr.Ev]
resize [Brr.Ev]
result [Brr.File.Read]
result r is an event that occurs only once with the read result.
right [Brr.Mouse]
right is like Brr.Mouse.left but the right button.
right_down [Brr.Mouse]
right_downis like Brr.Mouse.left_down but for the right button.
right_up [Brr.Mouse]
right_up is like Brr.Mouse.left_up but for the right button.
rp [Brr.El.Name]
rp [Brr.El]
rp
rset_att [Brr.El]
rset_att a ~on e sets attribute a of e with the value of e whenever it occurs.
rset_children [Brr.El]
rset_children e ~on sets e's children with the value of on whenever it occurs.
rset_class [Brr.El]
rset_class a ~on e sets the membership of e to class e with the value of on whenever it occurs.
rset_focus [Brr.El]
rset_focus e ~on sets e's focus with the value of on whenever it occurs.
rset_prop [Brr.El]
rset_prop p ~on e sets property p of e to the value of on whenever it occurs.
rset_style [Brr.El]
rset_style ~important p ~on e sets the inline style property p of e to the value of on whenever it occurs with priority important (defaults to false).
rt [Brr.El.Name]
rt [Brr.El]
rt
ruby [Brr.El.Name]
ruby [Brr.El]
run [Brr.App]

S
s [Brr.El.Name]
s [Brr.El]
s
samp [Brr.El.Name]
samp [Brr.El]
scheme [Brr.Loc]
scheme () is the scheme of Brr.Loc.uri ().
script [Brr.El.Name]
script [Brr.El]
section [Brr.El.Name]
section [Brr.El]
select [Brr.El.Name]
select [Brr.El]
select_txt [Brr.El]
select_txt e selects the textual contents of e.
set [Brr.Loc]
set replace uri sets to browser location to uri, if replace is true the current location is removed from the session history (defaults to false).
set [Brr.Prop]
set p v o sets property p of object o to v.
set_att [Brr.El]
set_att a v e sets the value of attribute a of e to v.
set_children [Brr.El]
set_children e children sets e's children to children
set_class [Brr.El]
set_class c b e sets the membership of e to class c according to b.
set_focus [Brr.El]
focus b e sets the focus of e to b.
set_fragment [Brr.Loc]
set_fragment frag sets the fragment of Brr.Loc.uri () to frag.
set_kmsg [Brr.Log]
set_kmsg kmsg sets the logging function to kmsg.
set_prop [Brr.El]
set_prop p v o sets property p of element e to v.
set_style [Brr.El]
set_style ~important p v e sets the inline style property p of e to v with priority important (defaults to false).
shift [Brr.Key]
shift evs is true whenver an shift key is down on the target.
size [Brr.File]
size f is the file size of f
slice [Brr.Str]
slice ~start ~stop s is the string s.
small [Brr.El.Name]
small [Brr.El]
source [Brr.El.Name]
source [Brr.El]
span [Brr.El.Name]
span [Brr.El]
src [Brr.Att.Name]
src [Brr.Att]
stamp [Brr.Ev]
stamp v e is v.
state [Brr.History]
state version deafult () is the current state if it matches version.
str [Brr]
str s is s as a JavaScript string.
strace [Brr.Debug]
strace ~pp id s traces s's changes with Brr.Log.debug, pp and identifier id.
strf [Brr]
strf fmt ... is a formatted Javascript string.
strong [Brr.El.Name]
strong [Brr.El]
style [Brr.El.Name]
style [Brr.El]
sub [Brr.El.Name]
sub [Brr.El]
sub
submit [Brr.Ev]
summary [Brr.El.Name]
summary [Brr.El]
sup [Brr.El.Name]
sup [Brr.El]
sup
support [Brr.Store]
support scope is true iff values can be stored in scope.

T
tabindex [Brr.Att.Name]
tabindex [Brr.Att]
table [Brr.El.Name]
table [Brr.El]
tag_name [Brr.El]
tag_name e is the tag name of the element.
tbody [Brr.El.Name]
tbody [Brr.El]
td [Brr.El.Name]
td [Brr.El]
td
textarea [Brr.El.Name]
textarea [Brr.El]
tfoot [Brr.El.Name]
tfoot [Brr.El]
th [Brr.El.Name]
th [Brr.El]
th
thead [Brr.El.Name]
thead [Brr.El]
tick [Brr.Time]
tick span is an event that occurs once in span seconds with the value span - span' where span' is the actual delay performed by the system.
tick [Brr.Debug]
tick formats "tick" on any value.
time [Brr.El.Name]
time [Brr.El]
title [Brr.El.Name]
title [Brr.El]
title [Brr.Att.Name]
title [Brr.Att]
title [Brr.Prop]
to_data_url [Brr.File.Read]
to_data_url f reads file f as as a data URL.
to_string [Brr.Str]
to_string s is s as an OCaml string.
touch_target_pad [Brr.Human]
touch_target_pad is 2.mm, the minimum padding size in millimeters between two touch targets.
touch_target_size [Brr.Human]
touch_target_size is 9.mm, the recommended touch target size in millimiters.
touch_target_size_min [Brr.Human]
touch_size_min is 7.mm, the minimal touch target size in millimeters.
tr [Brr.El.Name]
tr [Brr.El]
tr
trace [Brr.Debug]
trace ~pp v traces with Brr.Log.debug the value of v with pp (defaults to Brr.Debug.tick) and identifier id.
track [Brr.El.Name]
track [Brr.El]
trim [Brr.Str]
trim s is s without whitespace from the beginning and end of the string.
type' [Brr.File]
type f is the MIME type of f.
type' [Brr.Att.Name]
type' [Brr.Att]

U
u [Brr.El.Name]
u [Brr.El]
u
ul [Brr.El.Name]
ul [Brr.El]
ul
unit [Brr.Ev]
unit e is ().
unload [Brr.Ev]
up [Brr.Key]
up evs k occurs whenever key k goes up on the target.
update [Brr.Loc]
update ~scheme ~hostname ~port ~path ~query ~fragment () updates the corresponding parts of the location's URI.
uri [Brr.Loc]
uri () is the browser's location full URI.

V
v [Brr.El]
v ?atts name cs is an element name with attribute atts (defaults to []) and children cs.
v [Brr.Prop]
v p : prop_type t is accessed via path p of type prop_type.
value [Brr.Att.Name]
value [Brr.Att]
value [Brr.Prop]
var [Brr.El.Name]
var [Brr.El]
var
video [Brr.El.Name]
video [Brr.El]
visibility [Brr.El.Style]

W
warn [Brr.Log]
warn is msg Warning.
wbr [Brr.El.Name]
wbr [Brr.El]
wbr
width [Brr.El.Style]
width [Brr.Att.Name]
width [Brr.Att]