5.3 Module graphics: graphics
Interface to the Ocaml library module Graphics
external open_graph : <string> -> <>
external close_graph : <> -> <>
external clear_graph : <> -> <>
external size_x : <> -> <int>
external size_y : <> -> <int>
OCaml type abreviation : color
type color
End of OCaml type : color
external rgb : <int * int * int> -> <color>
external set_color : <color> -> <>
external black : color
external white : color
external red : color
external green : color
external blue : color
external yellow : color
external cyan : color
external magenta : color
external background : color
external foreground : color
external plot : <int * int> -> <>
external point_color : <int * int> -> <color>
external moveto : <int * int> -> <>
external current_point : <> -> <int * int>
external lineto : <int * int> -> <>
external draw_arc : <int * int * int * int * int * int> -> <>
external draw_ellipse : <int * int * int * int> -> <>
external draw_circle : <int * int * int> -> <>
external set_line_width : <int> -> <>
external draw_char : <ml.char> -> <>
external draw_string : <string> -> <>
external set_font : <string> -> <>
external set_text_size : <int> -> <>
external text_size : <string> -> <int * int>
external fill_rect : <int * int * int * int> -> <>
external fill_poly : <(int,int) ml.pair ml.array> -> <>
external fill_arc : <int * int * int * int * int * int> -> <>
external fill_ellipse : <int * int * int * int> -> <>
external fill_circle : <int * int * int> -> <>
OCaml abstract type : image
type image
End of OCaml type : image
external transp : color
external make_image : <color ml.array ml.array> -> <image>
external dump_image : <image> -> <color ml.array ml.array>
external draw_image : <image * int * int> -> <>
external get_image : <int * int * int * int> -> <image>
external create_image : <int * int> -> <image>
external blit_image : <image * int * int> -> <>
OCaml record type : status
type status
external status_create : <ml.char * bool * bool * int * int> -> <status>
external get_key : <status> -> <ml.char>
external get_keypressed : <status> -> <bool>
external get_button : <status> -> <bool>
external get_mouse_y : <status> -> <int>
external get_mouse_x : <status> -> <int>
End of OCaml type : status
OCaml sum type : event
type event
external Button_down : event
external Button_up : event
external Key_pressed : event
external Mouse_motion : event
external Poll : event
End of OCaml type : event
external wait_next_event : <event ml.list> -> <status>
external mouse_pos : <> -> <int * int>
external button_down : <> -> <bool>
external read_key : <> -> <ml.char>
external key_pressed : <> -> <bool>
external sound : <int * int> -> <>