Module Svg_cairo


module Svg_cairo: sig .. end
Rendering SVG documents with cairo


type status =
| SUCCESS
| NO_MEMORY
| IO_ERROR
| FILE_NOT_FOUND
| INVALID_VALUE
| INVALID_CALL
| PARSE_ERROR
exception Error of status
val init : unit
type t 
val create : unit -> t

Parsing


val parse : t -> string -> unit
val parse_string : t -> string -> unit
val parse_chunk_begin : t -> unit
val parse_chunk : t -> string -> int -> int -> unit
val parse_chunk_end : t -> unit

Rendering


val render : t -> Cairo.t -> unit
val set_viewport_dimenstion : t -> int -> int -> unit
val get_size : t -> int * int