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,525 @@
|
|
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>XLib 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-Quartz-Surfaces.html" title="Quartz Surfaces">
|
10
|
+
<link rel="next" href="Support.html" title="Utilities">
|
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-Quartz-Surfaces.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="Support.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="#id2584836" class="shortcut">Top</a>
|
33
|
+
 | 
|
34
|
+
<a href="#id2665971" class="shortcut">Description</a></nobr></td></tr>
|
35
|
+
</table>
|
36
|
+
<div class="refentry" lang="en">
|
37
|
+
<a name="cairo-XLib-Surfaces"></a><div class="titlepage"></div>
|
38
|
+
<div class="refnamediv"><table width="100%"><tr>
|
39
|
+
<td valign="top">
|
40
|
+
<h2>
|
41
|
+
<a name="id2584836"></a><span class="refentrytitle">XLib Surfaces</span>
|
42
|
+
</h2>
|
43
|
+
<p>XLib Surfaces — X Window System rendering using XLib</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-XLib-Surfaces.html#CAIRO-HAS-XLIB-SURFACE:CAPS">CAIRO_HAS_XLIB_SURFACE</a>
|
54
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-create">cairo_xlib_surface_create</a> (Display *dpy,
|
55
|
+
Drawable drawable,
|
56
|
+
Visual *visual,
|
57
|
+
int width,
|
58
|
+
int height);
|
59
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-create-for-bitmap">cairo_xlib_surface_create_for_bitmap</a>
|
60
|
+
(Display *dpy,
|
61
|
+
Pixmap bitmap,
|
62
|
+
Screen *screen,
|
63
|
+
int width,
|
64
|
+
int height);
|
65
|
+
void <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-set-size">cairo_xlib_surface_set_size</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
|
66
|
+
int width,
|
67
|
+
int height);
|
68
|
+
Display* <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-display">cairo_xlib_surface_get_display</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);
|
69
|
+
Screen* <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-screen">cairo_xlib_surface_get_screen</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-XLib-Surfaces.html#cairo-xlib-surface-set-drawable">cairo_xlib_surface_set_drawable</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
|
71
|
+
Drawable drawable,
|
72
|
+
int width,
|
73
|
+
int height);
|
74
|
+
Drawable <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-drawable">cairo_xlib_surface_get_drawable</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);
|
75
|
+
Visual* <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-visual">cairo_xlib_surface_get_visual</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);
|
76
|
+
int <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-width">cairo_xlib_surface_get_width</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);
|
77
|
+
int <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-height">cairo_xlib_surface_get_height</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);
|
78
|
+
int <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-depth">cairo_xlib_surface_get_depth</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);
|
79
|
+
</pre>
|
80
|
+
</div>
|
81
|
+
<div class="refsect1" lang="en">
|
82
|
+
<a name="id2665971"></a><h2>Description</h2>
|
83
|
+
<p>
|
84
|
+
The XLib surface is used to render cairo graphics to X Window System
|
85
|
+
windows and pixmaps using the XLib library.
|
86
|
+
</p>
|
87
|
+
<p>
|
88
|
+
Note that the XLib surface automatically takes advantage of X render extension
|
89
|
+
if it is available.
|
90
|
+
</p>
|
91
|
+
</div>
|
92
|
+
<div class="refsect1" lang="en">
|
93
|
+
<a name="id2665994"></a><h2>Details</h2>
|
94
|
+
<div class="refsect2" lang="en">
|
95
|
+
<a name="id2666004"></a><h3>
|
96
|
+
<a name="CAIRO-HAS-XLIB-SURFACE:CAPS"></a>CAIRO_HAS_XLIB_SURFACE</h3>
|
97
|
+
<a class="indexterm" name="id2666016"></a><pre class="programlisting">#define CAIRO_HAS_XLIB_SURFACE 1
|
98
|
+
</pre>
|
99
|
+
<p>
|
100
|
+
|
101
|
+
</p>
|
102
|
+
</div>
|
103
|
+
<hr>
|
104
|
+
<div class="refsect2" lang="en">
|
105
|
+
<a name="id2666031"></a><h3>
|
106
|
+
<a name="cairo-xlib-surface-create"></a>cairo_xlib_surface_create ()</h3>
|
107
|
+
<a class="indexterm" name="id2666043"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_xlib_surface_create (Display *dpy,
|
108
|
+
Drawable drawable,
|
109
|
+
Visual *visual,
|
110
|
+
int width,
|
111
|
+
int height);</pre>
|
112
|
+
<p>
|
113
|
+
Creates an Xlib surface that draws to the given drawable.
|
114
|
+
The way that colors are represented in the drawable is specified
|
115
|
+
by the provided visual.
|
116
|
+
</p>
|
117
|
+
<p>
|
118
|
+
Note: If <em class="parameter"><code>drawable</code></em> is a Window, then the function
|
119
|
+
cairo_xlib_surface_set_size must be called whenever the size of the
|
120
|
+
window changes.
|
121
|
+
</p>
|
122
|
+
<p>
|
123
|
+
When <em class="parameter"><code>drawable</code></em> is a Window containing child windows then drawing to
|
124
|
+
the created surface will be clipped by those child windows. When
|
125
|
+
the created surface is used as a source, the contents of the
|
126
|
+
children will be included.</p>
|
127
|
+
<p>
|
128
|
+
|
129
|
+
</p>
|
130
|
+
<div class="variablelist"><table border="0">
|
131
|
+
<col align="left" valign="top">
|
132
|
+
<tbody>
|
133
|
+
<tr>
|
134
|
+
<td><p><span class="term"><em class="parameter"><code>dpy</code></em> :</span></p></td>
|
135
|
+
<td> an X Display
|
136
|
+
</td>
|
137
|
+
</tr>
|
138
|
+
<tr>
|
139
|
+
<td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td>
|
140
|
+
<td> an X Drawable, (a Pixmap or a Window)
|
141
|
+
</td>
|
142
|
+
</tr>
|
143
|
+
<tr>
|
144
|
+
<td><p><span class="term"><em class="parameter"><code>visual</code></em> :</span></p></td>
|
145
|
+
<td> the visual to use for drawing to <em class="parameter"><code>drawable</code></em>. The depth
|
146
|
+
of the visual must match the depth of the drawable.
|
147
|
+
Currently, only TrueColor visuals are fully supported.
|
148
|
+
</td>
|
149
|
+
</tr>
|
150
|
+
<tr>
|
151
|
+
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
152
|
+
<td> the current width of <em class="parameter"><code>drawable</code></em>.
|
153
|
+
</td>
|
154
|
+
</tr>
|
155
|
+
<tr>
|
156
|
+
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
157
|
+
<td> the current height of <em class="parameter"><code>drawable</code></em>.
|
158
|
+
</td>
|
159
|
+
</tr>
|
160
|
+
<tr>
|
161
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
162
|
+
<td> the newly created surface
|
163
|
+
</td>
|
164
|
+
</tr>
|
165
|
+
</tbody>
|
166
|
+
</table></div>
|
167
|
+
</div>
|
168
|
+
<hr>
|
169
|
+
<div class="refsect2" lang="en">
|
170
|
+
<a name="id2666234"></a><h3>
|
171
|
+
<a name="cairo-xlib-surface-create-for-bitmap"></a>cairo_xlib_surface_create_for_bitmap ()</h3>
|
172
|
+
<a class="indexterm" name="id2666246"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_xlib_surface_create_for_bitmap
|
173
|
+
(Display *dpy,
|
174
|
+
Pixmap bitmap,
|
175
|
+
Screen *screen,
|
176
|
+
int width,
|
177
|
+
int height);</pre>
|
178
|
+
<p>
|
179
|
+
Creates an Xlib surface that draws to the given bitmap.
|
180
|
+
This will be drawn to as a <a class="link" href="cairo-Image-Surfaces.html#CAIRO-FORMAT-A1:CAPS"><code class="literal">CAIRO_FORMAT_A1</code></a> object.</p>
|
181
|
+
<p>
|
182
|
+
|
183
|
+
</p>
|
184
|
+
<div class="variablelist"><table border="0">
|
185
|
+
<col align="left" valign="top">
|
186
|
+
<tbody>
|
187
|
+
<tr>
|
188
|
+
<td><p><span class="term"><em class="parameter"><code>dpy</code></em> :</span></p></td>
|
189
|
+
<td> an X Display
|
190
|
+
</td>
|
191
|
+
</tr>
|
192
|
+
<tr>
|
193
|
+
<td><p><span class="term"><em class="parameter"><code>bitmap</code></em> :</span></p></td>
|
194
|
+
<td> an X Drawable, (a depth-1 Pixmap)
|
195
|
+
</td>
|
196
|
+
</tr>
|
197
|
+
<tr>
|
198
|
+
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
|
199
|
+
<td> the X Screen associated with <em class="parameter"><code>bitmap</code></em>
|
200
|
+
</td>
|
201
|
+
</tr>
|
202
|
+
<tr>
|
203
|
+
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
204
|
+
<td> the current width of <em class="parameter"><code>bitmap</code></em>.
|
205
|
+
</td>
|
206
|
+
</tr>
|
207
|
+
<tr>
|
208
|
+
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
209
|
+
<td> the current height of <em class="parameter"><code>bitmap</code></em>.
|
210
|
+
</td>
|
211
|
+
</tr>
|
212
|
+
<tr>
|
213
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
214
|
+
<td> the newly created surface
|
215
|
+
</td>
|
216
|
+
</tr>
|
217
|
+
</tbody>
|
218
|
+
</table></div>
|
219
|
+
</div>
|
220
|
+
<hr>
|
221
|
+
<div class="refsect2" lang="en">
|
222
|
+
<a name="id2666422"></a><h3>
|
223
|
+
<a name="cairo-xlib-surface-set-size"></a>cairo_xlib_surface_set_size ()</h3>
|
224
|
+
<a class="indexterm" name="id2666433"></a><pre class="programlisting">void cairo_xlib_surface_set_size (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
|
225
|
+
int width,
|
226
|
+
int height);</pre>
|
227
|
+
<p>
|
228
|
+
Informs cairo of the new size of the X Drawable underlying the
|
229
|
+
surface. For a surface created for a Window (rather than a Pixmap),
|
230
|
+
this function must be called each time the size of the window
|
231
|
+
changes. (For a subwindow, you are normally resizing the window
|
232
|
+
yourself, but for a toplevel window, it is necessary to listen for
|
233
|
+
ConfigureNotify events.)
|
234
|
+
</p>
|
235
|
+
<p>
|
236
|
+
A Pixmap can never change size, so it is never necessary to call
|
237
|
+
this function on a surface created for a Pixmap.</p>
|
238
|
+
<p>
|
239
|
+
|
240
|
+
</p>
|
241
|
+
<div class="variablelist"><table border="0">
|
242
|
+
<col align="left" valign="top">
|
243
|
+
<tbody>
|
244
|
+
<tr>
|
245
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
246
|
+
<td> a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> for the XLib backend
|
247
|
+
</td>
|
248
|
+
</tr>
|
249
|
+
<tr>
|
250
|
+
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
251
|
+
<td> the new width of the surface
|
252
|
+
</td>
|
253
|
+
</tr>
|
254
|
+
<tr>
|
255
|
+
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
256
|
+
<td> the new height of the surface
|
257
|
+
</td>
|
258
|
+
</tr>
|
259
|
+
</tbody>
|
260
|
+
</table></div>
|
261
|
+
</div>
|
262
|
+
<hr>
|
263
|
+
<div class="refsect2" lang="en">
|
264
|
+
<a name="id2672250"></a><h3>
|
265
|
+
<a name="cairo-xlib-surface-get-display"></a>cairo_xlib_surface_get_display ()</h3>
|
266
|
+
<a class="indexterm" name="id2672264"></a><pre class="programlisting">Display* cairo_xlib_surface_get_display (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
|
267
|
+
<p>
|
268
|
+
Get the X Display for the underlying X Drawable.</p>
|
269
|
+
<p>
|
270
|
+
|
271
|
+
</p>
|
272
|
+
<div class="variablelist"><table border="0">
|
273
|
+
<col align="left" valign="top">
|
274
|
+
<tbody>
|
275
|
+
<tr>
|
276
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
277
|
+
<td> a <span class="type">cairo_xlib_surface_t</span>
|
278
|
+
</td>
|
279
|
+
</tr>
|
280
|
+
<tr>
|
281
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
282
|
+
<td> the display.
|
283
|
+
|
284
|
+
</td>
|
285
|
+
</tr>
|
286
|
+
</tbody>
|
287
|
+
</table></div>
|
288
|
+
<p class="since">Since 1.2
|
289
|
+
</p>
|
290
|
+
</div>
|
291
|
+
<hr>
|
292
|
+
<div class="refsect2" lang="en">
|
293
|
+
<a name="id2672332"></a><h3>
|
294
|
+
<a name="cairo-xlib-surface-get-screen"></a>cairo_xlib_surface_get_screen ()</h3>
|
295
|
+
<a class="indexterm" name="id2672346"></a><pre class="programlisting">Screen* cairo_xlib_surface_get_screen (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
|
296
|
+
<p>
|
297
|
+
Get the X Screen for the underlying X Drawable.</p>
|
298
|
+
<p>
|
299
|
+
|
300
|
+
</p>
|
301
|
+
<div class="variablelist"><table border="0">
|
302
|
+
<col align="left" valign="top">
|
303
|
+
<tbody>
|
304
|
+
<tr>
|
305
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
306
|
+
<td> a <span class="type">cairo_xlib_surface_t</span>
|
307
|
+
</td>
|
308
|
+
</tr>
|
309
|
+
<tr>
|
310
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
311
|
+
<td> the screen.
|
312
|
+
|
313
|
+
</td>
|
314
|
+
</tr>
|
315
|
+
</tbody>
|
316
|
+
</table></div>
|
317
|
+
<p class="since">Since 1.2
|
318
|
+
</p>
|
319
|
+
</div>
|
320
|
+
<hr>
|
321
|
+
<div class="refsect2" lang="en">
|
322
|
+
<a name="id2672418"></a><h3>
|
323
|
+
<a name="cairo-xlib-surface-set-drawable"></a>cairo_xlib_surface_set_drawable ()</h3>
|
324
|
+
<a class="indexterm" name="id2672431"></a><pre class="programlisting">void cairo_xlib_surface_set_drawable (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
|
325
|
+
Drawable drawable,
|
326
|
+
int width,
|
327
|
+
int height);</pre>
|
328
|
+
<p>
|
329
|
+
Informs cairo of a new X Drawable underlying the
|
330
|
+
surface. The drawable must match the display, screen
|
331
|
+
and format of the existing drawable or the application
|
332
|
+
will get X protocol errors and will probably terminate.
|
333
|
+
No checks are done by this function to ensure this
|
334
|
+
compatibility.</p>
|
335
|
+
<p>
|
336
|
+
|
337
|
+
</p>
|
338
|
+
<div class="variablelist"><table border="0">
|
339
|
+
<col align="left" valign="top">
|
340
|
+
<tbody>
|
341
|
+
<tr>
|
342
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
343
|
+
<td> a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> for the XLib backend
|
344
|
+
</td>
|
345
|
+
</tr>
|
346
|
+
<tr>
|
347
|
+
<td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td>
|
348
|
+
<td> the new drawable for the surface
|
349
|
+
</td>
|
350
|
+
</tr>
|
351
|
+
<tr>
|
352
|
+
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
353
|
+
<td> the width of the new drawable
|
354
|
+
</td>
|
355
|
+
</tr>
|
356
|
+
<tr>
|
357
|
+
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
358
|
+
<td> the height of the new drawable
|
359
|
+
</td>
|
360
|
+
</tr>
|
361
|
+
</tbody>
|
362
|
+
</table></div>
|
363
|
+
</div>
|
364
|
+
<hr>
|
365
|
+
<div class="refsect2" lang="en">
|
366
|
+
<a name="id2672558"></a><h3>
|
367
|
+
<a name="cairo-xlib-surface-get-drawable"></a>cairo_xlib_surface_get_drawable ()</h3>
|
368
|
+
<a class="indexterm" name="id2672574"></a><pre class="programlisting">Drawable cairo_xlib_surface_get_drawable (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
|
369
|
+
<p>
|
370
|
+
Get the underlying X Drawable used for the surface.</p>
|
371
|
+
<p>
|
372
|
+
|
373
|
+
</p>
|
374
|
+
<div class="variablelist"><table border="0">
|
375
|
+
<col align="left" valign="top">
|
376
|
+
<tbody>
|
377
|
+
<tr>
|
378
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
379
|
+
<td> a <span class="type">cairo_xlib_surface_t</span>
|
380
|
+
</td>
|
381
|
+
</tr>
|
382
|
+
<tr>
|
383
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
384
|
+
<td> the drawable.
|
385
|
+
|
386
|
+
</td>
|
387
|
+
</tr>
|
388
|
+
</tbody>
|
389
|
+
</table></div>
|
390
|
+
<p class="since">Since 1.2
|
391
|
+
</p>
|
392
|
+
</div>
|
393
|
+
<hr>
|
394
|
+
<div class="refsect2" lang="en">
|
395
|
+
<a name="id2672649"></a><h3>
|
396
|
+
<a name="cairo-xlib-surface-get-visual"></a>cairo_xlib_surface_get_visual ()</h3>
|
397
|
+
<a class="indexterm" name="id2672664"></a><pre class="programlisting">Visual* cairo_xlib_surface_get_visual (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
|
398
|
+
<p>
|
399
|
+
Get the X Visual used for underlying X Drawable.</p>
|
400
|
+
<p>
|
401
|
+
|
402
|
+
</p>
|
403
|
+
<div class="variablelist"><table border="0">
|
404
|
+
<col align="left" valign="top">
|
405
|
+
<tbody>
|
406
|
+
<tr>
|
407
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
408
|
+
<td> a <span class="type">cairo_xlib_surface_t</span>
|
409
|
+
</td>
|
410
|
+
</tr>
|
411
|
+
<tr>
|
412
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
413
|
+
<td> the visual.
|
414
|
+
|
415
|
+
</td>
|
416
|
+
</tr>
|
417
|
+
</tbody>
|
418
|
+
</table></div>
|
419
|
+
<p class="since">Since 1.2
|
420
|
+
</p>
|
421
|
+
</div>
|
422
|
+
<hr>
|
423
|
+
<div class="refsect2" lang="en">
|
424
|
+
<a name="id2672740"></a><h3>
|
425
|
+
<a name="cairo-xlib-surface-get-width"></a>cairo_xlib_surface_get_width ()</h3>
|
426
|
+
<a class="indexterm" name="id2672755"></a><pre class="programlisting">int cairo_xlib_surface_get_width (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
|
427
|
+
<p>
|
428
|
+
Get the width of the X Drawable underlying the surface in pixels.</p>
|
429
|
+
<p>
|
430
|
+
|
431
|
+
</p>
|
432
|
+
<div class="variablelist"><table border="0">
|
433
|
+
<col align="left" valign="top">
|
434
|
+
<tbody>
|
435
|
+
<tr>
|
436
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
437
|
+
<td> a <span class="type">cairo_xlib_surface_t</span>
|
438
|
+
</td>
|
439
|
+
</tr>
|
440
|
+
<tr>
|
441
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
442
|
+
<td> the width of the surface in pixels.
|
443
|
+
|
444
|
+
</td>
|
445
|
+
</tr>
|
446
|
+
</tbody>
|
447
|
+
</table></div>
|
448
|
+
<p class="since">Since 1.2
|
449
|
+
</p>
|
450
|
+
</div>
|
451
|
+
<hr>
|
452
|
+
<div class="refsect2" lang="en">
|
453
|
+
<a name="id2672831"></a><h3>
|
454
|
+
<a name="cairo-xlib-surface-get-height"></a>cairo_xlib_surface_get_height ()</h3>
|
455
|
+
<a class="indexterm" name="id2672846"></a><pre class="programlisting">int cairo_xlib_surface_get_height (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
|
456
|
+
<p>
|
457
|
+
Get the height of the X Drawable underlying the surface in pixels.</p>
|
458
|
+
<p>
|
459
|
+
|
460
|
+
</p>
|
461
|
+
<div class="variablelist"><table border="0">
|
462
|
+
<col align="left" valign="top">
|
463
|
+
<tbody>
|
464
|
+
<tr>
|
465
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
466
|
+
<td> a <span class="type">cairo_xlib_surface_t</span>
|
467
|
+
</td>
|
468
|
+
</tr>
|
469
|
+
<tr>
|
470
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
471
|
+
<td> the height of the surface in pixels.
|
472
|
+
|
473
|
+
</td>
|
474
|
+
</tr>
|
475
|
+
</tbody>
|
476
|
+
</table></div>
|
477
|
+
<p class="since">Since 1.2
|
478
|
+
</p>
|
479
|
+
</div>
|
480
|
+
<hr>
|
481
|
+
<div class="refsect2" lang="en">
|
482
|
+
<a name="id2672922"></a><h3>
|
483
|
+
<a name="cairo-xlib-surface-get-depth"></a>cairo_xlib_surface_get_depth ()</h3>
|
484
|
+
<a class="indexterm" name="id2672938"></a><pre class="programlisting">int cairo_xlib_surface_get_depth (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
|
485
|
+
<p>
|
486
|
+
Get the number of bits used to represent each pixel value.</p>
|
487
|
+
<p>
|
488
|
+
|
489
|
+
</p>
|
490
|
+
<div class="variablelist"><table border="0">
|
491
|
+
<col align="left" valign="top">
|
492
|
+
<tbody>
|
493
|
+
<tr>
|
494
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
495
|
+
<td> a <span class="type">cairo_xlib_surface_t</span>
|
496
|
+
</td>
|
497
|
+
</tr>
|
498
|
+
<tr>
|
499
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
500
|
+
<td> the depth of the surface in bits.
|
501
|
+
|
502
|
+
</td>
|
503
|
+
</tr>
|
504
|
+
</tbody>
|
505
|
+
</table></div>
|
506
|
+
<p class="since">Since 1.2
|
507
|
+
</p>
|
508
|
+
</div>
|
509
|
+
</div>
|
510
|
+
<div class="refsect1" lang="en">
|
511
|
+
<a name="id2673015"></a><h2>See Also</h2>
|
512
|
+
<p>
|
513
|
+
</p>
|
514
|
+
<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>
|
515
|
+
<p>
|
516
|
+
</p>
|
517
|
+
</div>
|
518
|
+
<div class="refsect1" lang="en">
|
519
|
+
<a name="id2673038"></a><div class="refsect2" lang="en"><a name="id2673040"></a></div>
|
520
|
+
<hr>
|
521
|
+
<div class="refsect2" lang="en"><a name="id2673041"></a></div>
|
522
|
+
</div>
|
523
|
+
</div>
|
524
|
+
</body>
|
525
|
+
</html>
|