Module Evas

module Evas: sig .. end
Evas

type ptr 
type obj 
type t 
type smart_cb = obj -> ptr -> unit 
type modifier 
type callback_priority = [ `after | `before | `default | `other of int ] 
type gl 
type gl_context_version = [ `gles_1_x | `gles_2_x | `gles_3_x ] 
type image_orient = [ `flip_horizontal
| `flip_transpose
| `flip_transverse
| `flip_vertical
| `orient_180
| `orient_270
| `orient_90
| `orient_none ]
module Point: sig .. end
type point = Point.t 
module Coord_point: sig .. end
type coord_point = Coord_point.t 
module Position: sig .. end
type position = Position.t 
module Button_flags: sig .. end
type coord_rectangle = int * int * int * int 
type button_flags = Button_flags.t 
type device 
module Coord_precision_point: sig .. end
type coord_precision_point = Coord_precision_point.t 
module Precision_position: sig .. end
type precision_position = Precision_position.t 
type aspect_control = [ `both | `horizontal | `neither | `none | `vertical ] 
module Signal: sig .. end
type load_error = [ `cancelled
| `corrupt_file
| `does_not_exist
| `generic
| `incompatible_file
| `none
| `permission_denied
| `recursive_reference
| `resource_allocation_failed
| `unknown_collection
| `unknown_format ]
type gl_api 
type map 
type display_mode = [ `compress | `dont_change | `expand | `none ] 
type render_op = [ `add
| `add_rel
| `blend
| `blend_rel
| `copy
| `copy_rel
| `mask
| `mul
| `sub
| `sub_rel
| `tint
| `tint_rel ]
val hint_expand : float
val hint_fill : float
val string_of_ptr : ptr -> string
val string_opt_of_ptr : ptr -> string option
val pointer_canvas_xy_get : t -> int * int
val smart_objects_calculate : t -> unit
val bool_of_ptr : ptr -> bool
val string_string_of_ptr : ptr -> string * string
val store_ptr_bool : ptr -> bool -> unit
val obj_of_ptr : ptr -> obj
val float_of_ptr : ptr -> float

Top Level Functions


type alloc_error = [ `fatal | `none | `recovered ] 
val init : unit -> int
val shutdown : unit -> int
val alloc_error : unit -> alloc_error
val async_events_fd_get : unit -> int
val async_events_process : unit -> int

Render Engine Functions


val render_method_lookup : string -> int
val render_method_list : unit -> string list
val output_method_set : t -> int -> unit
val output_method_get : t -> int

Coordinate Mapping Functions


val coord_screen_x_to_world : t -> int -> int
val coord_screen_y_to_world : t -> int -> int
val coord_world_x_to_screen : t -> int -> int
val coord_world_y_to_screen : t -> int -> int

Output and Viewport Resizing Functions


val output_size_set : t -> int -> int -> unit
val output_size_get : t -> int * int
val output_viewport_set : t -> int -> int -> int -> int -> unit
val output_viewport_get : t -> int * int * int * int
val output_framespace_set : t -> int -> int -> int -> int -> unit
val output_framespace_get : t -> int * int * int * int

Image Functions


val image_cache_flush : t -> unit
val image_cache_reload : t -> unit
val image_cache_set : t -> int -> unit
val image_cache_get : t -> int
val image_max_size_get : t -> (int * int) option

General Canvas Functions


val new_ : unit -> t
val free : t -> unit
val focus_in : t -> unit
val focus_out : t -> unit
val focus_state_get : t -> bool
val nochange_push : t -> unit
val nochange_pop : t -> unit
val damage_rectangle_add : t -> int -> int -> int -> int -> unit
val obscured_rectangle_add : t -> int -> int -> int -> int -> unit
val obscured_clear : t -> unit
val render_async : t -> bool
val render_updates : t -> (int * int * int * int) list
val render : t -> unit
val norender : t -> unit
val render_idle_flush : t -> unit
val render_dump : t -> unit

Input Feeding functions


val device_add : t -> device
val device_del : device -> unit
val device_push : t -> device -> unit
val device_pop : t -> unit
val device_list : t -> device option -> device list
val device_name_set : device -> string -> unit
val device_name_get : device -> string option
val device_description_set : device -> string -> unit
val device_description_get : device -> string option
val device_parent_get : device -> device option

Finding Objects


val focus_get : t -> obj option
val objects_at_xy_get : t -> int -> int -> bool -> bool -> obj list
val objects_in_rectangle_get : t -> int -> int -> int -> int -> bool -> bool -> obj list

Shared Image Cache Server


type cserve_stats = {
   saved_memory : int;
   wasted_memory : int;
   saved_memory_peak : int;
   wasted_memory_peak : int;
   saved_time_image_header_load : float;
   saved_time_image_data_load : float;
}
type cserve_config = {
   cache_max_usage : int;
   cache_item_timeout : int;
   cache_item_timeout_check : int;
}
val cserve_want_get : unit -> bool
val cserve_connected_get : unit -> bool
val cserve_stats_get : unit -> cserve_stats option
val cserve_config_get : unit -> cserve_config option
val cserve_config_set : cserve_config -> bool
val cserve_disconnected : unit -> unit

General Utilites


val load_error_str : load_error -> string
val color_hsv_to_rgb : float -> float -> float -> int * int * int
val color_rgb_to_hsv : int -> int -> int -> float * float * float
val color_argb_premul : int -> int -> int -> int -> int * int * int
val color_argb_unpremul : int -> int -> int -> int -> int * int * int
val data_argb_premul : int array -> unit
val data_argb_unpremul : int array -> unit
val string_char_next_get : string -> int -> int * Int32.t
val string_char_prev_get : string -> int -> int * Int32.t
val string_char_len_get : string -> int