package quill
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=a9a8a9787f8250337187bb7b21cb317c41bfd2ecf08bcfe0ab407c7b6660764d
sha512=fe13cf257c487e41efe2967be147d80fa94bac8996d3aab2b8fd16f0bbbd108c15e0e58c025ec9bf294d4a0d220ca2ba00c3b1b42fa2143f758c5f0ee4c15782
doc/quill.editor/Quill_editor/Brr_ext/Window/index.html
Module Brr_ext.WindowSource
include module type of struct include Brr.Window end
type t = Brr.El.windowThe type for Window objects. See G.window for the global window object.
val as_target : t -> Brr.Ev.targetas_target w is the window as an event target.
val scroll_x : t -> floatscroll_x w is the number of (sub)pixels the window is horizontally scrolled by.
val scroll_y : t -> floatscroll_y w is the number of (sub)pixels the window is vertically scrolled by.
Media properties
val device_pixel_ratio : t -> floatdevice_pixel_ratio w is the ratio between physical and CSS pixels. A value of 2. indicates that two physical pixels are used to draw a single CSS pixel.
matches_media w mq is true if the media query mq matches. See Window.matchMedia.
val prefers_dark_color_scheme : t -> boolprefers_dark_scheme w is true if the "(prefers-color-scheme: dark)" media query matches.
Operations
open' w url ~name ~features loads the specified resource url into a new or existing browsing context with the specified name and window features. None is returned if the window could not be opened.
val print : t -> unitprint w opens the print dialog to print the window document.
Location and history
location w is the window's location.
Note we do not bind the Location object, everything you need can be done with Uri, set_location, reload and possibly History.
module History = Brr.Window.HistoryBrowser history.
get_selection window gets the selection object for the given window.