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_draw/Drawing/index.html

Module DrawingSource

Sourcetype id = int
Sourcetype t
Sourceval empty : t
Sourceval add : Figure.t -> t -> t * id
Sourceval figures : t -> (id * Figure.t) list
Sourceval get : t -> id -> Figure.t option
Sourceval at : tolerance:float -> t -> Figure.point -> id option
Sourceval within : t -> Figure.box -> id list
Sourceval update : id -> (Figure.t -> Figure.t) -> t -> t
Sourceval move : id list -> float -> float -> t -> t
Sourceval delete : id list -> t -> t
Sourceval to_front : id list -> t -> t
Sourceval to_back : id list -> t -> t
Sourceval group : id list -> t -> t * id option
Sourceval ungroup : id -> t -> t * id list
Sourceval duplicate : id list -> t -> t * id list
Sourcetype side =
  1. | Lefts
  2. | Rights
  3. | Tops
  4. | Bottoms
  5. | Centers
Sourceval align : side -> id list -> t -> t
Sourceval bounds : t -> id list -> Figure.box option