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
@@ -0,0 +1,656 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
5
|
+
<title>PostScript Surfaces</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
7
|
+
<link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
|
+
<link rel="up" href="Surfaces.html" title="Surfaces">
|
9
|
+
<link rel="prev" href="cairo-PNG-Support.html" title="PNG Support">
|
10
|
+
<link rel="next" href="cairo-Win32-Surfaces.html" title="Win32 Surfaces">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
<link rel="chapter" href="Drawing.html" title="Drawing">
|
14
|
+
<link rel="chapter" href="Fonts.html" title="Fonts">
|
15
|
+
<link rel="chapter" href="Surfaces.html" title="Surfaces">
|
16
|
+
<link rel="chapter" href="Support.html" title="Utilities">
|
17
|
+
<link rel="index" href="ix01.html" title="Index">
|
18
|
+
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
|
+
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
|
+
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
+
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
22
|
+
</head>
|
23
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
24
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
25
|
+
<tr valign="middle">
|
26
|
+
<td><a accesskey="p" href="cairo-PNG-Support.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
27
|
+
<td><a accesskey="u" href="Surfaces.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
28
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
29
|
+
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
30
|
+
<td><a accesskey="n" href="cairo-Win32-Surfaces.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
31
|
+
</tr>
|
32
|
+
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2623104" class="shortcut">Top</a>
|
33
|
+
 | 
|
34
|
+
<a href="#id2666904" class="shortcut">Description</a></nobr></td></tr>
|
35
|
+
</table>
|
36
|
+
<div class="refentry" lang="en">
|
37
|
+
<a name="cairo-PostScript-Surfaces"></a><div class="titlepage"></div>
|
38
|
+
<div class="refnamediv"><table width="100%"><tr>
|
39
|
+
<td valign="top">
|
40
|
+
<h2>
|
41
|
+
<a name="id2623104"></a><span class="refentrytitle">PostScript Surfaces</span>
|
42
|
+
</h2>
|
43
|
+
<p>PostScript Surfaces — Rendering PostScript documents</p>
|
44
|
+
</td>
|
45
|
+
<td valign="top" align="right"></td>
|
46
|
+
</tr></table></div>
|
47
|
+
<div class="refsynopsisdiv">
|
48
|
+
<h2>Synopsis</h2>
|
49
|
+
<pre class="synopsis">
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
#define <a class="link" href="cairo-PostScript-Surfaces.html#CAIRO-HAS-PS-SURFACE:CAPS">CAIRO_HAS_PS_SURFACE</a>
|
54
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-create">cairo_ps_surface_create</a> (const char *filename,
|
55
|
+
double width_in_points,
|
56
|
+
double height_in_points);
|
57
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-create-for-stream">cairo_ps_surface_create_for_stream</a> (<a class="link" href="cairo-PNG-Support.html#cairo-write-func-t">cairo_write_func_t</a> write_func,
|
58
|
+
void *closure,
|
59
|
+
double width_in_points,
|
60
|
+
double height_in_points);
|
61
|
+
void <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-restrict-to-level">cairo_ps_surface_restrict_to_level</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
|
62
|
+
<a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-level-t">cairo_ps_level_t</a> level);
|
63
|
+
enum <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-level-t">cairo_ps_level_t</a>;
|
64
|
+
void <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-get-levels">cairo_ps_get_levels</a> (<a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-level-t">cairo_ps_level_t</a> const **levels,
|
65
|
+
int *num_levels);
|
66
|
+
const char* <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-level-to-string">cairo_ps_level_to_string</a> (<a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-level-t">cairo_ps_level_t</a> level);
|
67
|
+
void <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-set-eps">cairo_ps_surface_set_eps</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
|
68
|
+
<a class="link" href="cairo-Types.html#cairo-bool-t">cairo_bool_t</a> eps);
|
69
|
+
<a class="link" href="cairo-Types.html#cairo-bool-t">cairo_bool_t</a> <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-get-eps">cairo_ps_surface_get_eps</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);
|
70
|
+
void <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-set-size">cairo_ps_surface_set_size</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
|
71
|
+
double width_in_points,
|
72
|
+
double height_in_points);
|
73
|
+
void <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-begin-setup">cairo_ps_surface_dsc_begin_setup</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);
|
74
|
+
void <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-begin-page-setup">cairo_ps_surface_dsc_begin_page_setup</a>
|
75
|
+
(<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);
|
76
|
+
void <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-comment">cairo_ps_surface_dsc_comment</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
|
77
|
+
const char *comment);
|
78
|
+
</pre>
|
79
|
+
</div>
|
80
|
+
<div class="refsect1" lang="en">
|
81
|
+
<a name="id2666904"></a><h2>Description</h2>
|
82
|
+
<p>
|
83
|
+
The PostScript surface is used to render cairo graphics to Adobe
|
84
|
+
PostScript files and is a multi-page vector surface backend.
|
85
|
+
</p>
|
86
|
+
</div>
|
87
|
+
<div class="refsect1" lang="en">
|
88
|
+
<a name="id2666922"></a><h2>Details</h2>
|
89
|
+
<div class="refsect2" lang="en">
|
90
|
+
<a name="id2666933"></a><h3>
|
91
|
+
<a name="CAIRO-HAS-PS-SURFACE:CAPS"></a>CAIRO_HAS_PS_SURFACE</h3>
|
92
|
+
<a class="indexterm" name="id2666944"></a><pre class="programlisting">#define CAIRO_HAS_PS_SURFACE 1
|
93
|
+
</pre>
|
94
|
+
<p>
|
95
|
+
Defined if the PostScript surface backend is available.
|
96
|
+
This macro can be used to conditionally compile backend-specific code.
|
97
|
+
</p>
|
98
|
+
</div>
|
99
|
+
<hr>
|
100
|
+
<div class="refsect2" lang="en">
|
101
|
+
<a name="id2666961"></a><h3>
|
102
|
+
<a name="cairo-ps-surface-create"></a>cairo_ps_surface_create ()</h3>
|
103
|
+
<a class="indexterm" name="id2666975"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_ps_surface_create (const char *filename,
|
104
|
+
double width_in_points,
|
105
|
+
double height_in_points);</pre>
|
106
|
+
<p>
|
107
|
+
Creates a PostScript surface of the specified size in points to be
|
108
|
+
written to <em class="parameter"><code>filename</code></em>. See <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-create-for-stream"><code class="function">cairo_ps_surface_create_for_stream()</code></a> for
|
109
|
+
a more flexible mechanism for handling the PostScript output than
|
110
|
+
simply writing it to a named file.
|
111
|
+
</p>
|
112
|
+
<p>
|
113
|
+
Note that the size of individual pages of the PostScript output can
|
114
|
+
vary. See <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-set-size"><code class="function">cairo_ps_surface_set_size()</code></a>.</p>
|
115
|
+
<p>
|
116
|
+
|
117
|
+
</p>
|
118
|
+
<div class="variablelist"><table border="0">
|
119
|
+
<col align="left" valign="top">
|
120
|
+
<tbody>
|
121
|
+
<tr>
|
122
|
+
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
123
|
+
<td> a filename for the PS output (must be writable)
|
124
|
+
</td>
|
125
|
+
</tr>
|
126
|
+
<tr>
|
127
|
+
<td><p><span class="term"><em class="parameter"><code>width_in_points</code></em> :</span></p></td>
|
128
|
+
<td> width of the surface, in points (1 point == 1/72.0 inch)
|
129
|
+
</td>
|
130
|
+
</tr>
|
131
|
+
<tr>
|
132
|
+
<td><p><span class="term"><em class="parameter"><code>height_in_points</code></em> :</span></p></td>
|
133
|
+
<td> height of the surface, in points (1 point == 1/72.0 inch)
|
134
|
+
</td>
|
135
|
+
</tr>
|
136
|
+
<tr>
|
137
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
138
|
+
<td> a pointer to the newly created surface. The caller
|
139
|
+
owns the surface and should call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy"><code class="function">cairo_surface_destroy()</code></a> when done
|
140
|
+
with it.
|
141
|
+
|
142
|
+
This function always returns a valid pointer, but it will return a
|
143
|
+
pointer to a "nil" surface if an error such as out of memory
|
144
|
+
occurs. You can use <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-status"><code class="function">cairo_surface_status()</code></a> to check for this.
|
145
|
+
|
146
|
+
</td>
|
147
|
+
</tr>
|
148
|
+
</tbody>
|
149
|
+
</table></div>
|
150
|
+
<p class="since">Since 1.2
|
151
|
+
</p>
|
152
|
+
</div>
|
153
|
+
<hr>
|
154
|
+
<div class="refsect2" lang="en">
|
155
|
+
<a name="id2659861"></a><h3>
|
156
|
+
<a name="cairo-ps-surface-create-for-stream"></a>cairo_ps_surface_create_for_stream ()</h3>
|
157
|
+
<a class="indexterm" name="id2659875"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_ps_surface_create_for_stream (<a class="link" href="cairo-PNG-Support.html#cairo-write-func-t">cairo_write_func_t</a> write_func,
|
158
|
+
void *closure,
|
159
|
+
double width_in_points,
|
160
|
+
double height_in_points);</pre>
|
161
|
+
<p>
|
162
|
+
Creates a PostScript surface of the specified size in points to be
|
163
|
+
written incrementally to the stream represented by <em class="parameter"><code>write_func</code></em> and
|
164
|
+
<em class="parameter"><code>closure</code></em>. See <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-create"><code class="function">cairo_ps_surface_create()</code></a> for a more convenient way
|
165
|
+
to simply direct the PostScript output to a named file.
|
166
|
+
</p>
|
167
|
+
<p>
|
168
|
+
Note that the size of individual pages of the PostScript
|
169
|
+
output can vary. See <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-set-size"><code class="function">cairo_ps_surface_set_size()</code></a>.</p>
|
170
|
+
<p>
|
171
|
+
|
172
|
+
</p>
|
173
|
+
<div class="variablelist"><table border="0">
|
174
|
+
<col align="left" valign="top">
|
175
|
+
<tbody>
|
176
|
+
<tr>
|
177
|
+
<td><p><span class="term"><em class="parameter"><code>write_func</code></em> :</span></p></td>
|
178
|
+
<td> a <a class="link" href="cairo-PNG-Support.html#cairo-write-func-t"><span class="type">cairo_write_func_t</span></a> to accept the output data
|
179
|
+
</td>
|
180
|
+
</tr>
|
181
|
+
<tr>
|
182
|
+
<td><p><span class="term"><em class="parameter"><code>closure</code></em> :</span></p></td>
|
183
|
+
<td> the closure argument for <em class="parameter"><code>write_func</code></em>
|
184
|
+
</td>
|
185
|
+
</tr>
|
186
|
+
<tr>
|
187
|
+
<td><p><span class="term"><em class="parameter"><code>width_in_points</code></em> :</span></p></td>
|
188
|
+
<td> width of the surface, in points (1 point == 1/72.0 inch)
|
189
|
+
</td>
|
190
|
+
</tr>
|
191
|
+
<tr>
|
192
|
+
<td><p><span class="term"><em class="parameter"><code>height_in_points</code></em> :</span></p></td>
|
193
|
+
<td> height of the surface, in points (1 point == 1/72.0 inch)
|
194
|
+
</td>
|
195
|
+
</tr>
|
196
|
+
<tr>
|
197
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
198
|
+
<td> a pointer to the newly created surface. The caller
|
199
|
+
owns the surface and should call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy"><code class="function">cairo_surface_destroy()</code></a> when done
|
200
|
+
with it.
|
201
|
+
|
202
|
+
This function always returns a valid pointer, but it will return a
|
203
|
+
pointer to a "nil" surface if an error such as out of memory
|
204
|
+
occurs. You can use <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-status"><code class="function">cairo_surface_status()</code></a> to check for this.
|
205
|
+
|
206
|
+
</td>
|
207
|
+
</tr>
|
208
|
+
</tbody>
|
209
|
+
</table></div>
|
210
|
+
<p class="since">Since 1.2
|
211
|
+
</p>
|
212
|
+
</div>
|
213
|
+
<hr>
|
214
|
+
<div class="refsect2" lang="en">
|
215
|
+
<a name="id2660080"></a><h3>
|
216
|
+
<a name="cairo-ps-surface-restrict-to-level"></a>cairo_ps_surface_restrict_to_level ()</h3>
|
217
|
+
<a class="indexterm" name="id2660095"></a><pre class="programlisting">void cairo_ps_surface_restrict_to_level (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
|
218
|
+
<a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-level-t">cairo_ps_level_t</a> level);</pre>
|
219
|
+
<p>
|
220
|
+
Restricts the generated PostSript file to <em class="parameter"><code>level</code></em>. See
|
221
|
+
<a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-get-levels"><code class="function">cairo_ps_get_levels()</code></a> for a list of available level values that
|
222
|
+
can be used here.
|
223
|
+
</p>
|
224
|
+
<p>
|
225
|
+
This function should only be called before any drawing operations
|
226
|
+
have been performed on the given surface. The simplest way to do
|
227
|
+
this is to call this function immediately after creating the
|
228
|
+
surface.</p>
|
229
|
+
<p>
|
230
|
+
|
231
|
+
</p>
|
232
|
+
<div class="variablelist"><table border="0">
|
233
|
+
<col align="left" valign="top">
|
234
|
+
<tbody>
|
235
|
+
<tr>
|
236
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
237
|
+
<td> a PostScript <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a>
|
238
|
+
</td>
|
239
|
+
</tr>
|
240
|
+
<tr>
|
241
|
+
<td><p><span class="term"><em class="parameter"><code>level</code></em> :</span></p></td>
|
242
|
+
<td> PostScript level
|
243
|
+
</td>
|
244
|
+
</tr>
|
245
|
+
</tbody>
|
246
|
+
</table></div>
|
247
|
+
<p class="since">Since 1.6
|
248
|
+
</p>
|
249
|
+
</div>
|
250
|
+
<hr>
|
251
|
+
<div class="refsect2" lang="en">
|
252
|
+
<a name="id2667653"></a><h3>
|
253
|
+
<a name="cairo-ps-level-t"></a>enum cairo_ps_level_t</h3>
|
254
|
+
<a class="indexterm" name="id2667663"></a><pre class="programlisting">typedef enum _cairo_ps_level {
|
255
|
+
CAIRO_PS_LEVEL_2,
|
256
|
+
CAIRO_PS_LEVEL_3
|
257
|
+
} cairo_ps_level_t;
|
258
|
+
</pre>
|
259
|
+
<p>
|
260
|
+
<a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-level-t"><span class="type">cairo_ps_level_t</span></a> is used to describe the language level of the
|
261
|
+
PostScript Language Reference that a generated PostScript file will
|
262
|
+
conform to.</p>
|
263
|
+
<p>
|
264
|
+
|
265
|
+
</p>
|
266
|
+
<div class="variablelist"><table border="0">
|
267
|
+
<col align="left" valign="top">
|
268
|
+
<tbody>
|
269
|
+
<tr>
|
270
|
+
<td><p><span class="term"><a name="CAIRO-PS-LEVEL-2:CAPS"></a><code class="literal">CAIRO_PS_LEVEL_2</code></span></p></td>
|
271
|
+
<td> The language level 2 of the PostScript specification.
|
272
|
+
</td>
|
273
|
+
</tr>
|
274
|
+
<tr>
|
275
|
+
<td><p><span class="term"><a name="CAIRO-PS-LEVEL-3:CAPS"></a><code class="literal">CAIRO_PS_LEVEL_3</code></span></p></td>
|
276
|
+
<td> The language level 3 of the PostScript specification.
|
277
|
+
</td>
|
278
|
+
</tr>
|
279
|
+
</tbody>
|
280
|
+
</table></div>
|
281
|
+
</div>
|
282
|
+
<hr>
|
283
|
+
<div class="refsect2" lang="en">
|
284
|
+
<a name="id2667734"></a><h3>
|
285
|
+
<a name="cairo-ps-get-levels"></a>cairo_ps_get_levels ()</h3>
|
286
|
+
<a class="indexterm" name="id2667746"></a><pre class="programlisting">void cairo_ps_get_levels (<a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-level-t">cairo_ps_level_t</a> const **levels,
|
287
|
+
int *num_levels);</pre>
|
288
|
+
<p>
|
289
|
+
Used to retrieve the list of supported levels. See
|
290
|
+
<a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-restrict-to-level"><code class="function">cairo_ps_surface_restrict_to_level()</code></a>.</p>
|
291
|
+
<p>
|
292
|
+
|
293
|
+
</p>
|
294
|
+
<div class="variablelist"><table border="0">
|
295
|
+
<col align="left" valign="top">
|
296
|
+
<tbody>
|
297
|
+
<tr>
|
298
|
+
<td><p><span class="term"><em class="parameter"><code>levels</code></em> :</span></p></td>
|
299
|
+
<td> supported level list
|
300
|
+
</td>
|
301
|
+
</tr>
|
302
|
+
<tr>
|
303
|
+
<td><p><span class="term"><em class="parameter"><code>num_levels</code></em> :</span></p></td>
|
304
|
+
<td> list length
|
305
|
+
</td>
|
306
|
+
</tr>
|
307
|
+
</tbody>
|
308
|
+
</table></div>
|
309
|
+
<p class="since">Since 1.6
|
310
|
+
</p>
|
311
|
+
</div>
|
312
|
+
<hr>
|
313
|
+
<div class="refsect2" lang="en">
|
314
|
+
<a name="id2667835"></a><h3>
|
315
|
+
<a name="cairo-ps-level-to-string"></a>cairo_ps_level_to_string ()</h3>
|
316
|
+
<a class="indexterm" name="id2667849"></a><pre class="programlisting">const char* cairo_ps_level_to_string (<a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-level-t">cairo_ps_level_t</a> level);</pre>
|
317
|
+
<p>
|
318
|
+
Get the string representation of the given <em class="parameter"><code>level</code></em> id. This function
|
319
|
+
will return <code class="literal">NULL</code> if <em class="parameter"><code>level</code></em> id isn't valid. See <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-get-levels"><code class="function">cairo_ps_get_levels()</code></a>
|
320
|
+
for a way to get the list of valid level ids.</p>
|
321
|
+
<p>
|
322
|
+
|
323
|
+
</p>
|
324
|
+
<div class="variablelist"><table border="0">
|
325
|
+
<col align="left" valign="top">
|
326
|
+
<tbody>
|
327
|
+
<tr>
|
328
|
+
<td><p><span class="term"><em class="parameter"><code>level</code></em> :</span></p></td>
|
329
|
+
<td> a level id
|
330
|
+
</td>
|
331
|
+
</tr>
|
332
|
+
<tr>
|
333
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
334
|
+
<td> the string associated to given level.
|
335
|
+
|
336
|
+
</td>
|
337
|
+
</tr>
|
338
|
+
</tbody>
|
339
|
+
</table></div>
|
340
|
+
<p class="since">Since 1.6
|
341
|
+
</p>
|
342
|
+
</div>
|
343
|
+
<hr>
|
344
|
+
<div class="refsect2" lang="en">
|
345
|
+
<a name="id2667950"></a><h3>
|
346
|
+
<a name="cairo-ps-surface-set-eps"></a>cairo_ps_surface_set_eps ()</h3>
|
347
|
+
<a class="indexterm" name="id2667963"></a><pre class="programlisting">void cairo_ps_surface_set_eps (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
|
348
|
+
<a class="link" href="cairo-Types.html#cairo-bool-t">cairo_bool_t</a> eps);</pre>
|
349
|
+
<p>
|
350
|
+
If <em class="parameter"><code>eps</code></em> is <code class="literal">TRUE</code>, the PostScript surface will output Encapsulated
|
351
|
+
PostScript.
|
352
|
+
</p>
|
353
|
+
<p>
|
354
|
+
This function should only be called before any drawing operations
|
355
|
+
have been performed on the current page. The simplest way to do
|
356
|
+
this is to call this function immediately after creating the
|
357
|
+
surface. An Encapsulated PostScript file should never contain more
|
358
|
+
than one page.</p>
|
359
|
+
<p>
|
360
|
+
|
361
|
+
</p>
|
362
|
+
<div class="variablelist"><table border="0">
|
363
|
+
<col align="left" valign="top">
|
364
|
+
<tbody>
|
365
|
+
<tr>
|
366
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
367
|
+
<td> a PostScript <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a>
|
368
|
+
</td>
|
369
|
+
</tr>
|
370
|
+
<tr>
|
371
|
+
<td><p><span class="term"><em class="parameter"><code>eps</code></em> :</span></p></td>
|
372
|
+
<td> <code class="literal">TRUE</code> to output EPS format PostScript
|
373
|
+
</td>
|
374
|
+
</tr>
|
375
|
+
</tbody>
|
376
|
+
</table></div>
|
377
|
+
<p class="since">Since 1.6
|
378
|
+
</p>
|
379
|
+
</div>
|
380
|
+
<hr>
|
381
|
+
<div class="refsect2" lang="en">
|
382
|
+
<a name="id2668083"></a><h3>
|
383
|
+
<a name="cairo-ps-surface-get-eps"></a>cairo_ps_surface_get_eps ()</h3>
|
384
|
+
<a class="indexterm" name="id2668097"></a><pre class="programlisting"><a class="link" href="cairo-Types.html#cairo-bool-t">cairo_bool_t</a> cairo_ps_surface_get_eps (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
|
385
|
+
<p>
|
386
|
+
Check whether the PostScript surface will output Encapsulated PostScript.</p>
|
387
|
+
<p>
|
388
|
+
|
389
|
+
</p>
|
390
|
+
<div class="variablelist"><table border="0">
|
391
|
+
<col align="left" valign="top">
|
392
|
+
<tbody>
|
393
|
+
<tr>
|
394
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
395
|
+
<td> a PostScript <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a>
|
396
|
+
</td>
|
397
|
+
</tr>
|
398
|
+
<tr>
|
399
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
400
|
+
<td> <code class="literal">TRUE</code> if the surface will output Encapsulated PostScript.
|
401
|
+
|
402
|
+
</td>
|
403
|
+
</tr>
|
404
|
+
</tbody>
|
405
|
+
</table></div>
|
406
|
+
<p class="since">Since 1.6
|
407
|
+
</p>
|
408
|
+
</div>
|
409
|
+
<hr>
|
410
|
+
<div class="refsect2" lang="en">
|
411
|
+
<a name="id2668183"></a><h3>
|
412
|
+
<a name="cairo-ps-surface-set-size"></a>cairo_ps_surface_set_size ()</h3>
|
413
|
+
<a class="indexterm" name="id2668197"></a><pre class="programlisting">void cairo_ps_surface_set_size (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
|
414
|
+
double width_in_points,
|
415
|
+
double height_in_points);</pre>
|
416
|
+
<p>
|
417
|
+
Changes the size of a PostScript surface for the current (and
|
418
|
+
subsequent) pages.
|
419
|
+
</p>
|
420
|
+
<p>
|
421
|
+
This function should only be called before any drawing operations
|
422
|
+
have been performed on the current page. The simplest way to do
|
423
|
+
this is to call this function immediately after creating the
|
424
|
+
surface or immediately after completing a page with either
|
425
|
+
<a class="link" href="cairo-cairo-t.html#cairo-show-page"><code class="function">cairo_show_page()</code></a> or <a class="link" href="cairo-cairo-t.html#cairo-copy-page"><code class="function">cairo_copy_page()</code></a>.</p>
|
426
|
+
<p>
|
427
|
+
|
428
|
+
</p>
|
429
|
+
<div class="variablelist"><table border="0">
|
430
|
+
<col align="left" valign="top">
|
431
|
+
<tbody>
|
432
|
+
<tr>
|
433
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
434
|
+
<td> a PostScript <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a>
|
435
|
+
</td>
|
436
|
+
</tr>
|
437
|
+
<tr>
|
438
|
+
<td><p><span class="term"><em class="parameter"><code>width_in_points</code></em> :</span></p></td>
|
439
|
+
<td> new surface width, in points (1 point == 1/72.0 inch)
|
440
|
+
</td>
|
441
|
+
</tr>
|
442
|
+
<tr>
|
443
|
+
<td><p><span class="term"><em class="parameter"><code>height_in_points</code></em> :</span></p></td>
|
444
|
+
<td> new surface height, in points (1 point == 1/72.0 inch)
|
445
|
+
</td>
|
446
|
+
</tr>
|
447
|
+
</tbody>
|
448
|
+
</table></div>
|
449
|
+
<p class="since">Since 1.2
|
450
|
+
</p>
|
451
|
+
</div>
|
452
|
+
<hr>
|
453
|
+
<div class="refsect2" lang="en">
|
454
|
+
<a name="id2668334"></a><h3>
|
455
|
+
<a name="cairo-ps-surface-dsc-begin-setup"></a>cairo_ps_surface_dsc_begin_setup ()</h3>
|
456
|
+
<a class="indexterm" name="id2668349"></a><pre class="programlisting">void cairo_ps_surface_dsc_begin_setup (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
|
457
|
+
<p>
|
458
|
+
This function indicates that subsequent calls to
|
459
|
+
<a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-comment"><code class="function">cairo_ps_surface_dsc_comment()</code></a> should direct comments to the Setup
|
460
|
+
section of the PostScript output.
|
461
|
+
</p>
|
462
|
+
<p>
|
463
|
+
This function should be called at most once per surface, and must
|
464
|
+
be called before any call to <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-begin-page-setup"><code class="function">cairo_ps_surface_dsc_begin_page_setup()</code></a>
|
465
|
+
and before any drawing is performed to the surface.
|
466
|
+
</p>
|
467
|
+
<p>
|
468
|
+
See <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-comment"><code class="function">cairo_ps_surface_dsc_comment()</code></a> for more details.</p>
|
469
|
+
<p>
|
470
|
+
|
471
|
+
</p>
|
472
|
+
<div class="variablelist"><table border="0">
|
473
|
+
<col align="left" valign="top">
|
474
|
+
<tbody><tr>
|
475
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
476
|
+
<td> a PostScript <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a>
|
477
|
+
</td>
|
478
|
+
</tr></tbody>
|
479
|
+
</table></div>
|
480
|
+
<p class="since">Since 1.2
|
481
|
+
</p>
|
482
|
+
</div>
|
483
|
+
<hr>
|
484
|
+
<div class="refsect2" lang="en">
|
485
|
+
<a name="id2668456"></a><h3>
|
486
|
+
<a name="cairo-ps-surface-dsc-begin-page-setup"></a>cairo_ps_surface_dsc_begin_page_setup ()</h3>
|
487
|
+
<a class="indexterm" name="id2668472"></a><pre class="programlisting">void cairo_ps_surface_dsc_begin_page_setup
|
488
|
+
(<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
|
489
|
+
<p>
|
490
|
+
This function indicates that subsequent calls to
|
491
|
+
<a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-comment"><code class="function">cairo_ps_surface_dsc_comment()</code></a> should direct comments to the
|
492
|
+
PageSetup section of the PostScript output.
|
493
|
+
</p>
|
494
|
+
<p>
|
495
|
+
This function call is only needed for the first page of a
|
496
|
+
surface. It should be called after any call to
|
497
|
+
<a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-begin-setup"><code class="function">cairo_ps_surface_dsc_begin_setup()</code></a> and before any drawing is
|
498
|
+
performed to the surface.
|
499
|
+
</p>
|
500
|
+
<p>
|
501
|
+
See <a class="link" href="cairo-PostScript-Surfaces.html#cairo-ps-surface-dsc-comment"><code class="function">cairo_ps_surface_dsc_comment()</code></a> for more details.</p>
|
502
|
+
<p>
|
503
|
+
|
504
|
+
</p>
|
505
|
+
<div class="variablelist"><table border="0">
|
506
|
+
<col align="left" valign="top">
|
507
|
+
<tbody><tr>
|
508
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
509
|
+
<td> a PostScript <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a>
|
510
|
+
</td>
|
511
|
+
</tr></tbody>
|
512
|
+
</table></div>
|
513
|
+
<p class="since">Since 1.2
|
514
|
+
</p>
|
515
|
+
</div>
|
516
|
+
<hr>
|
517
|
+
<div class="refsect2" lang="en">
|
518
|
+
<a name="id2668580"></a><h3>
|
519
|
+
<a name="cairo-ps-surface-dsc-comment"></a>cairo_ps_surface_dsc_comment ()</h3>
|
520
|
+
<a class="indexterm" name="id2668596"></a><pre class="programlisting">void cairo_ps_surface_dsc_comment (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
|
521
|
+
const char *comment);</pre>
|
522
|
+
<p>
|
523
|
+
Emit a comment into the PostScript output for the given surface.
|
524
|
+
</p>
|
525
|
+
<p>
|
526
|
+
The comment is expected to conform to the PostScript Language
|
527
|
+
Document Structuring Conventions (DSC). Please see that manual for
|
528
|
+
details on the available comments and their meanings. In
|
529
|
+
particular, the %<code class="literal">IncludeFeature</code> comment allows a
|
530
|
+
device-independent means of controlling printer device features. So
|
531
|
+
the PostScript Printer Description Files Specification will also be
|
532
|
+
a useful reference.
|
533
|
+
</p>
|
534
|
+
<p>
|
535
|
+
The comment string must begin with a percent character (%) and the
|
536
|
+
total length of the string (including any initial percent
|
537
|
+
characters) must not exceed 255 characters. Violating either of
|
538
|
+
these conditions will place <em class="parameter"><code>surface</code></em> into an error state. But
|
539
|
+
beyond these two conditions, this function will not enforce
|
540
|
+
conformance of the comment with any particular specification.
|
541
|
+
</p>
|
542
|
+
<p>
|
543
|
+
The comment string should not have a trailing newline.
|
544
|
+
</p>
|
545
|
+
<p>
|
546
|
+
The DSC specifies different sections in which particular comments
|
547
|
+
can appear. This function provides for comments to be emitted
|
548
|
+
within three sections: the header, the Setup section, and the
|
549
|
+
PageSetup section. Comments appearing in the first two sections
|
550
|
+
apply to the entire document while comments in the BeginPageSetup
|
551
|
+
section apply only to a single page.
|
552
|
+
</p>
|
553
|
+
<p>
|
554
|
+
For comments to appear in the header section, this function should
|
555
|
+
be called after the surface is created, but before a call to
|
556
|
+
<code class="function">cairo_ps_surface_begin_setup()</code>.
|
557
|
+
</p>
|
558
|
+
<p>
|
559
|
+
For comments to appear in the Setup section, this function should
|
560
|
+
be called after a call to <code class="function">cairo_ps_surface_begin_setup()</code> but before
|
561
|
+
a call to <code class="function">cairo_ps_surface_begin_page_setup()</code>.
|
562
|
+
</p>
|
563
|
+
<p>
|
564
|
+
For comments to appear in the PageSetup section, this function
|
565
|
+
should be called after a call to <code class="function">cairo_ps_surface_begin_page_setup()</code>.
|
566
|
+
</p>
|
567
|
+
<p>
|
568
|
+
Note that it is only necessary to call <code class="function">cairo_ps_surface_begin_page_setup()</code>
|
569
|
+
for the first page of any surface. After a call to
|
570
|
+
<a class="link" href="cairo-cairo-t.html#cairo-show-page"><code class="function">cairo_show_page()</code></a> or <a class="link" href="cairo-cairo-t.html#cairo-copy-page"><code class="function">cairo_copy_page()</code></a> comments are unambiguously
|
571
|
+
directed to the PageSetup section of the current page. But it
|
572
|
+
doesn't hurt to call this function at the beginning of every page
|
573
|
+
as that consistency may make the calling code simpler.
|
574
|
+
</p>
|
575
|
+
<p>
|
576
|
+
As a final note, cairo automatically generates several comments on
|
577
|
+
its own. As such, applications must not manually generate any of
|
578
|
+
the following comments:
|
579
|
+
</p>
|
580
|
+
<p>
|
581
|
+
Header section: %!PS-Adobe-3.0, %<code class="literal">Creator</code>, %<code class="literal">CreationDate</code>, %<code class="literal">Pages</code>,
|
582
|
+
%<code class="literal">BoundingBox</code>, %<code class="literal">DocumentData</code>, %<code class="literal">LanguageLevel</code>, %<code class="literal">EndComments</code>.
|
583
|
+
</p>
|
584
|
+
<p>
|
585
|
+
Setup section: %<code class="literal">BeginSetup</code>, %<code class="literal">EndSetup</code>
|
586
|
+
</p>
|
587
|
+
<p>
|
588
|
+
PageSetup section: %<code class="literal">BeginPageSetup</code>, %<code class="literal">PageBoundingBox</code>,
|
589
|
+
%<code class="literal">EndPageSetup</code>.
|
590
|
+
</p>
|
591
|
+
<p>
|
592
|
+
Other sections: %<code class="literal">BeginProlog</code>, %<code class="literal">EndProlog</code>, %<code class="literal">Page</code>, %<code class="literal">Trailer</code>, %<code class="literal">EOF</code>
|
593
|
+
</p>
|
594
|
+
<p>
|
595
|
+
Here is an example sequence showing how this function might be used:
|
596
|
+
</p>
|
597
|
+
<p>
|
598
|
+
</p>
|
599
|
+
<div class="informalexample"><pre class="programlisting">
|
600
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface = cairo_ps_surface_create (filename, width, height);
|
601
|
+
...
|
602
|
+
cairo_ps_surface_dsc_comment (surface, "%%Title: My excellent document");
|
603
|
+
cairo_ps_surface_dsc_comment (surface, "%%Copyright: Copyright (C) 2006 Cairo Lover")
|
604
|
+
...
|
605
|
+
cairo_ps_surface_dsc_begin_setup (surface);
|
606
|
+
cairo_ps_surface_dsc_comment (surface, "%%IncludeFeature: *MediaColor White");
|
607
|
+
...
|
608
|
+
cairo_ps_surface_dsc_begin_page_setup (surface);
|
609
|
+
cairo_ps_surface_dsc_comment (surface, "%%IncludeFeature: *PageSize A3");
|
610
|
+
cairo_ps_surface_dsc_comment (surface, "%%IncludeFeature: *InputSlot LargeCapacity");
|
611
|
+
cairo_ps_surface_dsc_comment (surface, "%%IncludeFeature: *MediaType Glossy");
|
612
|
+
cairo_ps_surface_dsc_comment (surface, "%%IncludeFeature: *MediaColor Blue");
|
613
|
+
... draw to first page here ..
|
614
|
+
cairo_show_page (cr);
|
615
|
+
...
|
616
|
+
cairo_ps_surface_dsc_comment (surface, "%%IncludeFeature: *PageSize A5");
|
617
|
+
...
|
618
|
+
</pre></div>
|
619
|
+
<p>
|
620
|
+
|
621
|
+
</p>
|
622
|
+
<div class="variablelist"><table border="0">
|
623
|
+
<col align="left" valign="top">
|
624
|
+
<tbody>
|
625
|
+
<tr>
|
626
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
627
|
+
<td> a PostScript <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a>
|
628
|
+
</td>
|
629
|
+
</tr>
|
630
|
+
<tr>
|
631
|
+
<td><p><span class="term"><em class="parameter"><code>comment</code></em> :</span></p></td>
|
632
|
+
<td> a comment string to be emitted into the PostScript output
|
633
|
+
</td>
|
634
|
+
</tr>
|
635
|
+
</tbody>
|
636
|
+
</table></div>
|
637
|
+
<p class="since">Since 1.2
|
638
|
+
</p>
|
639
|
+
</div>
|
640
|
+
</div>
|
641
|
+
<div class="refsect1" lang="en">
|
642
|
+
<a name="id2669022"></a><h2>See Also</h2>
|
643
|
+
<p>
|
644
|
+
</p>
|
645
|
+
<div class="itemizedlist"><ul type="disc"><li><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a></li></ul></div>
|
646
|
+
<p>
|
647
|
+
</p>
|
648
|
+
</div>
|
649
|
+
<div class="refsect1" lang="en">
|
650
|
+
<a name="id2669042"></a><div class="refsect2" lang="en"><a name="id2669043"></a></div>
|
651
|
+
<hr>
|
652
|
+
<div class="refsect2" lang="en"><a name="id2669044"></a></div>
|
653
|
+
</div>
|
654
|
+
</div>
|
655
|
+
</body>
|
656
|
+
</html>
|