home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / cairo / cairo-svg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-09-18  |  2.7 KB  |  83 lines

  1. /* cairo - a vector graphics library with display and print output
  2.  *
  3.  * cairo-svg.h
  4.  *
  5.  * Copyright ┬⌐ 2005 Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>
  6.  *
  7.  * This library is free software; you can redistribute it and/or
  8.  * modify it either under the terms of the GNU Lesser General Public
  9.  * License version 2.1 as published by the Free Software Foundation
  10.  * (the "LGPL") or, at your option, under the terms of the Mozilla
  11.  * Public License Version 1.1 (the "MPL"). If you do not alter this
  12.  * notice, a recipient may use your version of this file under either
  13.  * the MPL or the LGPL.
  14.  *
  15.  * You should have received a copy of the LGPL along with this library
  16.  * in the file COPYING-LGPL-2.1; if not, write to the Free Software
  17.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18.  * You should have received a copy of the MPL along with this library
  19.  * in the file COPYING-MPL-1.1
  20.  *
  21.  * The contents of this file are subject to the Mozilla Public License
  22.  * Version 1.1 (the "License"); you may not use this file except in
  23.  * compliance with the License. You may obtain a copy of the License at
  24.  * http://www.mozilla.org/MPL/
  25.  *
  26.  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
  27.  * OF ANY KIND, either express or implied. See the LGPL or the MPL for
  28.  * the specific language governing rights and limitations.
  29.  *
  30.  */
  31.  
  32. #ifndef CAIRO_SVG_H
  33. #define CAIRO_SVG_H
  34.  
  35. #include <cairo.h>
  36.  
  37. #if CAIRO_HAS_SVG_SURFACE
  38.  
  39. CAIRO_BEGIN_DECLS
  40.  
  41. /**
  42.  * cairo_svg_version_t:
  43.  * @CAIRO_SVG_VERSION_1_1: The version 1.1 of the SVG specification.
  44.  * @CAIRO_SVG_VERSION_1_2: The version 1.2 of the SVG specification.
  45.  *
  46.  * #cairo_svg_version_t is used to describe the version number of the SVG
  47.  * specification that a generated SVG file will conform to.
  48.  */
  49. typedef enum _cairo_svg_version {
  50.     CAIRO_SVG_VERSION_1_1,
  51.     CAIRO_SVG_VERSION_1_2
  52. } cairo_svg_version_t;
  53.  
  54. cairo_public cairo_surface_t *
  55. cairo_svg_surface_create (const char   *filename,
  56.               double    width_in_points,
  57.               double    height_in_points);
  58.  
  59. cairo_public cairo_surface_t *
  60. cairo_svg_surface_create_for_stream (cairo_write_func_t    write_func,
  61.                      void           *closure,
  62.                      double        width_in_points,
  63.                      double        height_in_points);
  64.  
  65. cairo_public void
  66. cairo_svg_surface_restrict_to_version (cairo_surface_t         *surface,
  67.                        cairo_svg_version_t       version);
  68.  
  69. cairo_public void
  70. cairo_svg_get_versions (cairo_svg_version_t const    **versions,
  71.                         int                           *num_versions);
  72.  
  73. cairo_public const char *
  74. cairo_svg_version_to_string (cairo_svg_version_t version);
  75.  
  76. CAIRO_END_DECLS
  77.  
  78. #else  /* CAIRO_HAS_SVG_SURFACE */
  79. # error Cairo was not compiled with support for the svg backend
  80. #endif /* CAIRO_HAS_SVG_SURFACE */
  81.  
  82. #endif /* CAIRO_SVG_H */
  83.