package cairo

  1. Overview
  2. Docs
val get_type : [> `Any ] pattern -> [ `Any | `Linear | `Radial | `Solid | `Surface ]
val downcast_to_solid : [> `Any ] pattern -> solid_pattern
val downcast_to_surface : [> `Any ] pattern -> surface_pattern
val downcast_to_gradient : [> `Any ] pattern -> gradient_pattern
val create_rgb : red:float -> green:float -> blue:float -> solid_pattern
val create_rgba : red:float -> green:float -> blue:float -> alpha:float -> solid_pattern
val create_for_surface : [> `Any ] surface -> surface_pattern
val create_linear : x0:float -> y0:float -> x1:float -> y1:float -> gradient_pattern
val create_radial : cx0:float -> cy0:float -> radius0:float -> cx1:float -> cy1:float -> radius1:float -> gradient_pattern
val add_color_stop_rgb : [> `Gradient ] pattern -> off:float -> red:float -> green:float -> blue:float -> unit
val add_color_stop_rgba : [> `Gradient ] pattern -> off:float -> red:float -> green:float -> blue:float -> alpha:float -> unit
val set_matrix : [> `Any ] pattern -> matrix -> unit
val get_matrix : [> `Any ] pattern -> matrix
val set_extend : [> `Surface ] pattern -> extend -> unit
val get_extend : [> `Surface ] pattern -> extend
val set_filter : [> `Surface ] pattern -> filter -> unit
val get_filter : [> `Surface ] pattern -> filter
OCaml

Innovation. Community. Security.