package sfml

  1. Overview
  2. Docs
Bindings to the SFML multimedia library

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-sfml-0.09.2.tar.gz
sha256=ce1e50dec69a4495232261627a359a8fb54d79788147380bee78b0983f8b6951
md5=9ae99bb47bb68d5181d01b7bbc78a351

doc/sfml.graphics/SFRect/index.html

Module SFRect

Online documentation for the Rect class

type 'a t = {
  1. left : 'a;
  2. top : 'a;
  3. width : 'a;
  4. height : 'a;
}
val contains_f : rect:float t -> x:float -> y:float -> bool
val contains_i : rect:int t -> x:int -> y:int -> bool
val intersects_i : rect1:int t -> rect2:int t -> bool
val intersection_i : rect1:int t -> rect2:int t -> int t option
val intersects_f : rect1:float t -> rect2:float t -> bool
val intersection_f : rect1:float t -> rect2:float t -> float t option
OCaml

Innovation. Community. Security.