package oxbow

  1. Overview
  2. Docs
Dynamic window manager for the river Wayland compositor

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1.1.tar.gz
md5=a182e6d368a65e6752771e41e651713f
sha512=020d2c7f9f4e06966ca56695e24eb0b41dd12500aa65d2cd9b56e03068bbb6ea7770de0a33c04f0d054bd474bee8c2b36bb46af86266c9823490e1bd0810c027

doc/oxbow.core/Oxbow_core/Extent/index.html

Module Oxbow_core.ExtentSource

Sourcetype t =
  1. | Px of int
  2. | Pct of float
Sourceval resolve : ref:int -> t -> int

resolve ~ref e is e in pixels: Px n is n; Pct f is f percent of ref, rounded to the nearest integer.

Sourceval to_string : t -> string

to_string e is a string of_string parses back to e.

Sourceval of_string : string -> (t, string) result

of_string s parses "50" as Px 50 and "12.5%" as Pct 12.5; Error msg when malformed.

Sourceval t_of_yojson : Yojson.Safe.t -> t
Sourceval yojson_of_t : t -> Yojson.Safe.t