module JavaApplet:sig
..end
In order to produce a jar archive containing an applet, it is necessary to link the application with the -applet k command-line switch, where k designate the kind of applet (AWT-, Swing-, or Graphics-based). An applet class will be generated, with name pack.ocamljavaApplet where pack can be set using the -java-package p command-line switch.
When linking with the -applet k command-line switch, the last
module to be linked has to abide to one of the module types of the
JavaApplet
module, the exact module type depending on the value of
k.
type
parameter = {
|
param_name : |
(* | parameter name. | *) |
|
param_type : |
(* | parameter type. | *) |
|
param_desc : |
(* | parameter description. | *) |
type
parameter_info
val parameter_info_of_list : parameter list -> parameter_info
module type AWT =sig
..end
module type Swing =sig
..end
type
graphics_event = {
|
mouse_x : |
(* | X coordinate of the mouse. | *) |
|
mouse_y : |
(* | Y coordinate of the mouse. | *) |
|
: |
(* | true if a mouse button is pressed. | *) |
|
keypressed : |
(* | true if a key has been pressed. | *) |
|
key : |
(* | the character for the key pressed. | *) |
Graphics.status
, copied to avoid dependency.module type Graphics =sig
..end