package ocamlsdl2

  1. Overview
  2. Docs
type t
type window_flags =
  1. | FullScreen
  2. | OpenGL
  3. | Shown
  4. | Hidden
  5. | Borderless
  6. | Resizable
  7. | Minimized
  8. | Maximized
  9. | Input_Grabbed
  10. | Input_Focus
  11. | Mouse_Focus
  12. | FullScreen_Desktop
  13. | Foreign
type window_pos = [
  1. | `centered
  2. | `pos of int
  3. | `undefined
]
val create : title:string -> pos:(window_pos * window_pos) -> dims:(int * int) -> flags:window_flags list -> t
val create2 : title:string -> x:window_pos -> y:window_pos -> width:int -> height:int -> flags:window_flags list -> t
val set_title : window:t -> title:string -> unit
val show : t -> unit
val hide : t -> unit
val raise_win : t -> unit
val maximize : t -> unit
val minimize : t -> unit
val restore : t -> unit
val get_surface : t -> Sdlsurface.t
val update_surface : t -> unit
val set_brightness : t -> brightness:float -> unit
val get_brightness : t -> float
val destroy : t -> unit
val get_size : t -> int * int
OCaml

Innovation. Community. Security.