package cairo

  1. Overview
  2. Docs
type 'a t constraint 'a = [< `Gradient | `Linear | `Radial | `Solid | `Surface ]
type any = [ `Gradient | `Linear | `Radial | `Solid | `Surface ] t
val add_color_stop_rgb : [< `Gradient | `Linear | `Radial | `Solid | `Surface Gradient ] t -> ?ofs:float -> float -> float -> float -> unit
val add_color_stop_rgba : [< `Gradient | `Linear | `Radial | `Solid | `Surface Gradient ] t -> ?ofs:float -> float -> float -> float -> float -> unit
val get_color_stop_count : [< `Gradient | `Linear | `Radial | `Solid | `Surface Gradient ] t -> int
val get_color_stop_rgba : [< `Gradient | `Linear | `Radial | `Solid | `Surface Gradient ] t -> idx:int -> float * float * float * float * float
val create_rgb : r:float -> g:float -> b:float -> [ `Solid ] t
val create_rgba : r:float -> g:float -> b:float -> a:float -> [ `Solid ] t
val get_rgba : [< `Gradient | `Linear | `Radial | `Solid | `Surface Solid ] t -> float * float * float * float
val create_for_surface : Surface.t -> [ `Surface ] t
val get_surface : [ `Surface ] t -> Surface.t
val create_linear : x0:float -> y0:float -> x1:float -> y1:float -> [ `Gradient | `Linear ] t
val get_linear_points : [< `Gradient | `Linear | `Radial | `Solid | `Surface Gradient Linear ] t -> float * float * float * float
val create_radial : x0:float -> y0:float -> r0:float -> x1:float -> y1:float -> r1:float -> [ `Gradient | `Radial ] t
val get_radial_circles : [< `Gradient | `Linear | `Radial | `Solid | `Surface Gradient Radial ] t -> float * float * float * float * float * float
type extend =
  1. | NONE
  2. | REPEAT
  3. | REFLECT
  4. | PAD
val set_extend : [< `Gradient | `Linear | `Radial | `Solid | `Surface ] t -> extend -> unit
val get_extend : [< `Gradient | `Linear | `Radial | `Solid | `Surface ] t -> extend
type filter =
  1. | FAST
  2. | GOOD
  3. | BEST
  4. | NEAREST
  5. | BILINEAR
val set_filter : [< `Gradient | `Linear | `Radial | `Solid | `Surface ] t -> filter -> unit
val get_filter : [< `Gradient | `Linear | `Radial | `Solid | `Surface ] t -> filter
val set_matrix : [< `Gradient | `Linear | `Radial | `Solid | `Surface ] t -> Matrix.t -> unit
val get_matrix : [< `Gradient | `Linear | `Radial | `Solid | `Surface ] t -> Matrix.t
OCaml

Innovation. Community. Security.