2002-04-26 05:16:26 -07:00
|
|
|
##ifdef CAMLTK
|
|
|
|
|
|
|
|
let cCAMLtoTKpaletteType = function
|
|
|
|
GrayShades (foo) -> TkToken (string_of_int foo)
|
|
|
|
| RGBShades (r,v,b) -> TkToken (string_of_int r^"/"^
|
2002-07-23 07:12:03 -07:00
|
|
|
string_of_int v^"/"^
|
|
|
|
string_of_int b)
|
2002-04-26 05:16:26 -07:00
|
|
|
;;
|
|
|
|
|
|
|
|
##else
|
|
|
|
|
1999-11-30 06:59:39 -08:00
|
|
|
let cCAMLtoTKpaletteType : paletteType -> tkArgs = function
|
2000-02-16 03:51:37 -08:00
|
|
|
| `Gray (foo) -> TkToken (string_of_int foo)
|
1999-11-30 06:59:39 -08:00
|
|
|
| `Rgb (r,v,b) -> TkToken (string_of_int r ^ "/" ^
|
|
|
|
string_of_int v ^ "/" ^
|
|
|
|
string_of_int b)
|
2002-04-26 05:16:26 -07:00
|
|
|
;;
|
|
|
|
|
|
|
|
##endif
|