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 in 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 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 file in a painter context

module type CompPainter = sig ... end

The library that is able to read component libraries and memorize the read components. Then when passed a drawing context and a component to paint it can paint the component on demand to the drawing context

OCaml

Innovation. Community. Security.