1999-11-30 06:59:39 -08:00
|
|
|
(* Tk_GetPixels emulation *)
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
##ifdef CAMLTK
|
|
|
|
|
|
|
|
(* type *)
|
|
|
|
type units =
|
|
|
|
| Pixels of int (* specified as floating-point, but inconvenient *)
|
|
|
|
| Centimeters of float
|
|
|
|
| Inches of float
|
|
|
|
| Millimeters of float
|
|
|
|
| PrinterPoint of float
|
|
|
|
;;
|
|
|
|
(* /type *)
|
|
|
|
|
|
|
|
##else
|
|
|
|
|
1999-11-30 06:59:39 -08:00
|
|
|
(* type *)
|
|
|
|
type units = [
|
2000-04-02 18:57:52 -07:00
|
|
|
| `Pix of int
|
|
|
|
| `Cm of float
|
|
|
|
| `In of float
|
|
|
|
| `Mm of float
|
|
|
|
| `Pt of float
|
1999-11-30 06:59:39 -08:00
|
|
|
]
|
2002-04-26 05:16:26 -07:00
|
|
|
;;
|
1999-11-30 06:59:39 -08:00
|
|
|
(* /type *)
|
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
##endif
|