package bimage-display

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

Module Bimage_display.WindowSource

Sourcetype 'a t
Sourceval create : ?callback:('c t -> unit) -> ?width:int -> ?height:int -> string -> ('a, 'b, [< `Rgb | `Rgba ]) Bimage.Image.t -> 'c -> 'c t
Sourceval window : 'a t -> GLFW.window
Sourceval show : 'a t -> unit
Sourceval hide : 'a t -> unit
Sourceval close : 'a t -> unit
Sourceval update : 'a t -> unit
Sourceval data : 'a t -> 'a
Sourceval set_data : 'a t -> 'a -> unit
Sourceval set_callback : 'a t -> ('a t -> unit) option -> unit
Sourceval replace_image : 'x t -> ('a, 'b, [< `Rgb | `Rgba ]) Bimage.Image.t -> unit
Sourceval mouse_position : 'a t -> float -> float -> float * float
Sourceval on_mouse_button : ('a t -> int -> bool -> GLFW.key_mod list -> unit) -> 'a t -> unit
Sourceval on_mouse_move : ('a t -> float -> float -> unit) -> 'a t -> unit
Sourceval on_key : ('a t -> GLFW.key -> int -> GLFW.key_action -> GLFW.key_mod list -> unit) -> 'a t -> unit
Sourceval get_mouse_position : 'a t -> float * float
Sourceval get_key : 'a t -> GLFW.key -> bool
Sourceval get_mouse_button : 'a t -> int -> bool
OCaml

Innovation. Community. Security.