package stk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Stk.MiscSource

Utilities.

Not useful for library's user.

Sourcemodule IMap : sig ... end
Sourcemodule ISet : sig ... end
Sourcemodule SMap : 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
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 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
OCaml

Innovation. Community. Security.