package ocamlsdl2

  1. Overview
  2. Docs
type t = Sdlrect.t = {
  1. x : int;
  2. y : int;
  3. w : int;
  4. h : int;
}
val make : pos:(int * int) -> dims:(int * int) -> t
val make1 : (int * int * int * int) -> t
val make2 : pos:(int * int) -> dims:(int * int) -> t
val make4 : x:int -> y:int -> w:int -> h:int -> t
val move : t -> x:int -> y:int -> t
val has_intersection : a:t -> b:t -> bool
val intersect_rect_and_line : rect:t -> p1:(int * int) -> p2:(int * int) -> (int * int * int * int) option
val point_in_rect : p:(int * int) -> r:t -> bool
OCaml

Innovation. Community. Security.