package tiny_appkits

  1. Overview
  2. Docs
Application engines from scratch: a spreadsheet, rich text, paint, draw, CAD, editors and more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.6.tar.gz
md5=7c636383d146d30ac6f2fa234a6253c8
sha512=c79f3823c5f8f57e5038eb640d487c61168b84aa07c61999d6622ef9fd0c890e2b03b4c6a7cdbbe9352a49e25dda00ac7bb14693cee8e3d7beeed251351a2af0

doc/tiny_appkits.appkit_richtext/Page/index.html

Module PageSource

Sourcetype metrics = Style.t -> string -> float
Sourcetype align =
  1. | Left
  2. | Center
  3. | Right
  4. | Justify
Sourcetype glyph = {
  1. offset : int;
  2. text : string;
  3. style : Style.t;
  4. x : float;
  5. baseline : float;
  6. advance : float;
}
Sourcetype line = {
  1. top : float;
  2. height : float;
  3. baseline : float;
  4. cells : glyph list;
  5. first : int;
  6. stop : int;
}
Sourcetype t
Sourceval layout : ?align:align -> ?around:(float * float * float * float) list -> ?both:bool -> metrics:metrics -> width:float -> Rich.t -> t
Sourceval glyphs : t -> glyph list
Sourceval lines : t -> line list
Sourceval height : t -> float
Sourceval caret_at : t -> int -> float * float * float
Sourceval offset_at : t -> (float * float) -> int