Module Brr.Win

Browser window.

type t = Js_of_ocaml.Dom_html.window Js_of_ocaml.Js.t

The type for browser windows.

val dow : t

dow is the browser window.

val device_pixel_ratio : t -> float

device_pixel_ratio w is the ratio between physical and CSS pixel resolution. A value of 2. indicates that two physical pixels are used to draw a single CSS pixel.

val print : t -> unit

print w opens the print dialog to print the current document.