cairo 1.6.1-x86-mswin32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of cairo might be problematic. Click here for more details.
- data/AUTHORS +4 -0
- data/COPYING +59 -0
- data/ChangeLog +1320 -0
- data/GPL +340 -0
- data/NEWS +98 -0
- data/README +70 -0
- data/Rakefile +215 -0
- data/cairo/bin/libcairo-2.dll +0 -0
- data/cairo/bin/libpng13.dll +0 -0
- data/cairo/bin/zlib1.dll +0 -0
- data/cairo/include/cairo/cairo-deprecated.h +142 -0
- data/cairo/include/cairo/cairo-features.h +35 -0
- data/cairo/include/cairo/cairo-pdf.h +68 -0
- data/cairo/include/cairo/cairo-ps.h +114 -0
- data/cairo/include/cairo/cairo-svg.h +82 -0
- data/cairo/include/cairo/cairo-win32.h +104 -0
- data/cairo/include/cairo/cairo.h +1945 -0
- data/cairo/include/libpng13/png.h +3419 -0
- data/cairo/include/libpng13/pngconf.h +1437 -0
- data/cairo/lib/cairo.def +251 -0
- data/cairo/lib/cairo.lib +0 -0
- data/cairo/lib/libcairo.dll.a +0 -0
- data/cairo/lib/libpng.def +372 -0
- data/cairo/lib/libpng13.dll.a +0 -0
- data/cairo/lib/pkgconfig/cairo-pdf.pc +12 -0
- data/cairo/lib/pkgconfig/cairo-png.pc +12 -0
- data/cairo/lib/pkgconfig/cairo-ps.pc +12 -0
- data/cairo/lib/pkgconfig/cairo-svg.pc +12 -0
- data/cairo/lib/pkgconfig/cairo-win32-font.pc +12 -0
- data/cairo/lib/pkgconfig/cairo-win32.pc +12 -0
- data/cairo/lib/pkgconfig/cairo.pc +13 -0
- data/cairo/lib/pkgconfig/libpng.pc +14 -0
- data/cairo/lib/pkgconfig/libpng13.pc +14 -0
- data/cairo/make/cairo-1.6.4-1.sh +55 -0
- data/cairo/manifest/cairo-1.6.4-1.mft +6 -0
- data/cairo/manifest/cairo-dev-1.6.4-1.mft +72 -0
- data/cairo/manifest/libpng-dev-1.2.8.mft +7 -0
- data/cairo/share/doc/cairo-1.6.4-1/COPYING +32 -0
- data/cairo/share/doc/cairo-1.6.4-1/COPYING-LGPL-2.1 +510 -0
- data/cairo/share/doc/cairo-1.6.4-1/COPYING-MPL-1.1 +470 -0
- data/cairo/share/gtk-doc/html/cairo/Drawing.html +53 -0
- data/cairo/share/gtk-doc/html/cairo/Fonts.html +56 -0
- data/cairo/share/gtk-doc/html/cairo/Support.html +50 -0
- data/cairo/share/gtk-doc/html/cairo/Surfaces.html +65 -0
- data/cairo/share/gtk-doc/html/cairo/bindings-errors.html +128 -0
- data/cairo/share/gtk-doc/html/cairo/bindings-fonts.html +59 -0
- data/cairo/share/gtk-doc/html/cairo/bindings-memory.html +129 -0
- data/cairo/share/gtk-doc/html/cairo/bindings-overloading.html +127 -0
- data/cairo/share/gtk-doc/html/cairo/bindings-path.html +123 -0
- data/cairo/share/gtk-doc/html/cairo/bindings-patterns.html +63 -0
- data/cairo/share/gtk-doc/html/cairo/bindings-return-values.html +126 -0
- data/cairo/share/gtk-doc/html/cairo/bindings-streams.html +98 -0
- data/cairo/share/gtk-doc/html/cairo/bindings-surfaces.html +99 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-Error-Handling.html +328 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-Font-Options.html +720 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +297 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +484 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +246 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-PNG-Support.html +345 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-Paths.html +1336 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-Patterns.html +1560 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +656 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-Quartz-Fonts.html +161 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +232 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +337 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-Scaled-Fonts.html +823 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-Text.html +836 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-Transformations.html +462 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-Types.html +143 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-Version-Information.html +325 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +381 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +331 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +525 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +427 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +626 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +995 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-t.html +2795 -0
- data/cairo/share/gtk-doc/html/cairo/cairo.devhelp +432 -0
- data/cairo/share/gtk-doc/html/cairo/cairo.devhelp2 +432 -0
- data/cairo/share/gtk-doc/html/cairo/home.png +0 -0
- data/cairo/share/gtk-doc/html/cairo/index-1.2.html +137 -0
- data/cairo/share/gtk-doc/html/cairo/index-1.4.html +105 -0
- data/cairo/share/gtk-doc/html/cairo/index-1.6.html +65 -0
- data/cairo/share/gtk-doc/html/cairo/index.html +134 -0
- data/cairo/share/gtk-doc/html/cairo/index.sgml +466 -0
- data/cairo/share/gtk-doc/html/cairo/ix01.html +693 -0
- data/cairo/share/gtk-doc/html/cairo/language-bindings.html +79 -0
- data/cairo/share/gtk-doc/html/cairo/left.png +0 -0
- data/cairo/share/gtk-doc/html/cairo/right.png +0 -0
- data/cairo/share/gtk-doc/html/cairo/style.css +148 -0
- data/cairo/share/gtk-doc/html/cairo/up.png +0 -0
- data/doc/doc.css +91 -0
- data/doc/en/cairo-antialias.html +41 -0
- data/doc/en/cairo-antialias.rd +16 -0
- data/doc/en/cairo-clip-not-representable-error.html +50 -0
- data/doc/en/cairo-clip-not-representable-error.rd +17 -0
- data/doc/en/cairo-color-base.html +72 -0
- data/doc/en/cairo-color-base.rd +38 -0
- data/doc/en/cairo-color-cmyk.html +160 -0
- data/doc/en/cairo-color-cmyk.rd +107 -0
- data/doc/en/cairo-color-hsv.html +140 -0
- data/doc/en/cairo-color-hsv.rd +91 -0
- data/doc/en/cairo-color-rgb.html +145 -0
- data/doc/en/cairo-color-rgb.rd +95 -0
- data/doc/en/cairo-color-x11.html +176 -0
- data/doc/en/cairo-color-x11.rd +151 -0
- data/doc/en/cairo-color.html +241 -0
- data/doc/en/cairo-color.rd +213 -0
- data/doc/en/cairo-content.html +40 -0
- data/doc/en/cairo-content.rd +15 -0
- data/doc/en/cairo-context-blur.html +42 -0
- data/doc/en/cairo-context-blur.rd +15 -0
- data/doc/en/cairo-context-circle.html +42 -0
- data/doc/en/cairo-context-circle.rd +15 -0
- data/doc/en/cairo-context-color.html +42 -0
- data/doc/en/cairo-context-color.rd +15 -0
- data/doc/en/cairo-context-path.html +47 -0
- data/doc/en/cairo-context-path.rd +19 -0
- data/doc/en/cairo-context-rectangle.html +42 -0
- data/doc/en/cairo-context-rectangle.rd +15 -0
- data/doc/en/cairo-context-triangle.html +42 -0
- data/doc/en/cairo-context-triangle.rd +15 -0
- data/doc/en/cairo-context.html +636 -0
- data/doc/en/cairo-context.rd +491 -0
- data/doc/en/cairo-error.html +47 -0
- data/doc/en/cairo-error.rd +16 -0
- data/doc/en/cairo-extend.html +41 -0
- data/doc/en/cairo-extend.rd +16 -0
- data/doc/en/cairo-file-not-found.html +50 -0
- data/doc/en/cairo-file-not-found.rd +17 -0
- data/doc/en/cairo-fill-rule.html +39 -0
- data/doc/en/cairo-fill-rule.rd +14 -0
- data/doc/en/cairo-filter.html +43 -0
- data/doc/en/cairo-filter.rd +18 -0
- data/doc/en/cairo-font-extents.html +74 -0
- data/doc/en/cairo-font-extents.rd +40 -0
- data/doc/en/cairo-font-face.html +41 -0
- data/doc/en/cairo-font-face.rd +14 -0
- data/doc/en/cairo-font-options.html +142 -0
- data/doc/en/cairo-font-options.rd +94 -0
- data/doc/en/cairo-font-slant.html +40 -0
- data/doc/en/cairo-font-slant.rd +15 -0
- data/doc/en/cairo-font-weight.html +39 -0
- data/doc/en/cairo-font-weight.rd +14 -0
- data/doc/en/cairo-format.html +49 -0
- data/doc/en/cairo-format.rd +22 -0
- data/doc/en/cairo-glyph.html +102 -0
- data/doc/en/cairo-glyph.rd +62 -0
- data/doc/en/cairo-gradient-pattern.html +77 -0
- data/doc/en/cairo-gradient-pattern.rd +41 -0
- data/doc/en/cairo-hint-metrics.html +40 -0
- data/doc/en/cairo-hint-metrics.rd +15 -0
- data/doc/en/cairo-hint-style.html +42 -0
- data/doc/en/cairo-hint-style.rd +17 -0
- data/doc/en/cairo-image-surface.html +85 -0
- data/doc/en/cairo-image-surface.rd +47 -0
- data/doc/en/cairo-invalid-content-error.html +50 -0
- data/doc/en/cairo-invalid-content-error.rd +17 -0
- data/doc/en/cairo-invalid-dash-error.html +50 -0
- data/doc/en/cairo-invalid-dash-error.rd +17 -0
- data/doc/en/cairo-invalid-dsc-comment-error.html +50 -0
- data/doc/en/cairo-invalid-dsc-comment-error.rd +17 -0
- data/doc/en/cairo-invalid-format-error.html +50 -0
- data/doc/en/cairo-invalid-format-error.rd +17 -0
- data/doc/en/cairo-invalid-index-error.html +50 -0
- data/doc/en/cairo-invalid-index-error.rd +17 -0
- data/doc/en/cairo-invalid-matrix-error.html +50 -0
- data/doc/en/cairo-invalid-matrix-error.rd +17 -0
- data/doc/en/cairo-invalid-path-data-error.html +50 -0
- data/doc/en/cairo-invalid-path-data-error.rd +17 -0
- data/doc/en/cairo-invalid-pop-group-error.html +50 -0
- data/doc/en/cairo-invalid-pop-group-error.rd +17 -0
- data/doc/en/cairo-invalid-restore-error.html +50 -0
- data/doc/en/cairo-invalid-restore-error.rd +17 -0
- data/doc/en/cairo-invalid-status-error.html +50 -0
- data/doc/en/cairo-invalid-status-error.rd +17 -0
- data/doc/en/cairo-invalid-stride-error.html +50 -0
- data/doc/en/cairo-invalid-stride-error.rd +17 -0
- data/doc/en/cairo-invalid-string-error.html +50 -0
- data/doc/en/cairo-invalid-string-error.rd +17 -0
- data/doc/en/cairo-invalid-visual-error.html +50 -0
- data/doc/en/cairo-invalid-visual-error.rd +17 -0
- data/doc/en/cairo-line-cap.html +40 -0
- data/doc/en/cairo-line-cap.rd +15 -0
- data/doc/en/cairo-line-join.html +40 -0
- data/doc/en/cairo-line-join.rd +15 -0
- data/doc/en/cairo-linear-pattern.html +63 -0
- data/doc/en/cairo-linear-pattern.rd +28 -0
- data/doc/en/cairo-matrix.html +257 -0
- data/doc/en/cairo-matrix.rd +186 -0
- data/doc/en/cairo-no-current-point-error.html +50 -0
- data/doc/en/cairo-no-current-point-error.rd +17 -0
- data/doc/en/cairo-null-pointer-error.html +50 -0
- data/doc/en/cairo-null-pointer-error.rd +17 -0
- data/doc/en/cairo-operator.html +51 -0
- data/doc/en/cairo-operator.rd +26 -0
- data/doc/en/cairo-paper-parse-error.html +50 -0
- data/doc/en/cairo-paper-parse-error.rd +17 -0
- data/doc/en/cairo-paper-unknown-paper-name.html +69 -0
- data/doc/en/cairo-paper-unknown-paper-name.rd +30 -0
- data/doc/en/cairo-paper-unknown-unit.html +69 -0
- data/doc/en/cairo-paper-unknown-unit.rd +30 -0
- data/doc/en/cairo-paper-unrecognized-paper-description.html +69 -0
- data/doc/en/cairo-paper-unrecognized-paper-description.rd +30 -0
- data/doc/en/cairo-paper.html +187 -0
- data/doc/en/cairo-paper.rd +141 -0
- data/doc/en/cairo-path-close-path.html +52 -0
- data/doc/en/cairo-path-close-path.rd +21 -0
- data/doc/en/cairo-path-curve-to.html +52 -0
- data/doc/en/cairo-path-curve-to.rd +21 -0
- data/doc/en/cairo-path-data-type.html +41 -0
- data/doc/en/cairo-path-data-type.rd +16 -0
- data/doc/en/cairo-path-data.html +101 -0
- data/doc/en/cairo-path-data.rd +62 -0
- data/doc/en/cairo-path-line-to.html +52 -0
- data/doc/en/cairo-path-line-to.rd +21 -0
- data/doc/en/cairo-path-move-to.html +52 -0
- data/doc/en/cairo-path-move-to.rd +21 -0
- data/doc/en/cairo-path.html +158 -0
- data/doc/en/cairo-path.rd +109 -0
- data/doc/en/cairo-pattern-type-mismatch-error.html +50 -0
- data/doc/en/cairo-pattern-type-mismatch-error.rd +17 -0
- data/doc/en/cairo-pattern.html +102 -0
- data/doc/en/cairo-pattern.rd +62 -0
- data/doc/en/cairo-pdf-surface.html +60 -0
- data/doc/en/cairo-pdf-surface.rd +27 -0
- data/doc/en/cairo-point.html +77 -0
- data/doc/en/cairo-point.rd +42 -0
- data/doc/en/cairo-ps-level.html +52 -0
- data/doc/en/cairo-ps-level.rd +24 -0
- data/doc/en/cairo-ps-surface.html +95 -0
- data/doc/en/cairo-ps-surface.rd +55 -0
- data/doc/en/cairo-quartz-image-surface.html +60 -0
- data/doc/en/cairo-quartz-image-surface.rd +27 -0
- data/doc/en/cairo-quartz-surface.html +60 -0
- data/doc/en/cairo-quartz-surface.rd +27 -0
- data/doc/en/cairo-radial-pattern.html +63 -0
- data/doc/en/cairo-radial-pattern.rd +28 -0
- data/doc/en/cairo-read-error.html +50 -0
- data/doc/en/cairo-read-error.rd +17 -0
- data/doc/en/cairo-rectangle.html +92 -0
- data/doc/en/cairo-rectangle.rd +54 -0
- data/doc/en/cairo-scaled-font.html +87 -0
- data/doc/en/cairo-scaled-font.rd +50 -0
- data/doc/en/cairo-solid-pattern.html +65 -0
- data/doc/en/cairo-solid-pattern.rd +31 -0
- data/doc/en/cairo-subpixel-order.html +42 -0
- data/doc/en/cairo-subpixel-order.rd +17 -0
- data/doc/en/cairo-surface-finished-error.html +50 -0
- data/doc/en/cairo-surface-finished-error.rd +17 -0
- data/doc/en/cairo-surface-pattern.html +60 -0
- data/doc/en/cairo-surface-pattern.rd +27 -0
- data/doc/en/cairo-surface-type-mismatch-error.html +50 -0
- data/doc/en/cairo-surface-type-mismatch-error.rd +17 -0
- data/doc/en/cairo-surface.html +114 -0
- data/doc/en/cairo-surface.rd +72 -0
- data/doc/en/cairo-svg-surface.html +80 -0
- data/doc/en/cairo-svg-surface.rd +44 -0
- data/doc/en/cairo-svg-version.html +52 -0
- data/doc/en/cairo-svg-version.rd +24 -0
- data/doc/en/cairo-temp-file-error.html +50 -0
- data/doc/en/cairo-temp-file-error.rd +17 -0
- data/doc/en/cairo-text-extents.html +79 -0
- data/doc/en/cairo-text-extents.rd +44 -0
- data/doc/en/cairo-win32-printing-surface.html +60 -0
- data/doc/en/cairo-win32-printing-surface.rd +27 -0
- data/doc/en/cairo-win32-surface.html +65 -0
- data/doc/en/cairo-win32-surface.rd +31 -0
- data/doc/en/cairo-write-error.html +50 -0
- data/doc/en/cairo-write-error.rd +17 -0
- data/doc/en/cairo.html +123 -0
- data/doc/en/cairo.rd +95 -0
- data/doc/en/index.html +1080 -0
- data/doc/en/index.rd +1051 -0
- data/doc/index.html +18 -0
- data/doc/ja/cairo-antialias.html +57 -0
- data/doc/ja/cairo-clip-not-representable-error.html +56 -0
- data/doc/ja/cairo-color-base.html +75 -0
- data/doc/ja/cairo-color-cmyk.html +152 -0
- data/doc/ja/cairo-color-hsv.html +135 -0
- data/doc/ja/cairo-color-rgb.html +145 -0
- data/doc/ja/cairo-color-x11.html +183 -0
- data/doc/ja/cairo-color.html +317 -0
- data/doc/ja/cairo-content.html +51 -0
- data/doc/ja/cairo-context-blur.html +53 -0
- data/doc/ja/cairo-context-circle.html +54 -0
- data/doc/ja/cairo-context-color.html +52 -0
- data/doc/ja/cairo-context-path.html +77 -0
- data/doc/ja/cairo-context-rectangle.html +60 -0
- data/doc/ja/cairo-context-triangle.html +47 -0
- data/doc/ja/cairo-context.html +1449 -0
- data/doc/ja/cairo-error.html +56 -0
- data/doc/ja/cairo-extend.html +56 -0
- data/doc/ja/cairo-file-not-found.html +51 -0
- data/doc/ja/cairo-fill-rule.html +58 -0
- data/doc/ja/cairo-filter.html +43 -0
- data/doc/ja/cairo-font-extents.html +110 -0
- data/doc/ja/cairo-font-face.html +55 -0
- data/doc/ja/cairo-font-options.html +186 -0
- data/doc/ja/cairo-font-slant.html +50 -0
- data/doc/ja/cairo-font-weight.html +47 -0
- data/doc/ja/cairo-format.html +81 -0
- data/doc/ja/cairo-glyph.html +115 -0
- data/doc/ja/cairo-gradient-pattern.html +119 -0
- data/doc/ja/cairo-hint-metrics.html +57 -0
- data/doc/ja/cairo-hint-style.html +64 -0
- data/doc/ja/cairo-image-surface.html +131 -0
- data/doc/ja/cairo-invalid-content-error.html +54 -0
- data/doc/ja/cairo-invalid-dash-error.html +54 -0
- data/doc/ja/cairo-invalid-dsc-comment-error.html +54 -0
- data/doc/ja/cairo-invalid-format-error.html +54 -0
- data/doc/ja/cairo-invalid-index-error.html +54 -0
- data/doc/ja/cairo-invalid-matrix-error.html +54 -0
- data/doc/ja/cairo-invalid-path-data-error.html +54 -0
- data/doc/ja/cairo-invalid-pop-group-error.html +54 -0
- data/doc/ja/cairo-invalid-restore-error.html +55 -0
- data/doc/ja/cairo-invalid-status-error.html +55 -0
- data/doc/ja/cairo-invalid-stride-error.html +55 -0
- data/doc/ja/cairo-invalid-string-error.html +54 -0
- data/doc/ja/cairo-invalid-visual-error.html +57 -0
- data/doc/ja/cairo-line-cap.html +50 -0
- data/doc/ja/cairo-line-join.html +53 -0
- data/doc/ja/cairo-linear-pattern.html +87 -0
- data/doc/ja/cairo-matrix.html +343 -0
- data/doc/ja/cairo-no-current-point-error.html +54 -0
- data/doc/ja/cairo-null-pointer-error.html +54 -0
- data/doc/ja/cairo-operator.html +51 -0
- data/doc/ja/cairo-paper-parse-error.html +55 -0
- data/doc/ja/cairo-paper-unknown-paper-name.html +76 -0
- data/doc/ja/cairo-paper-unknown-unit.html +75 -0
- data/doc/ja/cairo-paper-unrecognized-paper-description.html +76 -0
- data/doc/ja/cairo-paper.html +357 -0
- data/doc/ja/cairo-path-close-path.html +57 -0
- data/doc/ja/cairo-path-curve-to.html +70 -0
- data/doc/ja/cairo-path-data-type.html +53 -0
- data/doc/ja/cairo-path-data.html +127 -0
- data/doc/ja/cairo-path-line-to.html +62 -0
- data/doc/ja/cairo-path-move-to.html +62 -0
- data/doc/ja/cairo-path.html +144 -0
- data/doc/ja/cairo-pattern-type-mismatch-error.html +56 -0
- data/doc/ja/cairo-pattern.html +128 -0
- data/doc/ja/cairo-pdf-surface.html +86 -0
- data/doc/ja/cairo-point.html +90 -0
- data/doc/ja/cairo-ps-level.html +62 -0
- data/doc/ja/cairo-ps-surface.html +214 -0
- data/doc/ja/cairo-quartz-image-surface.html +75 -0
- data/doc/ja/cairo-quartz-surface.html +93 -0
- data/doc/ja/cairo-radial-pattern.html +93 -0
- data/doc/ja/cairo-read-error.html +55 -0
- data/doc/ja/cairo-rectangle.html +109 -0
- data/doc/ja/cairo-scaled-font.html +144 -0
- data/doc/ja/cairo-solid-pattern.html +87 -0
- data/doc/ja/cairo-subpixel-order.html +57 -0
- data/doc/ja/cairo-surface-finished-error.html +54 -0
- data/doc/ja/cairo-surface-pattern.html +68 -0
- data/doc/ja/cairo-surface-type-mismatch-error.html +56 -0
- data/doc/ja/cairo-surface.html +191 -0
- data/doc/ja/cairo-svg-surface.html +114 -0
- data/doc/ja/cairo-svg-version.html +66 -0
- data/doc/ja/cairo-temp-file-error.html +50 -0
- data/doc/ja/cairo-text-extents.html +101 -0
- data/doc/ja/cairo-win32-printing-surface.html +80 -0
- data/doc/ja/cairo-win32-surface.html +100 -0
- data/doc/ja/cairo-write-error.html +55 -0
- data/doc/ja/cairo.html +148 -0
- data/doc/ja/index.html +1080 -0
- data/extconf.rb +153 -0
- data/misc/update-colors.rb +143 -0
- data/pkg-config.rb +278 -0
- data/samples/agg/README +4 -0
- data/samples/agg/aa_demo.rb +47 -0
- data/samples/agg/aa_test.rb +304 -0
- data/samples/blur.rb +47 -0
- data/samples/pac.rb +99 -0
- data/samples/pac2.rb +171 -0
- data/samples/png.rb +45 -0
- data/samples/scalable.rb +56 -0
- data/samples/text-on-path.rb +60 -0
- data/samples/text2.rb +131 -0
- data/src/cairo.def +96 -0
- data/src/cairo.so +0 -0
- data/src/lib/cairo.rb +141 -0
- data/src/lib/cairo/color.rb +255 -0
- data/src/lib/cairo/colors.rb +656 -0
- data/src/lib/cairo/constants.rb +21 -0
- data/src/lib/cairo/context.rb +29 -0
- data/src/lib/cairo/context/blur.rb +45 -0
- data/src/lib/cairo/context/circle.rb +9 -0
- data/src/lib/cairo/context/color.rb +11 -0
- data/src/lib/cairo/context/path.rb +116 -0
- data/src/lib/cairo/context/rectangle.rb +33 -0
- data/src/lib/cairo/context/triangle.rb +12 -0
- data/src/lib/cairo/paper.rb +183 -0
- data/src/lib/cairo/papers.rb +41 -0
- data/src/lib/cairo/path.rb +15 -0
- data/src/lib/cairo/point.rb +7 -0
- data/src/libruby-cairo.a +0 -0
- data/src/rb_cairo.c +82 -0
- data/src/rb_cairo.h +264 -0
- data/src/rb_cairo_constants.c +456 -0
- data/src/rb_cairo_context.c +1548 -0
- data/src/rb_cairo_exception.c +214 -0
- data/src/rb_cairo_font_extents.c +125 -0
- data/src/rb_cairo_font_face.c +56 -0
- data/src/rb_cairo_font_options.c +197 -0
- data/src/rb_cairo_glyph.c +159 -0
- data/src/rb_cairo_matrix.c +350 -0
- data/src/rb_cairo_path.c +459 -0
- data/src/rb_cairo_pattern.c +540 -0
- data/src/rb_cairo_private.c +78 -0
- data/src/rb_cairo_private.h +72 -0
- data/src/rb_cairo_scaled_font.c +177 -0
- data/src/rb_cairo_surface.c +1252 -0
- data/src/rb_cairo_text_extents.c +138 -0
- data/test/run-test.rb +15 -0
- data/test/test_paper.rb +81 -0
- data/test/test_pkg_config.rb +122 -0
- metadata +490 -0
data/Rakefile
ADDED
@@ -0,0 +1,215 @@
|
|
1
|
+
# -*- coding: utf-8; mode: ruby -*-
|
2
|
+
|
3
|
+
require 'English'
|
4
|
+
|
5
|
+
require 'find'
|
6
|
+
require 'fileutils'
|
7
|
+
require 'rubygems'
|
8
|
+
require 'hoe'
|
9
|
+
|
10
|
+
base_dir = File.join(File.dirname(__FILE__))
|
11
|
+
truncate_base_dir = Proc.new do |x|
|
12
|
+
x.gsub(/^#{Regexp.escape(base_dir + File::SEPARATOR)}/, '')
|
13
|
+
end
|
14
|
+
|
15
|
+
cairo_ext_dir = File.join(base_dir, 'src')
|
16
|
+
cairo_lib_dir = File.join(cairo_ext_dir, 'lib')
|
17
|
+
$LOAD_PATH.unshift(cairo_ext_dir)
|
18
|
+
$LOAD_PATH.unshift(cairo_lib_dir)
|
19
|
+
ENV["RUBYLIB"] = "#{cairo_lib_dir}:#{cairo_ext_dir}:#{ENV['RUBYLIB']}"
|
20
|
+
|
21
|
+
def guess_rcairo_version
|
22
|
+
require 'cairo'
|
23
|
+
Cairo.bindings_version
|
24
|
+
end
|
25
|
+
|
26
|
+
cairo_win32_dir = "cairo"
|
27
|
+
FileUtils.rm_rf(cairo_win32_dir)
|
28
|
+
|
29
|
+
manifest = File.join(base_dir, "Manifest.txt")
|
30
|
+
manifest_contents = []
|
31
|
+
base_dir_included_components = %w(AUTHORS COPYING ChangeLog GPL
|
32
|
+
NEWS README Rakefile
|
33
|
+
extconf.rb pkg-config.rb)
|
34
|
+
excluded_components = %w(.cvsignore .gdb_history CVS depend Makefile pkg)
|
35
|
+
excluded_suffixes = %w(.png .ps .pdf .o .so .a .txt .~)
|
36
|
+
Find.find(base_dir) do |target|
|
37
|
+
target = truncate_base_dir[target]
|
38
|
+
components = target.split(File::SEPARATOR)
|
39
|
+
if components.size == 1 and !File.directory?(target)
|
40
|
+
next unless base_dir_included_components.include?(components[0])
|
41
|
+
end
|
42
|
+
Find.prune if (excluded_components - components) != excluded_components
|
43
|
+
next if excluded_suffixes.include?(File.extname(target))
|
44
|
+
manifest_contents << target if File.file?(target)
|
45
|
+
end
|
46
|
+
|
47
|
+
File.open(manifest, "w") do |f|
|
48
|
+
f.puts manifest_contents.sort.join("\n")
|
49
|
+
end
|
50
|
+
|
51
|
+
# For Hoe's no user friendly default behavior. :<
|
52
|
+
File.open("README.txt", "w") {|file| file << "= Dummy README\n== XXX\n"}
|
53
|
+
FileUtils.cp("NEWS", "History.txt")
|
54
|
+
at_exit do
|
55
|
+
FileUtils.rm_f("README.txt")
|
56
|
+
FileUtils.rm_f("History.txt")
|
57
|
+
FileUtils.rm_f(manifest)
|
58
|
+
end
|
59
|
+
|
60
|
+
ENV["VERSION"] ||= guess_rcairo_version
|
61
|
+
version = ENV["VERSION"]
|
62
|
+
project = Hoe.new('cairo', version) do |project|
|
63
|
+
project.rubyforge_name = 'cairo'
|
64
|
+
authors = File.join(base_dir, "AUTHORS")
|
65
|
+
project.author = File.readlines(authors).collect do |line|
|
66
|
+
if /\s*<[^<>]*>$/ =~ line
|
67
|
+
$PREMATCH
|
68
|
+
else
|
69
|
+
nil
|
70
|
+
end
|
71
|
+
end.compact
|
72
|
+
project.email = ['cairo@cairographics.org']
|
73
|
+
project.summary = 'Ruby bindings for cairo'
|
74
|
+
project.url = 'http://cairographics.org/rcairo'
|
75
|
+
project.test_globs = []
|
76
|
+
project.spec_extras = {
|
77
|
+
:extensions => ['extconf.rb'],
|
78
|
+
:require_paths => ['src/lib', 'src'],
|
79
|
+
:has_rdoc => false,
|
80
|
+
}
|
81
|
+
news = File.join(base_dir, "NEWS")
|
82
|
+
project.changes = File.read(news).gsub(/\n+^Release(?m:.*)/, '')
|
83
|
+
project.description = "Ruby bindings for cairo"
|
84
|
+
project.need_tar = false
|
85
|
+
project.remote_rdoc_dir = "doc"
|
86
|
+
end
|
87
|
+
|
88
|
+
project.spec.dependencies.delete_if {|dependency| dependency.name == "hoe"}
|
89
|
+
|
90
|
+
if /mswin32/ =~ project.spec.platform.to_s
|
91
|
+
project.spec.extensions = []
|
92
|
+
project.spec.files += ["src/cairo.so", "src/libruby-cairo.a"]
|
93
|
+
|
94
|
+
FileUtils.cp_r(File.expand_path("~/.wine/drive_c/cairo-dev"),
|
95
|
+
cairo_win32_dir)
|
96
|
+
cairo_files = []
|
97
|
+
Find.find(cairo_win32_dir) do |f|
|
98
|
+
cairo_files << f
|
99
|
+
end
|
100
|
+
project.spec.files += cairo_files
|
101
|
+
end
|
102
|
+
|
103
|
+
# fix Hoe's incorrect guess.
|
104
|
+
project.spec.executables.clear
|
105
|
+
project.lib_files = project.spec.files.grep(%r|^src/lib/|)
|
106
|
+
|
107
|
+
# fix Hoe's install and uninstall task.
|
108
|
+
task(:install).instance_variable_get("@actions").clear
|
109
|
+
task(:uninstall).instance_variable_get("@actions").clear
|
110
|
+
|
111
|
+
task :install do
|
112
|
+
[
|
113
|
+
[project.lib_files, "lib", Hoe::RUBYLIB, 0444],
|
114
|
+
[project.bin_files, "bin", File.join(Hoe::PREFIX, 'bin'), 0555]
|
115
|
+
].each do |files, prefix, dest, mode|
|
116
|
+
FileUtils.mkdir_p dest unless test ?d, dest
|
117
|
+
files.each do |file|
|
118
|
+
base = File.dirname(file.sub(/^#{prefix}#{File::SEPARATOR}/, ''))
|
119
|
+
_dest = File.join(dest, base)
|
120
|
+
FileUtils.mkdir_p _dest unless test ?d, _dest
|
121
|
+
install file, _dest, :mode => mode
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
desc 'Uninstall the package.'
|
127
|
+
task :uninstall do
|
128
|
+
Dir.chdir Hoe::RUBYLIB do
|
129
|
+
rm_f project.lib_files.collect {|f| f.sub(/^lib#{File::SEPARATOR}/, '')}
|
130
|
+
end
|
131
|
+
Dir.chdir File.join(Hoe::PREFIX, 'bin') do
|
132
|
+
rm_f project.bin_files.collect {|f| f.sub(/^bin#{File::SEPARATOR}/, '')}
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
|
137
|
+
# for releasing
|
138
|
+
task :dist => [:docs] do
|
139
|
+
sh "./dist.sh", version
|
140
|
+
end
|
141
|
+
task :gem => [:docs]
|
142
|
+
|
143
|
+
# for documentation
|
144
|
+
langs = [
|
145
|
+
["en", "English"],
|
146
|
+
["ja", "日本語"],
|
147
|
+
]
|
148
|
+
|
149
|
+
rcairo_doc_dir = File.expand_path(File.join(base_dir, "..", "rcairo-doc"))
|
150
|
+
rcairo_doc_css = File.join(rcairo_doc_dir, "doc.css")
|
151
|
+
rcairo_doc_title_image = File.join(rcairo_doc_dir, "rcairo-title.png")
|
152
|
+
doc_dir = "doc"
|
153
|
+
doc_index = File.join(doc_dir, "index.html")
|
154
|
+
doc_css = File.join(doc_dir, "doc.css")
|
155
|
+
doc_title_image = File.join(doc_dir, "rcairo-title.png")
|
156
|
+
task(doc_index).instance_variable_get("@actions").clear
|
157
|
+
|
158
|
+
file doc_dir do
|
159
|
+
mkdir_p doc_dir
|
160
|
+
end
|
161
|
+
|
162
|
+
file doc_title_image => [doc_dir, rcairo_doc_title_image] do
|
163
|
+
cp rcairo_doc_title_image, doc_title_image
|
164
|
+
end
|
165
|
+
|
166
|
+
file doc_css => [rcairo_doc_css, doc_title_image] do
|
167
|
+
cp rcairo_doc_css, doc_css
|
168
|
+
end
|
169
|
+
|
170
|
+
file doc_index => doc_css do
|
171
|
+
File.open(doc_index, "w") do |index|
|
172
|
+
index << <<-EOH
|
173
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
174
|
+
<html>
|
175
|
+
<head>
|
176
|
+
<title>rcairo reference manual</title>
|
177
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
178
|
+
</head>
|
179
|
+
|
180
|
+
<body>
|
181
|
+
<h1>rcairo reference manual</h1>
|
182
|
+
|
183
|
+
<ul>
|
184
|
+
EOH
|
185
|
+
|
186
|
+
langs.each do |lang, native_lang|
|
187
|
+
index << <<-EOH
|
188
|
+
<li><a href="#{lang}/">#{native_lang}</a></li>
|
189
|
+
EOH
|
190
|
+
end
|
191
|
+
|
192
|
+
index << <<-EOH
|
193
|
+
</ui>
|
194
|
+
|
195
|
+
<p><a href="../">Up</a></p>
|
196
|
+
</body>
|
197
|
+
</html>
|
198
|
+
EOH
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
langs.each do |lang,|
|
203
|
+
lang_doc_dir = File.join(doc_dir, lang)
|
204
|
+
directory lang_doc_dir
|
205
|
+
lang_doc_index = File.join(lang_doc_dir, "index.html")
|
206
|
+
file doc_index => lang_doc_index
|
207
|
+
file lang_doc_index => [lang_doc_dir] do
|
208
|
+
lang_doc_dir = File.join(doc_dir, lang)
|
209
|
+
lang_rcairo_doc_dir = File.join(rcairo_doc_dir, lang)
|
210
|
+
cp Dir[File.join(lang_rcairo_doc_dir, "*.rd")], lang_doc_dir
|
211
|
+
ruby File.join(rcairo_doc_dir, "update-html.rb"), lang_doc_dir
|
212
|
+
ruby File.join(rcairo_doc_dir, "update-html.rb"), lang_doc_dir
|
213
|
+
rm Dir[File.join(lang_doc_dir, "*.{rd,rdc,rbl}")]
|
214
|
+
end
|
215
|
+
end
|
Binary file
|
Binary file
|
data/cairo/bin/zlib1.dll
ADDED
Binary file
|
@@ -0,0 +1,142 @@
|
|
1
|
+
/* cairo - a vector graphics library with display and print output
|
2
|
+
*
|
3
|
+
* Copyright © 2006 Red Hat, Inc.
|
4
|
+
*
|
5
|
+
* This library is free software; you can redistribute it and/or
|
6
|
+
* modify it either under the terms of the GNU Lesser General Public
|
7
|
+
* License version 2.1 as published by the Free Software Foundation
|
8
|
+
* (the "LGPL") or, at your option, under the terms of the Mozilla
|
9
|
+
* Public License Version 1.1 (the "MPL"). If you do not alter this
|
10
|
+
* notice, a recipient may use your version of this file under either
|
11
|
+
* the MPL or the LGPL.
|
12
|
+
*
|
13
|
+
* You should have received a copy of the LGPL along with this library
|
14
|
+
* in the file COPYING-LGPL-2.1; if not, write to the Free Software
|
15
|
+
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
16
|
+
* You should have received a copy of the MPL along with this library
|
17
|
+
* in the file COPYING-MPL-1.1
|
18
|
+
*
|
19
|
+
* The contents of this file are subject to the Mozilla Public License
|
20
|
+
* Version 1.1 (the "License"); you may not use this file except in
|
21
|
+
* compliance with the License. You may obtain a copy of the License at
|
22
|
+
* http://www.mozilla.org/MPL/
|
23
|
+
*
|
24
|
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
|
25
|
+
* OF ANY KIND, either express or implied. See the LGPL or the MPL for
|
26
|
+
* the specific language governing rights and limitations.
|
27
|
+
*
|
28
|
+
* The Original Code is the cairo graphics library.
|
29
|
+
*
|
30
|
+
* The Initial Developer of the Original Code is Red Hat, Inc.
|
31
|
+
*
|
32
|
+
* Contributor(s):
|
33
|
+
* Carl D. Worth <cworth@cworth.org>
|
34
|
+
*/
|
35
|
+
|
36
|
+
#ifndef CAIRO_DEPRECATED_H
|
37
|
+
#define CAIRO_DEPRECATED_H
|
38
|
+
|
39
|
+
/* The %CAIRO_FORMAT_RGB16_565 value was added in cairo 1.2.0 as part
|
40
|
+
* of fixing cairo's xlib backend to work with X servers advertising a
|
41
|
+
* 16-bit, 565 visual. But as it turned out, adding this format to
|
42
|
+
* #cairo_format_t was not necessary, and was a mistake, (cairo's xlib
|
43
|
+
* backend can work fine with 16-bit visuals in the same way it works
|
44
|
+
* with BGR visuals without any BGR formats in
|
45
|
+
* #cairo_format_t).
|
46
|
+
*
|
47
|
+
* Additionally, the support for the RGB16_565 format was never
|
48
|
+
* completely implemented. So while this format value is currently
|
49
|
+
* deprecated, it may eventually acquire complete support in the future.
|
50
|
+
*/
|
51
|
+
#define CAIRO_FORMAT_RGB16_565 4
|
52
|
+
|
53
|
+
#define CAIRO_FONT_TYPE_ATSUI CAIRO_FONT_TYPE_QUARTZ
|
54
|
+
|
55
|
+
#ifndef _CAIROINT_H_
|
56
|
+
|
57
|
+
/* Obsolete functions. These definitions exist to coerce the compiler
|
58
|
+
* into providing a little bit of guidance with its error
|
59
|
+
* messages. The idea is to help users port their old code without
|
60
|
+
* having to dig through lots of documentation.
|
61
|
+
*
|
62
|
+
* The first set of REPLACED_BY functions is for functions whose names
|
63
|
+
* have just been changed. So fixing these up is mechanical, (and
|
64
|
+
* automated by means of the cairo/util/cairo-api-update script.
|
65
|
+
*
|
66
|
+
* The second set of DEPRECATED_BY functions is for functions where
|
67
|
+
* the replacement is used in a different way, (ie. different
|
68
|
+
* arguments, multiple functions instead of one, etc). Fixing these up
|
69
|
+
* will require a bit more work on the user's part, (and hopefully we
|
70
|
+
* can get cairo-api-update to find these and print some guiding
|
71
|
+
* information).
|
72
|
+
*/
|
73
|
+
#define cairo_current_font_extents cairo_current_font_extents_REPLACED_BY_cairo_font_extents
|
74
|
+
#define cairo_get_font_extents cairo_get_font_extents_REPLACED_BY_cairo_font_extents
|
75
|
+
#define cairo_current_operator cairo_current_operator_REPLACED_BY_cairo_get_operator
|
76
|
+
#define cairo_current_tolerance cairo_current_tolerance_REPLACED_BY_cairo_get_tolerance
|
77
|
+
#define cairo_current_point cairo_current_point_REPLACED_BY_cairo_get_current_point
|
78
|
+
#define cairo_current_fill_rule cairo_current_fill_rule_REPLACED_BY_cairo_get_fill_rule
|
79
|
+
#define cairo_current_line_width cairo_current_line_width_REPLACED_BY_cairo_get_line_width
|
80
|
+
#define cairo_current_line_cap cairo_current_line_cap_REPLACED_BY_cairo_get_line_cap
|
81
|
+
#define cairo_current_line_join cairo_current_line_join_REPLACED_BY_cairo_get_line_join
|
82
|
+
#define cairo_current_miter_limit cairo_current_miter_limit_REPLACED_BY_cairo_get_miter_limit
|
83
|
+
#define cairo_current_matrix cairo_current_matrix_REPLACED_BY_cairo_get_matrix
|
84
|
+
#define cairo_current_target_surface cairo_current_target_surface_REPLACED_BY_cairo_get_target
|
85
|
+
#define cairo_get_status cairo_get_status_REPLACED_BY_cairo_status
|
86
|
+
#define cairo_concat_matrix cairo_concat_matrix_REPLACED_BY_cairo_transform
|
87
|
+
#define cairo_scale_font cairo_scale_font_REPLACED_BY_cairo_set_font_size
|
88
|
+
#define cairo_select_font cairo_select_font_REPLACED_BY_cairo_select_font_face
|
89
|
+
#define cairo_transform_font cairo_transform_font_REPLACED_BY_cairo_set_font_matrix
|
90
|
+
#define cairo_transform_point cairo_transform_point_REPLACED_BY_cairo_user_to_device
|
91
|
+
#define cairo_transform_distance cairo_transform_distance_REPLACED_BY_cairo_user_to_device_distance
|
92
|
+
#define cairo_inverse_transform_point cairo_inverse_transform_point_REPLACED_BY_cairo_device_to_user
|
93
|
+
#define cairo_inverse_transform_distance cairo_inverse_transform_distance_REPLACED_BY_cairo_device_to_user_distance
|
94
|
+
#define cairo_init_clip cairo_init_clip_REPLACED_BY_cairo_reset_clip
|
95
|
+
#define cairo_surface_create_for_image cairo_surface_create_for_image_REPLACED_BY_cairo_image_surface_create_for_data
|
96
|
+
#define cairo_default_matrix cairo_default_matrix_REPLACED_BY_cairo_identity_matrix
|
97
|
+
#define cairo_matrix_set_affine cairo_matrix_set_affine_REPLACED_BY_cairo_matrix_init
|
98
|
+
#define cairo_matrix_set_identity cairo_matrix_set_identity_REPLACED_BY_cairo_matrix_init_identity
|
99
|
+
#define cairo_pattern_add_color_stop cairo_pattern_add_color_stop_REPLACED_BY_cairo_pattern_add_color_stop_rgba
|
100
|
+
#define cairo_set_rgb_color cairo_set_rgb_color_REPLACED_BY_cairo_set_source_rgb
|
101
|
+
#define cairo_set_pattern cairo_set_pattern_REPLACED_BY_cairo_set_source
|
102
|
+
#define cairo_xlib_surface_create_for_pixmap_with_visual cairo_xlib_surface_create_for_pixmap_with_visual_REPLACED_BY_cairo_xlib_surface_create
|
103
|
+
#define cairo_xlib_surface_create_for_window_with_visual cairo_xlib_surface_create_for_window_with_visual_REPLACED_BY_cairo_xlib_surface_create
|
104
|
+
#define cairo_xcb_surface_create_for_pixmap_with_visual cairo_xcb_surface_create_for_pixmap_with_visual_REPLACED_BY_cairo_xcb_surface_create
|
105
|
+
#define cairo_xcb_surface_create_for_window_with_visual cairo_xcb_surface_create_for_window_with_visual_REPLACED_BY_cairo_xcb_surface_create
|
106
|
+
#define cairo_ps_surface_set_dpi cairo_ps_surface_set_dpi_REPLACED_BY_cairo_surface_set_fallback_resolution
|
107
|
+
#define cairo_pdf_surface_set_dpi cairo_pdf_surface_set_dpi_REPLACED_BY_cairo_surface_set_fallback_resolution
|
108
|
+
#define cairo_svg_surface_set_dpi cairo_svg_surface_set_dpi_REPLACED_BY_cairo_surface_set_fallback_resolution
|
109
|
+
#define cairo_atsui_font_face_create_for_atsu_font_id cairo_atsui_font_face_create_for_atsu_font_id_REPLACED_BY_cairo_quartz_font_face_create_for_atsu_font_id
|
110
|
+
|
111
|
+
#define cairo_current_path cairo_current_path_DEPRECATED_BY_cairo_copy_path
|
112
|
+
#define cairo_current_path_flat cairo_current_path_flat_DEPRECATED_BY_cairo_copy_path_flat
|
113
|
+
#define cairo_get_path cairo_get_path_DEPRECATED_BY_cairo_copy_path
|
114
|
+
#define cairo_get_path_flat cairo_get_path_flat_DEPRECATED_BY_cairo_get_path_flat
|
115
|
+
#define cairo_set_alpha cairo_set_alpha_DEPRECATED_BY_cairo_set_source_rgba_OR_cairo_paint_with_alpha
|
116
|
+
#define cairo_show_surface cairo_show_surface_DEPRECATED_BY_cairo_set_source_surface_AND_cairo_paint
|
117
|
+
#define cairo_copy cairo_copy_DEPRECATED_BY_cairo_create_AND_MANY_INDIVIDUAL_FUNCTIONS
|
118
|
+
#define cairo_surface_set_repeat cairo_surface_set_repeat_DEPRECATED_BY_cairo_pattern_set_extend
|
119
|
+
#define cairo_surface_set_matrix cairo_surface_set_matrix_DEPRECATED_BY_cairo_pattern_set_matrix
|
120
|
+
#define cairo_surface_get_matrix cairo_surface_get_matrix_DEPRECATED_BY_cairo_pattern_get_matrix
|
121
|
+
#define cairo_surface_set_filter cairo_surface_set_filter_DEPRECATED_BY_cairo_pattern_set_filter
|
122
|
+
#define cairo_surface_get_filter cairo_surface_get_filter_DEPRECATED_BY_cairo_pattern_get_filter
|
123
|
+
#define cairo_matrix_create cairo_matrix_create_DEPRECATED_BY_cairo_matrix_t
|
124
|
+
#define cairo_matrix_destroy cairo_matrix_destroy_DEPRECATED_BY_cairo_matrix_t
|
125
|
+
#define cairo_matrix_copy cairo_matrix_copy_DEPRECATED_BY_cairo_matrix_t
|
126
|
+
#define cairo_matrix_get_affine cairo_matrix_get_affine_DEPRECATED_BY_cairo_matrix_t
|
127
|
+
#define cairo_set_target_surface cairo_set_target_surface_DEPRECATED_BY_cairo_create
|
128
|
+
#define cairo_set_target_glitz cairo_set_target_glitz_DEPRECATED_BY_cairo_glitz_surface_create
|
129
|
+
#define cairo_set_target_image cairo_set_target_image_DEPRECATED_BY_cairo_image_surface_create_for_data
|
130
|
+
#define cairo_set_target_pdf cairo_set_target_pdf_DEPRECATED_BY_cairo_pdf_surface_create
|
131
|
+
#define cairo_set_target_png cairo_set_target_png_DEPRECATED_BY_cairo_surface_write_to_png
|
132
|
+
#define cairo_set_target_ps cairo_set_target_ps_DEPRECATED_BY_cairo_ps_surface_create
|
133
|
+
#define cairo_set_target_quartz cairo_set_target_quartz_DEPRECATED_BY_cairo_quartz_surface_create
|
134
|
+
#define cairo_set_target_win32 cairo_set_target_win32_DEPRECATED_BY_cairo_win32_surface_create
|
135
|
+
#define cairo_set_target_xcb cairo_set_target_xcb_DEPRECATED_BY_cairo_xcb_surface_create
|
136
|
+
#define cairo_set_target_drawable cairo_set_target_drawable_DEPRECATED_BY_cairo_xlib_surface_create
|
137
|
+
#define cairo_get_status_string cairo_get_status_string_DEPRECATED_BY_cairo_status_AND_cairo_status_to_string
|
138
|
+
#define cairo_status_string cairo_status_string_DEPRECATED_BY_cairo_status_AND_cairo_status_to_string
|
139
|
+
|
140
|
+
#endif
|
141
|
+
|
142
|
+
#endif /* CAIRO_DEPRECATED_H */
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/* Generated by configure. Do not edit */
|
2
|
+
#ifndef CAIRO_FEATURES_H
|
3
|
+
#define CAIRO_FEATURES_H
|
4
|
+
|
5
|
+
#ifdef __cplusplus
|
6
|
+
# define CAIRO_BEGIN_DECLS extern "C" {
|
7
|
+
# define CAIRO_END_DECLS }
|
8
|
+
#else
|
9
|
+
# define CAIRO_BEGIN_DECLS
|
10
|
+
# define CAIRO_END_DECLS
|
11
|
+
#endif
|
12
|
+
|
13
|
+
#ifndef cairo_public
|
14
|
+
# define cairo_public
|
15
|
+
#endif
|
16
|
+
|
17
|
+
#define CAIRO_VERSION_MAJOR 1
|
18
|
+
#define CAIRO_VERSION_MINOR 6
|
19
|
+
#define CAIRO_VERSION_MICRO 4
|
20
|
+
|
21
|
+
#define CAIRO_VERSION_STRING "1.6.4"
|
22
|
+
|
23
|
+
#define CAIRO_HAS_SVG_SURFACE 1
|
24
|
+
#define CAIRO_HAS_PDF_SURFACE 1
|
25
|
+
#define CAIRO_HAS_PS_SURFACE 1
|
26
|
+
#define CAIRO_HAS_PNG_FUNCTIONS 1
|
27
|
+
#define CAIRO_HAS_WIN32_FONT 1
|
28
|
+
#define CAIRO_HAS_WIN32_SURFACE 1
|
29
|
+
|
30
|
+
/*#undef CAIRO_HAS_QUARTZ_FONT */
|
31
|
+
/*#undef CAIRO_HAS_QUARTZ_SURFACE */
|
32
|
+
/*#undef CAIRO_HAS_XLIB_XRENDER_SURFACE */
|
33
|
+
/*#undef CAIRO_HAS_XLIB_SURFACE */
|
34
|
+
|
35
|
+
#endif
|
@@ -0,0 +1,68 @@
|
|
1
|
+
/* cairo - a vector graphics library with display and print output
|
2
|
+
*
|
3
|
+
* Copyright © 2002 University of Southern California
|
4
|
+
*
|
5
|
+
* This library is free software; you can redistribute it and/or
|
6
|
+
* modify it either under the terms of the GNU Lesser General Public
|
7
|
+
* License version 2.1 as published by the Free Software Foundation
|
8
|
+
* (the "LGPL") or, at your option, under the terms of the Mozilla
|
9
|
+
* Public License Version 1.1 (the "MPL"). If you do not alter this
|
10
|
+
* notice, a recipient may use your version of this file under either
|
11
|
+
* the MPL or the LGPL.
|
12
|
+
*
|
13
|
+
* You should have received a copy of the LGPL along with this library
|
14
|
+
* in the file COPYING-LGPL-2.1; if not, write to the Free Software
|
15
|
+
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
16
|
+
* You should have received a copy of the MPL along with this library
|
17
|
+
* in the file COPYING-MPL-1.1
|
18
|
+
*
|
19
|
+
* The contents of this file are subject to the Mozilla Public License
|
20
|
+
* Version 1.1 (the "License"); you may not use this file except in
|
21
|
+
* compliance with the License. You may obtain a copy of the License at
|
22
|
+
* http://www.mozilla.org/MPL/
|
23
|
+
*
|
24
|
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
|
25
|
+
* OF ANY KIND, either express or implied. See the LGPL or the MPL for
|
26
|
+
* the specific language governing rights and limitations.
|
27
|
+
*
|
28
|
+
* The Original Code is the cairo graphics library.
|
29
|
+
*
|
30
|
+
* The Initial Developer of the Original Code is University of Southern
|
31
|
+
* California.
|
32
|
+
*
|
33
|
+
* Contributor(s):
|
34
|
+
* Carl D. Worth <cworth@cworth.org>
|
35
|
+
*/
|
36
|
+
|
37
|
+
#ifndef CAIRO_PDF_H
|
38
|
+
#define CAIRO_PDF_H
|
39
|
+
|
40
|
+
#include <cairo.h>
|
41
|
+
|
42
|
+
#if CAIRO_HAS_PDF_SURFACE
|
43
|
+
|
44
|
+
CAIRO_BEGIN_DECLS
|
45
|
+
|
46
|
+
cairo_public cairo_surface_t *
|
47
|
+
cairo_pdf_surface_create (const char *filename,
|
48
|
+
double width_in_points,
|
49
|
+
double height_in_points);
|
50
|
+
|
51
|
+
cairo_public cairo_surface_t *
|
52
|
+
cairo_pdf_surface_create_for_stream (cairo_write_func_t write_func,
|
53
|
+
void *closure,
|
54
|
+
double width_in_points,
|
55
|
+
double height_in_points);
|
56
|
+
|
57
|
+
cairo_public void
|
58
|
+
cairo_pdf_surface_set_size (cairo_surface_t *surface,
|
59
|
+
double width_in_points,
|
60
|
+
double height_in_points);
|
61
|
+
|
62
|
+
CAIRO_END_DECLS
|
63
|
+
|
64
|
+
#else /* CAIRO_HAS_PDF_SURFACE */
|
65
|
+
# error Cairo was not compiled with support for the pdf backend
|
66
|
+
#endif /* CAIRO_HAS_PDF_SURFACE */
|
67
|
+
|
68
|
+
#endif /* CAIRO_PDF_H */
|