sfml

Bindings to the SFML multimedia library
IN THIS PACKAGE
Module SFWindow
type t
val create : mode:SFVideoMode.t -> title:string -> style:SFStyle.t list -> settings:SFContextSettings.t -> t
val make : ?style:SFStyle.t list -> ?bpp:int -> ?settings:SFContextSettings.t -> (int * int) -> string -> t
type window_handle = nativeint
val createFromHandle : handle:window_handle -> settings:SFContextSettings.t -> t
val close : t -> unit
val isOpen : t -> bool
val getSettings : t -> SFContextSettings.t
val pollEvent : t -> SFEvent.t option
val waitEvent : t -> SFEvent.t
val getPosition : t -> int * int
val setPosition : t -> pos:(int * int) -> unit
val setPosition2 : t -> left:int -> top:int -> unit
val getSize : t -> int * int
val getWidth : t -> int
val getHeight : t -> int
val setSize : t -> size:(int * int) -> unit
val setSize2 : t -> width:int -> height:int -> unit
val setTitle : t -> title:string -> unit
val setVisible : t -> visible:bool -> unit
val setVerticalSyncEnabled : t -> enabled:bool -> unit
val setMouseCursorVisible : t -> visible:bool -> unit
val setMouseCursorGrabbed : t -> grabbed:bool -> unit
val setMouseCursor : t -> cursor:SFCursor.t -> unit
val setKeyRepeatEnabled : t -> enabled:bool -> unit
val setFramerateLimit : t -> limit:int -> unit
val setJoystickThreshold : t -> threshold:float -> unit
val setActive : t -> active:bool -> bool
val requestFocus : t -> unit
val hasFocus : t -> bool
val display : t -> unit
val getSystemHandle : t -> window_handle
val getMousePosition : relativeTo:t -> int * int
val setMousePosition : relativeTo:t -> (int * int) -> unit