Module Brr.App



val env : string -> default:'a -> (string -> 'a) -> 'a

env var ~default parse lookups var in the environment, parses it with parse and returns the result. Lookups th the query string of window.location for the first matching var=value pair.


val fullscreen_available : bool

fullscreen_enabled is true iff fullscreen is available.

val request_fullscreen : El.t -> unit

request_fullscreen e requests e to take up the entire screen.

val exit_fullscreen : unit -> unit

exit_fullscreen () exits fullscreen mode.

val is_fullscreen : bool Note.signal

is_fullscreen is true iff the application is in fullcreen mode.

User requested quit

val quit : unit Note.event

quit occurs whenever the user requested to quit. The browser window is closing and it's your last chance to peform something.


val run : ?⁠name:string -> (unit -> unit) -> unit