package eio-trace

  1. Overview
  2. Docs
type context
type text_extents = {
  1. x_bearing : float;
  2. y_bearing : float;
  3. width : float;
  4. height : float;
  5. x_advance : float;
  6. y_advance : float;
}
type rectangle = {
  1. x : float;
  2. y : float;
  3. w : float;
  4. h : float;
}
val set_font_size : context -> float -> unit
val set_line_width : context -> float -> unit
val set_source_rgb : context -> r:float -> g:float -> b:float -> unit
val set_source_rgba : context -> r:float -> g:float -> b:float -> a:float -> unit
val set_source_alpha : context -> r:float -> g:float -> b:float -> float -> unit
val move_to : context -> x:float -> y:float -> unit
val line_to : context -> x:float -> y:float -> unit
val rectangle : context -> x:float -> y:float -> w:float -> h:float -> unit
val stroke : context -> unit
val stroke_preserve : context -> unit
val fill : context -> unit
val fill_preserve : context -> unit
val text_extents : context -> string -> text_extents
val paint_text : context -> ?clip_area:(float * float) -> x:float -> y:float -> string -> unit
val paint : ?alpha:float -> context -> unit
val clip_extents : context -> rectangle
OCaml

Innovation. Community. Security.