Module Brr.App

module App: sig .. end
Application.


Environment


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.

Fullscreen


val fullscreen_available : bool
fullscreen_enabled is true iff fullscreen is available.
val request_fullscreen : Brr.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.

Run


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