Module Stk.MiscSource

Utilities.

Not useful for library's user.

Sourcemodule IMap : sig ... end
Sourcemodule ISet : sig ... end
Sourcemodule type Idset = sig ... end
Sourcemodule type Id = sig ... end
Sourcemodule Id () : Id
Sourcemodule type Base_id = sig ... end
Sourcemodule Idset (I : Base_id) : Idset with type id = I.t
Sourcetype error =
  1. | SDL_error of string
  2. | Missing_prop of string * string
  3. | Font_not_found of string
  4. | Could_not_load_font of string
Sourceexception Error of error
Sourceval error : error -> 'a
Sourceval sdl_error : string -> 'a
Sourceval missing_prop : string -> string -> 'a
Sourceval font_not_found : string -> 'a
Sourceval could_not_load_font : string -> 'a
Sourceval string_of_error : error -> string
Sourceval pp_error : Format.formatter -> error -> unit
Sourceval (let>) : ('a, [< `Msg of string ]) Result.t -> ('a -> 'b) -> 'b
Sourceval event_typ_and_window_id : Tsdl.Sdl.event -> Tsdl.Sdl.Event.enum * int option
Sourceval mouse_event_position : Tsdl.Sdl.window -> Tsdl.Sdl.event -> (int * int) option
Sourceval compare_points : Tsdl.Sdl.point -> Tsdl.Sdl.point -> int
Sourceval pp_point : Format.formatter -> Tsdl.Sdl.point -> unit
Sourceval lwt_reporter : unit -> Logs.reporter
Sourcetype 'a state_machine = {
  1. state : unit -> 'a;
  2. set_state : 'a -> unit;
  3. f : (int * int) option -> Tsdl.Sdl.event -> bool;
}
Sourceval empty_state_machine : 'a state_machine
Sourceval mk_state_machine : 'a -> ('a -> (int * int) option -> Tsdl.Sdl.event -> ('a * bool) option) -> 'a state_machine
Sourceval list_insert : 'a list -> pos:int -> 'a -> 'a list
Sourceval list_add : ?pos:int -> 'a list -> 'a -> 'a list
Sourceval lwt_option_iter : ('a -> unit Lwt.t) -> 'a option -> unit Lwt.t
Sourceval array_array_find_opt : ('a -> bool) -> 'a array array -> 'a option
Sourceval array_array_find_index : ('a -> bool) -> 'a array array -> (int * int) option
Sourceval array_array_fold_right : ('a -> 'b -> 'b) -> 'a array array -> 'b -> 'b
Sourceval array_array_fold_left : ('a -> 'b -> 'a) -> 'a -> 'b array array -> 'a
Sourceval array_array_map : ('a -> 'b) -> 'a array array -> 'b array array
Sourceval array_array_to_list : 'a array array -> 'a list
Sourceval split_string : ?keep_empty:bool -> string -> char list -> string list
Sourceval strip_string : string -> string
Sourceval is_prefix : s:string -> pref:string -> bool
Sourceval is_suffix : s:string -> suff:string -> bool
Sourceval string_contains : s:string -> pat:string -> bool