package kicadsch

  1. Overview
  2. Docs

Kicad modules signatures

type orientation =
  1. | Orient_H
  2. | Orient_V

orientation of a text

type coord =
  1. | Coord of int * int

absolute coordinates in the drawing

type size =
  1. | Size of int

font size of a text

type justify =
  1. | J_left
  2. | J_right
  3. | J_center
  4. | J_bottom
  5. | J_top

Text justification of a text

type style =
  1. | Bold
  2. | Italic
  3. | BoldItalic
  4. | NoStyle

Style of a text

type kolor =
  1. | NoColor
  2. | Black
  3. | Green
  4. | Red
  5. | Blue
  6. | Brown

Color of the text. These are the colors appearing ing Kicad schematics

type transfo = (int * int) * (int * int)

Transformation matrix of a relative coordinate around an absolute coordinate. The matrix is layed out as a pair of two lines of pairs

module type Painter = sig ... end

A module able to paint a canvas with several graphic primitives and then to process the canvas into a picture file format. The functions are supposed to be pure

module type SchPainter = sig ... end

A module able to paint a schematic in a schematic context

module type CompPainter = sig ... end

Library component painter

OCaml

Innovation. Community. Security.