package quill

  1. Overview
  2. Docs
Interactive notebook for OCaml data science

Install

dune-project
 Dependency

Authors

Maintainers

Sources

raven-1.0.0.alpha1.tbz
sha256=8e277ed56615d388bc69c4333e43d1acd112b5f2d5d352e2453aef223ff59867
sha512=369eda6df6b84b08f92c8957954d107058fb8d3d8374082e074b56f3a139351b3ae6e3a99f2d4a4a2930dd950fd609593467e502368a13ad6217b571382da28c

doc/quill.editor/Quill_editor/Brr_ext/Window/index.html

Module Brr_ext.WindowSource

include module type of struct include Brr.Window end

The type for Window objects. See G.window for the global window object.

Sourceval as_target : t -> Brr.Ev.target

as_target w is the window as an event target.

Sourceval closed : t -> bool

closed w is true if w is closed.

Sourceval scroll_x : t -> float

scroll_x w is the number of (sub)pixels the window is horizontally scrolled by.

Sourceval scroll_y : t -> float

scroll_y w is the number of (sub)pixels the window is vertically scrolled by.

Sourceval inner_width : t -> int

inner_width w is the interior height of the window in CSS pixels, including the width of the vertical scroll bar, if present.

Sourceval inner_height : t -> int

inner_height w is the interior height of the window in CSS pixels, including the height of the horizontal scroll bar, if present.

Sourceval parent : t -> t option

parent w is the parent of the window, if it has one.

When a window is loaded in an <iframe>, <object>, or <frame>, its parent is the window with the element embedding the window.

Media properties

Sourceval device_pixel_ratio : t -> float

device_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.

Sourceval matches_media : t -> Jstr.t -> bool

matches_media w mq is true if the media query mq matches. See Window.matchMedia.

Sourceval prefers_dark_color_scheme : t -> bool

prefers_dark_scheme w is true if the "(prefers-color-scheme: dark)" media query matches.

Operations

Sourceval open' : ?features:Jstr.t -> ?name:Jstr.t -> t -> Jstr.t -> t option

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.

Sourceval close : t -> unit

close w closes window w.

Sourceval print : t -> unit

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

Sourceval reload : t -> unit

reload w reloads w (on its location property).

Location and history

Sourceval location : t -> Brr.Uri.t

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.

Sourceval set_location : t -> Brr.Uri.t -> unit

set_location w l sets the window location to l.

Sourcemodule History = Brr.Window.History

Browser history.

Sourceval history : t -> History.t

history w is the history of w.

Sourceval get_selection : Brr.Window.t -> Selection.t option

get_selection window gets the selection object for the given window.