ocaml-js-stdlib

Binding OCaml to JavaScript standard library
Library ocaml-js-stdlib
Module Js_dom . Event
class event : Ojs.t -> object ... end
class mouse_event : Ojs.t -> object ... end
class keyboard_event : Ojs.t -> object ... end
class hash_change_event : Ojs.t -> object ... end
class page_transition_event : Ojs.t -> object ... end
class focus_event : Ojs.t -> object ... end
class animation_event : Ojs.t -> object ... end
class transition_event : Ojs.t -> object ... end
class wheel_event : Ojs.t -> object ... end
class message_event : Ojs.t -> object ... end
class file_event : Ojs.t -> object ... end
type !_ t =
| Click : mouse_event t
| DblClick : mouse_event t
| MouseDown : mouse_event t
| MouseEnter : mouse_event t
| MouseLeave : mouse_event t
| MouseMove : mouse_event t
| MouseOut : mouse_event t
| MouseOver : mouse_event t
| MouseUp : mouse_event t
| KeyDown : keyboard_event t
| KeyPress : keyboard_event t
| KeyUp : keyboard_event t
| HashChange : hash_change_event t
| Load : event t
| Message : message_event t
| Resize : event t
| LoadEnd : file_event t
| Change : event t
type 'a callback
val wrap_callback : 'a t -> ( 'a -> unit ) -> 'a callback
class listener : Ojs.t -> object ... end