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,381 @@
|
|
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>Win32 Fonts</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="Fonts.html" title="Fonts">
|
9
|
+
<link rel="prev" href="cairo-FreeType-Fonts.html" title="FreeType Fonts">
|
10
|
+
<link rel="next" href="cairo-Quartz-Fonts.html" title="Quartz (CGFont) Fonts">
|
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-FreeType-Fonts.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
27
|
+
<td><a accesskey="u" href="Fonts.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-Quartz-Fonts.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="#id2626010" class="shortcut">Top</a>
|
33
|
+
 | 
|
34
|
+
<a href="#id2649329" class="shortcut">Description</a></nobr></td></tr>
|
35
|
+
</table>
|
36
|
+
<div class="refentry" lang="en">
|
37
|
+
<a name="cairo-Win32-Fonts"></a><div class="titlepage"></div>
|
38
|
+
<div class="refnamediv"><table width="100%"><tr>
|
39
|
+
<td valign="top">
|
40
|
+
<h2>
|
41
|
+
<a name="id2626010"></a><span class="refentrytitle">Win32 Fonts</span>
|
42
|
+
</h2>
|
43
|
+
<p>Win32 Fonts — Font support for Microsoft Windows</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-Win32-Fonts.html#CAIRO-HAS-WIN32-FONT:CAPS">CAIRO_HAS_WIN32_FONT</a>
|
54
|
+
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-font-face-create-for-logfontw">cairo_win32_font_face_create_for_logfontw</a>
|
55
|
+
(LOGFONTW *logfont);
|
56
|
+
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-font-face-create-for-hfont">cairo_win32_font_face_create_for_hfont</a>
|
57
|
+
(HFONT font);
|
58
|
+
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-font-face-create-for-logfontw-hfont">cairo_win32_font_face_create_for_logfontw_hfont</a>
|
59
|
+
(LOGFONTW *logfont,
|
60
|
+
HFONT font);
|
61
|
+
<a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font">cairo_win32_scaled_font_select_font</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
62
|
+
HDC hdc);
|
63
|
+
void <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-done-font">cairo_win32_scaled_font_done_font</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
|
64
|
+
double <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-get-metrics-factor">cairo_win32_scaled_font_get_metrics_factor</a>
|
65
|
+
(<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
|
66
|
+
void <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-get-logical-to-device">cairo_win32_scaled_font_get_logical_to_device</a>
|
67
|
+
(<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
68
|
+
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *logical_to_device);
|
69
|
+
void <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-get-device-to-logical">cairo_win32_scaled_font_get_device_to_logical</a>
|
70
|
+
(<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
71
|
+
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *device_to_logical);
|
72
|
+
</pre>
|
73
|
+
</div>
|
74
|
+
<div class="refsect1" lang="en">
|
75
|
+
<a name="id2649329"></a><h2>Description</h2>
|
76
|
+
<p>
|
77
|
+
The Microsoft Windows font backend is primarily used to render text on
|
78
|
+
Microsoft Windows systems.
|
79
|
+
</p>
|
80
|
+
</div>
|
81
|
+
<div class="refsect1" lang="en">
|
82
|
+
<a name="id2649346"></a><h2>Details</h2>
|
83
|
+
<div class="refsect2" lang="en">
|
84
|
+
<a name="id2649357"></a><h3>
|
85
|
+
<a name="CAIRO-HAS-WIN32-FONT:CAPS"></a>CAIRO_HAS_WIN32_FONT</h3>
|
86
|
+
<a class="indexterm" name="id2649368"></a><pre class="programlisting">#define CAIRO_HAS_WIN32_FONT 1
|
87
|
+
</pre>
|
88
|
+
<p>
|
89
|
+
Defined if the Microsoft Windows font backend is available.
|
90
|
+
This macro can be used to conditionally compile backend-specific code.
|
91
|
+
</p>
|
92
|
+
</div>
|
93
|
+
<hr>
|
94
|
+
<div class="refsect2" lang="en">
|
95
|
+
<a name="id2649386"></a><h3>
|
96
|
+
<a name="cairo-win32-font-face-create-for-logfontw"></a>cairo_win32_font_face_create_for_logfontw ()</h3>
|
97
|
+
<a class="indexterm" name="id2649398"></a><pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* cairo_win32_font_face_create_for_logfontw
|
98
|
+
(LOGFONTW *logfont);</pre>
|
99
|
+
<p>
|
100
|
+
Creates a new font for the Win32 font backend based on a
|
101
|
+
<span class="type">LOGFONT</span>. This font can then be used with
|
102
|
+
<a class="link" href="cairo-Text.html#cairo-set-font-face"><code class="function">cairo_set_font_face()</code></a> or <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-create"><code class="function">cairo_scaled_font_create()</code></a>.
|
103
|
+
The <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
104
|
+
returned from <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-create"><code class="function">cairo_scaled_font_create()</code></a> is also for the Win32 backend
|
105
|
+
and can be used with functions such as <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font"><code class="function">cairo_win32_scaled_font_select_font()</code></a>.</p>
|
106
|
+
<p>
|
107
|
+
|
108
|
+
</p>
|
109
|
+
<div class="variablelist"><table border="0">
|
110
|
+
<col align="left" valign="top">
|
111
|
+
<tbody>
|
112
|
+
<tr>
|
113
|
+
<td><p><span class="term"><em class="parameter"><code>logfont</code></em> :</span></p></td>
|
114
|
+
<td> A <span class="type">LOGFONTW</span> structure specifying the font to use.
|
115
|
+
The lfHeight, lfWidth, lfOrientation and lfEscapement
|
116
|
+
fields of this structure are ignored.
|
117
|
+
</td>
|
118
|
+
</tr>
|
119
|
+
<tr>
|
120
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
121
|
+
<td> a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t"><span class="type">cairo_font_face_t</span></a>. Free with
|
122
|
+
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.
|
123
|
+
</td>
|
124
|
+
</tr>
|
125
|
+
</tbody>
|
126
|
+
</table></div>
|
127
|
+
</div>
|
128
|
+
<hr>
|
129
|
+
<div class="refsect2" lang="en">
|
130
|
+
<a name="id2649536"></a><h3>
|
131
|
+
<a name="cairo-win32-font-face-create-for-hfont"></a>cairo_win32_font_face_create_for_hfont ()</h3>
|
132
|
+
<a class="indexterm" name="id2649549"></a><pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* cairo_win32_font_face_create_for_hfont
|
133
|
+
(HFONT font);</pre>
|
134
|
+
<p>
|
135
|
+
Creates a new font for the Win32 font backend based on a
|
136
|
+
<span class="type">HFONT</span>. This font can then be used with
|
137
|
+
<a class="link" href="cairo-Text.html#cairo-set-font-face"><code class="function">cairo_set_font_face()</code></a> or <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-create"><code class="function">cairo_scaled_font_create()</code></a>.
|
138
|
+
The <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
139
|
+
returned from <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-create"><code class="function">cairo_scaled_font_create()</code></a> is also for the Win32 backend
|
140
|
+
and can be used with functions such as <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font"><code class="function">cairo_win32_scaled_font_select_font()</code></a>.</p>
|
141
|
+
<p>
|
142
|
+
|
143
|
+
</p>
|
144
|
+
<div class="variablelist"><table border="0">
|
145
|
+
<col align="left" valign="top">
|
146
|
+
<tbody>
|
147
|
+
<tr>
|
148
|
+
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
|
149
|
+
<td> An <span class="type">HFONT</span> structure specifying the font to use.
|
150
|
+
</td>
|
151
|
+
</tr>
|
152
|
+
<tr>
|
153
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
154
|
+
<td> a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t"><span class="type">cairo_font_face_t</span></a>. Free with
|
155
|
+
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.
|
156
|
+
</td>
|
157
|
+
</tr>
|
158
|
+
</tbody>
|
159
|
+
</table></div>
|
160
|
+
</div>
|
161
|
+
<hr>
|
162
|
+
<div class="refsect2" lang="en">
|
163
|
+
<a name="id2649687"></a><h3>
|
164
|
+
<a name="cairo-win32-font-face-create-for-logfontw-hfont"></a>cairo_win32_font_face_create_for_logfontw_hfont ()</h3>
|
165
|
+
<a class="indexterm" name="id2649701"></a><pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* cairo_win32_font_face_create_for_logfontw_hfont
|
166
|
+
(LOGFONTW *logfont,
|
167
|
+
HFONT font);</pre>
|
168
|
+
<p>
|
169
|
+
Creates a new font for the Win32 font backend based on a
|
170
|
+
<span class="type">LOGFONT</span>. This font can then be used with
|
171
|
+
<a class="link" href="cairo-Text.html#cairo-set-font-face"><code class="function">cairo_set_font_face()</code></a> or <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-create"><code class="function">cairo_scaled_font_create()</code></a>.
|
172
|
+
The <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
173
|
+
returned from <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-create"><code class="function">cairo_scaled_font_create()</code></a> is also for the Win32 backend
|
174
|
+
and can be used with functions such as <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font"><code class="function">cairo_win32_scaled_font_select_font()</code></a>.</p>
|
175
|
+
<p>
|
176
|
+
|
177
|
+
</p>
|
178
|
+
<div class="variablelist"><table border="0">
|
179
|
+
<col align="left" valign="top">
|
180
|
+
<tbody>
|
181
|
+
<tr>
|
182
|
+
<td><p><span class="term"><em class="parameter"><code>logfont</code></em> :</span></p></td>
|
183
|
+
<td> A <span class="type">LOGFONTW</span> structure specifying the font to use.
|
184
|
+
If hfont is null then the lfHeight, lfWidth, lfOrientation and lfEscapement
|
185
|
+
fields of this structure are ignored. Otherwise lfWidth, lfOrientation and
|
186
|
+
lfEscapement must be zero.
|
187
|
+
</td>
|
188
|
+
</tr>
|
189
|
+
<tr>
|
190
|
+
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
|
191
|
+
<td> An <span class="type">HFONT</span> that can be used when the font matrix is a scale by
|
192
|
+
-lfHeight and the CTM is identity.
|
193
|
+
</td>
|
194
|
+
</tr>
|
195
|
+
<tr>
|
196
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
197
|
+
<td> a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t"><span class="type">cairo_font_face_t</span></a>. Free with
|
198
|
+
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.
|
199
|
+
</td>
|
200
|
+
</tr>
|
201
|
+
</tbody>
|
202
|
+
</table></div>
|
203
|
+
</div>
|
204
|
+
<hr>
|
205
|
+
<div class="refsect2" lang="en">
|
206
|
+
<a name="id2650194"></a><h3>
|
207
|
+
<a name="cairo-win32-scaled-font-select-font"></a>cairo_win32_scaled_font_select_font ()</h3>
|
208
|
+
<a class="indexterm" name="id2650206"></a><pre class="programlisting"><a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> cairo_win32_scaled_font_select_font (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
209
|
+
HDC hdc);</pre>
|
210
|
+
<p>
|
211
|
+
Selects the font into the given device context and changes the
|
212
|
+
map mode and world transformation of the device context to match
|
213
|
+
that of the font. This function is intended for use when using
|
214
|
+
layout APIs such as Uniscribe to do text layout with the
|
215
|
+
cairo font. After finishing using the device context, you must call
|
216
|
+
<a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-done-font"><code class="function">cairo_win32_scaled_font_done_font()</code></a> to release any resources allocated
|
217
|
+
by this function.
|
218
|
+
</p>
|
219
|
+
<p>
|
220
|
+
See <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-get-metrics-factor"><code class="function">cairo_win32_scaled_font_get_metrics_factor()</code></a> for converting logical
|
221
|
+
coordinates from the device context to font space.
|
222
|
+
</p>
|
223
|
+
<p>
|
224
|
+
Normally, calls to <code class="function">SaveDC()</code> and <code class="function">RestoreDC()</code> would be made around
|
225
|
+
the use of this function to preserve the original graphics state.</p>
|
226
|
+
<p>
|
227
|
+
|
228
|
+
</p>
|
229
|
+
<div class="variablelist"><table border="0">
|
230
|
+
<col align="left" valign="top">
|
231
|
+
<tbody>
|
232
|
+
<tr>
|
233
|
+
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
234
|
+
<td> A <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> from the Win32 font backend. Such an
|
235
|
+
object can be created with <code class="function">cairo_win32_scaled_font_create_for_logfontw()</code>.
|
236
|
+
</td>
|
237
|
+
</tr>
|
238
|
+
<tr>
|
239
|
+
<td><p><span class="term"><em class="parameter"><code>hdc</code></em> :</span></p></td>
|
240
|
+
<td> a device context
|
241
|
+
</td>
|
242
|
+
</tr>
|
243
|
+
<tr>
|
244
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
245
|
+
<td> <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> if the operation succeeded.
|
246
|
+
otherwise an error such as <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a> and
|
247
|
+
the device context is unchanged.
|
248
|
+
</td>
|
249
|
+
</tr>
|
250
|
+
</tbody>
|
251
|
+
</table></div>
|
252
|
+
</div>
|
253
|
+
<hr>
|
254
|
+
<div class="refsect2" lang="en">
|
255
|
+
<a name="id2650379"></a><h3>
|
256
|
+
<a name="cairo-win32-scaled-font-done-font"></a>cairo_win32_scaled_font_done_font ()</h3>
|
257
|
+
<a class="indexterm" name="id2650391"></a><pre class="programlisting">void cairo_win32_scaled_font_done_font (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
|
258
|
+
<p>
|
259
|
+
Releases any resources allocated by <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font"><code class="function">cairo_win32_scaled_font_select_font()</code></a></p>
|
260
|
+
<p>
|
261
|
+
|
262
|
+
</p>
|
263
|
+
<div class="variablelist"><table border="0">
|
264
|
+
<col align="left" valign="top">
|
265
|
+
<tbody><tr>
|
266
|
+
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
267
|
+
<td> A scaled font from the Win32 font backend.
|
268
|
+
</td>
|
269
|
+
</tr></tbody>
|
270
|
+
</table></div>
|
271
|
+
</div>
|
272
|
+
<hr>
|
273
|
+
<div class="refsect2" lang="en">
|
274
|
+
<a name="id2650451"></a><h3>
|
275
|
+
<a name="cairo-win32-scaled-font-get-metrics-factor"></a>cairo_win32_scaled_font_get_metrics_factor ()</h3>
|
276
|
+
<a class="indexterm" name="id2650466"></a><pre class="programlisting">double cairo_win32_scaled_font_get_metrics_factor
|
277
|
+
(<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
|
278
|
+
<p>
|
279
|
+
Gets a scale factor between logical coordinates in the coordinate
|
280
|
+
space used by <a class="link" href="cairo-Win32-Fonts.html#cairo-win32-scaled-font-select-font"><code class="function">cairo_win32_scaled_font_select_font()</code></a> (that is, the
|
281
|
+
coordinate system used by the Windows functions to return metrics) and
|
282
|
+
font space coordinates.</p>
|
283
|
+
<p>
|
284
|
+
|
285
|
+
</p>
|
286
|
+
<div class="variablelist"><table border="0">
|
287
|
+
<col align="left" valign="top">
|
288
|
+
<tbody>
|
289
|
+
<tr>
|
290
|
+
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
291
|
+
<td> a scaled font from the Win32 font backend
|
292
|
+
</td>
|
293
|
+
</tr>
|
294
|
+
<tr>
|
295
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
296
|
+
<td> factor to multiply logical units by to get font space
|
297
|
+
coordinates.
|
298
|
+
</td>
|
299
|
+
</tr>
|
300
|
+
</tbody>
|
301
|
+
</table></div>
|
302
|
+
</div>
|
303
|
+
<hr>
|
304
|
+
<div class="refsect2" lang="en">
|
305
|
+
<a name="id2650542"></a><h3>
|
306
|
+
<a name="cairo-win32-scaled-font-get-logical-to-device"></a>cairo_win32_scaled_font_get_logical_to_device ()</h3>
|
307
|
+
<a class="indexterm" name="id2650559"></a><pre class="programlisting">void cairo_win32_scaled_font_get_logical_to_device
|
308
|
+
(<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
309
|
+
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *logical_to_device);</pre>
|
310
|
+
<p>
|
311
|
+
Gets the transformation mapping the logical space used by <em class="parameter"><code>scaled_font</code></em>
|
312
|
+
to device space.</p>
|
313
|
+
<p>
|
314
|
+
|
315
|
+
</p>
|
316
|
+
<div class="variablelist"><table border="0">
|
317
|
+
<col align="left" valign="top">
|
318
|
+
<tbody>
|
319
|
+
<tr>
|
320
|
+
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
321
|
+
<td> a scaled font from the Win32 font backend
|
322
|
+
</td>
|
323
|
+
</tr>
|
324
|
+
<tr>
|
325
|
+
<td><p><span class="term"><em class="parameter"><code>logical_to_device</code></em> :</span></p></td>
|
326
|
+
<td> matrix to return
|
327
|
+
</td>
|
328
|
+
</tr>
|
329
|
+
</tbody>
|
330
|
+
</table></div>
|
331
|
+
<p class="since">Since 1.4
|
332
|
+
</p>
|
333
|
+
</div>
|
334
|
+
<hr>
|
335
|
+
<div class="refsect2" lang="en">
|
336
|
+
<a name="id2650646"></a><h3>
|
337
|
+
<a name="cairo-win32-scaled-font-get-device-to-logical"></a>cairo_win32_scaled_font_get_device_to_logical ()</h3>
|
338
|
+
<a class="indexterm" name="id2650663"></a><pre class="programlisting">void cairo_win32_scaled_font_get_device_to_logical
|
339
|
+
(<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
340
|
+
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *device_to_logical);</pre>
|
341
|
+
<p>
|
342
|
+
Gets the transformation mapping device space to the logical space
|
343
|
+
used by <em class="parameter"><code>scaled_font</code></em>.</p>
|
344
|
+
<p>
|
345
|
+
|
346
|
+
</p>
|
347
|
+
<div class="variablelist"><table border="0">
|
348
|
+
<col align="left" valign="top">
|
349
|
+
<tbody>
|
350
|
+
<tr>
|
351
|
+
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
352
|
+
<td> a scaled font from the Win32 font backend
|
353
|
+
</td>
|
354
|
+
</tr>
|
355
|
+
<tr>
|
356
|
+
<td><p><span class="term"><em class="parameter"><code>device_to_logical</code></em> :</span></p></td>
|
357
|
+
<td> matrix to return
|
358
|
+
</td>
|
359
|
+
</tr>
|
360
|
+
</tbody>
|
361
|
+
</table></div>
|
362
|
+
<p class="since">Since 1.4
|
363
|
+
</p>
|
364
|
+
</div>
|
365
|
+
</div>
|
366
|
+
<div class="refsect1" lang="en">
|
367
|
+
<a name="id2650752"></a><h2>See Also</h2>
|
368
|
+
<p>
|
369
|
+
</p>
|
370
|
+
<div class="itemizedlist"><ul type="disc"><li><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t"><span class="type">cairo_font_face_t</span></a></li></ul></div>
|
371
|
+
<p>
|
372
|
+
</p>
|
373
|
+
</div>
|
374
|
+
<div class="refsect1" lang="en">
|
375
|
+
<a name="id2650775"></a><div class="refsect2" lang="en"><a name="id2650776"></a></div>
|
376
|
+
<hr>
|
377
|
+
<div class="refsect2" lang="en"><a name="id2650777"></a></div>
|
378
|
+
</div>
|
379
|
+
</div>
|
380
|
+
</body>
|
381
|
+
</html>
|
@@ -0,0 +1,331 @@
|
|
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>Win32 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-PostScript-Surfaces.html" title="PostScript Surfaces">
|
10
|
+
<link rel="next" href="cairo-SVG-Surfaces.html" title="SVG 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-PostScript-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="cairo-SVG-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="#id2589480" class="shortcut">Top</a>
|
33
|
+
 | 
|
34
|
+
<a href="#id2666636" class="shortcut">Description</a></nobr></td></tr>
|
35
|
+
</table>
|
36
|
+
<div class="refentry" lang="en">
|
37
|
+
<a name="cairo-Win32-Surfaces"></a><div class="titlepage"></div>
|
38
|
+
<div class="refnamediv"><table width="100%"><tr>
|
39
|
+
<td valign="top">
|
40
|
+
<h2>
|
41
|
+
<a name="id2589480"></a><span class="refentrytitle">Win32 Surfaces</span>
|
42
|
+
</h2>
|
43
|
+
<p>Win32 Surfaces — Microsoft Windows surface support</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-Win32-Surfaces.html#CAIRO-HAS-WIN32-SURFACE:CAPS">CAIRO_HAS_WIN32_SURFACE</a>
|
54
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-create">cairo_win32_surface_create</a> (HDC hdc);
|
55
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-create-with-dib">cairo_win32_surface_create_with_dib</a> (<a class="link" href="cairo-Image-Surfaces.html#cairo-format-t">cairo_format_t</a> format,
|
56
|
+
int width,
|
57
|
+
int height);
|
58
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-create-with-ddb">cairo_win32_surface_create_with_ddb</a> (HDC hdc,
|
59
|
+
<a class="link" href="cairo-Image-Surfaces.html#cairo-format-t">cairo_format_t</a> format,
|
60
|
+
int width,
|
61
|
+
int height);
|
62
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-printing-surface-create">cairo_win32_printing_surface_create</a> (HDC hdc);
|
63
|
+
HDC <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-get-dc">cairo_win32_surface_get_dc</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);
|
64
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-get-image">cairo_win32_surface_get_image</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);
|
65
|
+
</pre>
|
66
|
+
</div>
|
67
|
+
<div class="refsect1" lang="en">
|
68
|
+
<a name="id2666636"></a><h2>Description</h2>
|
69
|
+
<p>
|
70
|
+
The Microsoft Windows surface is used to render cairo graphics to
|
71
|
+
Microsoft Windows windows, bitmaps, and printing device contexts.
|
72
|
+
</p>
|
73
|
+
<p>
|
74
|
+
The surface returned by <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-printing-surface-create"><code class="function">cairo_win32_printing_surface_create()</code></a> is of surface
|
75
|
+
type <a class="link" href="cairo-cairo-surface-t.html#CAIRO-SURFACE-TYPE-WIN32-PRINTING:CAPS"><code class="literal">CAIRO_SURFACE_TYPE_WIN32_PRINTING</code></a> and is a multi-page vector surface
|
76
|
+
type.
|
77
|
+
</p>
|
78
|
+
<p>
|
79
|
+
The surface returned by the other win32 constructors is of surface type
|
80
|
+
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-SURFACE-TYPE-WIN32:CAPS"><code class="literal">CAIRO_SURFACE_TYPE_WIN32</code></a> and is a raster surface type.
|
81
|
+
</p>
|
82
|
+
</div>
|
83
|
+
<div class="refsect1" lang="en">
|
84
|
+
<a name="id2666688"></a><h2>Details</h2>
|
85
|
+
<div class="refsect2" lang="en">
|
86
|
+
<a name="id2666699"></a><h3>
|
87
|
+
<a name="CAIRO-HAS-WIN32-SURFACE:CAPS"></a>CAIRO_HAS_WIN32_SURFACE</h3>
|
88
|
+
<a class="indexterm" name="id2666710"></a><pre class="programlisting">#define CAIRO_HAS_WIN32_SURFACE 1
|
89
|
+
</pre>
|
90
|
+
<p>
|
91
|
+
Defined if the Microsoft Windows surface backend is available.
|
92
|
+
This macro can be used to conditionally compile backend-specific code.
|
93
|
+
</p>
|
94
|
+
</div>
|
95
|
+
<hr>
|
96
|
+
<div class="refsect2" lang="en">
|
97
|
+
<a name="id2666727"></a><h3>
|
98
|
+
<a name="cairo-win32-surface-create"></a>cairo_win32_surface_create ()</h3>
|
99
|
+
<a class="indexterm" name="id2666738"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_win32_surface_create (HDC hdc);</pre>
|
100
|
+
<p>
|
101
|
+
Creates a cairo surface that targets the given DC. The DC will be
|
102
|
+
queried for its initial clip extents, and this will be used as the
|
103
|
+
size of the cairo surface. The resulting surface will always be of
|
104
|
+
format <a class="link" href="cairo-Image-Surfaces.html#CAIRO-FORMAT-RGB24:CAPS"><code class="literal">CAIRO_FORMAT_RGB24</code></a>; should you need another surface format,
|
105
|
+
you will need to create one through
|
106
|
+
<a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-create-with-dib"><code class="function">cairo_win32_surface_create_with_dib()</code></a>.</p>
|
107
|
+
<p>
|
108
|
+
|
109
|
+
</p>
|
110
|
+
<div class="variablelist"><table border="0">
|
111
|
+
<col align="left" valign="top">
|
112
|
+
<tbody>
|
113
|
+
<tr>
|
114
|
+
<td><p><span class="term"><em class="parameter"><code>hdc</code></em> :</span></p></td>
|
115
|
+
<td> the DC to create a surface for
|
116
|
+
</td>
|
117
|
+
</tr>
|
118
|
+
<tr>
|
119
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
120
|
+
<td> the newly created surface
|
121
|
+
</td>
|
122
|
+
</tr>
|
123
|
+
</tbody>
|
124
|
+
</table></div>
|
125
|
+
</div>
|
126
|
+
<hr>
|
127
|
+
<div class="refsect2" lang="en">
|
128
|
+
<a name="id2666821"></a><h3>
|
129
|
+
<a name="cairo-win32-surface-create-with-dib"></a>cairo_win32_surface_create_with_dib ()</h3>
|
130
|
+
<a class="indexterm" name="id2666836"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_win32_surface_create_with_dib (<a class="link" href="cairo-Image-Surfaces.html#cairo-format-t">cairo_format_t</a> format,
|
131
|
+
int width,
|
132
|
+
int height);</pre>
|
133
|
+
<p>
|
134
|
+
Creates a device-independent-bitmap surface not associated with
|
135
|
+
any particular existing surface or device context. The created
|
136
|
+
bitmap will be uninitialized.</p>
|
137
|
+
<p>
|
138
|
+
|
139
|
+
</p>
|
140
|
+
<div class="variablelist"><table border="0">
|
141
|
+
<col align="left" valign="top">
|
142
|
+
<tbody>
|
143
|
+
<tr>
|
144
|
+
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
|
145
|
+
<td> format of pixels in the surface to create
|
146
|
+
</td>
|
147
|
+
</tr>
|
148
|
+
<tr>
|
149
|
+
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
150
|
+
<td> width of the surface, in pixels
|
151
|
+
</td>
|
152
|
+
</tr>
|
153
|
+
<tr>
|
154
|
+
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
155
|
+
<td> height of the surface, in pixels
|
156
|
+
</td>
|
157
|
+
</tr>
|
158
|
+
<tr>
|
159
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
160
|
+
<td> the newly created surface
|
161
|
+
|
162
|
+
</td>
|
163
|
+
</tr>
|
164
|
+
</tbody>
|
165
|
+
</table></div>
|
166
|
+
<p class="since">Since 1.2
|
167
|
+
</p>
|
168
|
+
</div>
|
169
|
+
<hr>
|
170
|
+
<div class="refsect2" lang="en">
|
171
|
+
<a name="id2657879"></a><h3>
|
172
|
+
<a name="cairo-win32-surface-create-with-ddb"></a>cairo_win32_surface_create_with_ddb ()</h3>
|
173
|
+
<a class="indexterm" name="id2657896"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_win32_surface_create_with_ddb (HDC hdc,
|
174
|
+
<a class="link" href="cairo-Image-Surfaces.html#cairo-format-t">cairo_format_t</a> format,
|
175
|
+
int width,
|
176
|
+
int height);</pre>
|
177
|
+
<p>
|
178
|
+
Creates a device-independent-bitmap surface not associated with
|
179
|
+
any particular existing surface or device context. The created
|
180
|
+
bitmap will be uninitialized.</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>hdc</code></em> :</span></p></td>
|
189
|
+
<td> the DC to create a surface for
|
190
|
+
</td>
|
191
|
+
</tr>
|
192
|
+
<tr>
|
193
|
+
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
|
194
|
+
<td> format of pixels in the surface to create
|
195
|
+
</td>
|
196
|
+
</tr>
|
197
|
+
<tr>
|
198
|
+
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
199
|
+
<td> width of the surface, in pixels
|
200
|
+
</td>
|
201
|
+
</tr>
|
202
|
+
<tr>
|
203
|
+
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
204
|
+
<td> height of the surface, in pixels
|
205
|
+
</td>
|
206
|
+
</tr>
|
207
|
+
<tr>
|
208
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
209
|
+
<td> the newly created surface
|
210
|
+
|
211
|
+
</td>
|
212
|
+
</tr>
|
213
|
+
</tbody>
|
214
|
+
</table></div>
|
215
|
+
<p class="since">Since 1.4
|
216
|
+
</p>
|
217
|
+
</div>
|
218
|
+
<hr>
|
219
|
+
<div class="refsect2" lang="en">
|
220
|
+
<a name="id2658031"></a><h3>
|
221
|
+
<a name="cairo-win32-printing-surface-create"></a>cairo_win32_printing_surface_create ()</h3>
|
222
|
+
<a class="indexterm" name="id2658045"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_win32_printing_surface_create (HDC hdc);</pre>
|
223
|
+
<p>
|
224
|
+
Creates a cairo surface that targets the given DC. The DC will be
|
225
|
+
queried for its initial clip extents, and this will be used as the
|
226
|
+
size of the cairo surface. The DC should be a printing DC;
|
227
|
+
antialiasing will be ignored, and GDI will be used as much as
|
228
|
+
possible to draw to the surface.
|
229
|
+
</p>
|
230
|
+
<p>
|
231
|
+
The returned surface will be wrapped using the paginated surface to
|
232
|
+
provide correct complex rendering behaviour; <code class="function">show_page()</code> and
|
233
|
+
associated methods must be used for correct output.</p>
|
234
|
+
<p>
|
235
|
+
|
236
|
+
</p>
|
237
|
+
<div class="variablelist"><table border="0">
|
238
|
+
<col align="left" valign="top">
|
239
|
+
<tbody>
|
240
|
+
<tr>
|
241
|
+
<td><p><span class="term"><em class="parameter"><code>hdc</code></em> :</span></p></td>
|
242
|
+
<td> the DC to create a surface for
|
243
|
+
</td>
|
244
|
+
</tr>
|
245
|
+
<tr>
|
246
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
247
|
+
<td> the newly created surface
|
248
|
+
</td>
|
249
|
+
</tr>
|
250
|
+
</tbody>
|
251
|
+
</table></div>
|
252
|
+
</div>
|
253
|
+
<hr>
|
254
|
+
<div class="refsect2" lang="en">
|
255
|
+
<a name="id2664421"></a><h3>
|
256
|
+
<a name="cairo-win32-surface-get-dc"></a>cairo_win32_surface_get_dc ()</h3>
|
257
|
+
<a class="indexterm" name="id2664435"></a><pre class="programlisting">HDC cairo_win32_surface_get_dc (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
|
258
|
+
<p>
|
259
|
+
Returns the HDC associated with this surface, or <code class="literal">NULL</code> if none.
|
260
|
+
Also returns <code class="literal">NULL</code> if the surface is not a win32 surface.</p>
|
261
|
+
<p>
|
262
|
+
|
263
|
+
</p>
|
264
|
+
<div class="variablelist"><table border="0">
|
265
|
+
<col align="left" valign="top">
|
266
|
+
<tbody>
|
267
|
+
<tr>
|
268
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
269
|
+
<td> a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a>
|
270
|
+
</td>
|
271
|
+
</tr>
|
272
|
+
<tr>
|
273
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
274
|
+
<td> HDC or <code class="literal">NULL</code> if no HDC available.
|
275
|
+
|
276
|
+
</td>
|
277
|
+
</tr>
|
278
|
+
</tbody>
|
279
|
+
</table></div>
|
280
|
+
<p class="since">Since 1.2
|
281
|
+
</p>
|
282
|
+
</div>
|
283
|
+
<hr>
|
284
|
+
<div class="refsect2" lang="en">
|
285
|
+
<a name="id2664538"></a><h3>
|
286
|
+
<a name="cairo-win32-surface-get-image"></a>cairo_win32_surface_get_image ()</h3>
|
287
|
+
<a class="indexterm" name="id2664554"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_win32_surface_get_image (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface);</pre>
|
288
|
+
<p>
|
289
|
+
Returns a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> image surface that refers to the same bits
|
290
|
+
as the DIB of the Win32 surface. If the passed-in win32 surface
|
291
|
+
is not a DIB surface, <code class="literal">NULL</code> is returned.</p>
|
292
|
+
<p>
|
293
|
+
|
294
|
+
</p>
|
295
|
+
<div class="variablelist"><table border="0">
|
296
|
+
<col align="left" valign="top">
|
297
|
+
<tbody>
|
298
|
+
<tr>
|
299
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
300
|
+
<td> a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a>
|
301
|
+
</td>
|
302
|
+
</tr>
|
303
|
+
<tr>
|
304
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
305
|
+
<td> a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> (owned by the win32 <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a>),
|
306
|
+
or <code class="literal">NULL</code> if the win32 surface is not a DIB.
|
307
|
+
|
308
|
+
</td>
|
309
|
+
</tr>
|
310
|
+
</tbody>
|
311
|
+
</table></div>
|
312
|
+
<p class="since">Since 1.4
|
313
|
+
</p>
|
314
|
+
</div>
|
315
|
+
</div>
|
316
|
+
<div class="refsect1" lang="en">
|
317
|
+
<a name="id2664674"></a><h2>See Also</h2>
|
318
|
+
<p>
|
319
|
+
</p>
|
320
|
+
<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>
|
321
|
+
<p>
|
322
|
+
</p>
|
323
|
+
</div>
|
324
|
+
<div class="refsect1" lang="en">
|
325
|
+
<a name="id2664697"></a><div class="refsect2" lang="en"><a name="id2664698"></a></div>
|
326
|
+
<hr>
|
327
|
+
<div class="refsect2" lang="en"><a name="id2664699"></a></div>
|
328
|
+
</div>
|
329
|
+
</div>
|
330
|
+
</body>
|
331
|
+
</html>
|