module Ecore: sig .. end
Ecore
exception Not_X
exception Not_Wayland
type unit -> unit 
type unit -> bool 
type float -> bool 
type 
type 
type 
type 
type 
type [ `accelerate
       | `accelerate_factor
       | `bounce
       | `cubic_bezier
       | `decelerate
       | `decelerate_factor
       | `divisor_interp
       | `linear
       | `sinusoidal
       | `sinusoidal_factor
       | `spring ] 
type 'a event_type 
type 'a event_handler_cb = 'a event_type -> 'a -> bool 
type 
type 
type 
val x_window_focus : x_window -> unit
val main_loop_thread_safe_call_async : cb -> unit
val main_loop_thread_safe_call_sync : cb -> unit
val call : (unit -> 'a) -> 'a
Same thing as Ecore.main_loop_thread_safe_call_sync except that:
- It is shorter to write
- It can return a result
- If an exception is raised by f () then it can be caught by the thread that
called Ecore.call f
val event_type_new : unit -> 'a event_type
val event_handler_add : 'a event_type -> 'a event_handler_cb -> event_handler
val event_handler_del : event_handler -> unit
val event_add : 'a event_type -> 'a -> ('a -> unit) -> event
val event_del : event -> unit
val time_get : unit -> float
val time_unix_get : unit -> float
val loop_time_get : unit -> float