cairo 1.8.5-x86-mingw32 → 1.10.0-x86-mingw32
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/NEWS +2 -2
- data/Rakefile +44 -7
- data/ext/cairo/cairo.def +28 -1
- data/ext/cairo/extconf.rb +14 -16
- data/ext/cairo/rb_cairo.c +4 -1
- data/ext/cairo/rb_cairo.h +65 -1
- data/ext/cairo/rb_cairo_constants.c +150 -3
- data/ext/cairo/rb_cairo_context.c +17 -0
- data/ext/cairo/rb_cairo_device.c +406 -0
- data/ext/cairo/rb_cairo_exception.c +83 -32
- data/ext/cairo/rb_cairo_io.c +166 -0
- data/ext/cairo/rb_cairo_io.h +44 -0
- data/ext/cairo/rb_cairo_matrix.c +1 -1
- data/ext/cairo/rb_cairo_private.h +3 -0
- data/ext/cairo/rb_cairo_region.c +385 -0
- data/ext/cairo/rb_cairo_surface.c +674 -199
- data/lib/1.8/cairo.so +0 -0
- data/lib/1.9/cairo.so +0 -0
- data/samples/blur.rb +2 -3
- data/samples/{pac2.rb → pac-nomralize.rb} +5 -6
- data/samples/pac-tee.rb +170 -0
- data/samples/pac.rb +2 -3
- data/samples/png.rb +2 -3
- data/samples/scalable.rb +2 -3
- data/samples/text-on-path.rb +2 -3
- data/samples/text2.rb +2 -3
- data/test/cairo-test-utils.rb +15 -0
- data/test/run-test.rb +5 -4
- data/test/test_context.rb +4 -4
- data/test/test_font_face.rb +34 -21
- data/test/test_recording_surface.rb +18 -0
- data/test/test_region.rb +102 -0
- data/test/test_script_device.rb +46 -0
- data/test/test_script_surface.rb +13 -0
- data/test/test_surface.rb +14 -4
- data/test/test_tee_surface.rb +32 -0
- data/test/test_xml_device.rb +22 -0
- data/test/test_xml_surface.rb +32 -0
- data/tmp/i386-mingw32/cairo/1.9.2/rbconfig.rb +1 -1
- data/vendor/local/bin/libcairo-2.dll +0 -0
- data/vendor/local/include/cairo/cairo-deprecated.h +1 -16
- data/vendor/local/include/cairo/cairo-features.h +7 -0
- data/vendor/local/include/cairo/cairo-ft.h +16 -9
- data/vendor/local/include/cairo/cairo-gobject.h +186 -0
- data/vendor/local/include/cairo/cairo-pdf.h +27 -1
- data/vendor/local/include/cairo/cairo-ps.h +1 -1
- data/vendor/local/include/cairo/cairo-script-interpreter.h +117 -0
- data/vendor/local/include/cairo/cairo-svg.h +1 -1
- data/vendor/local/include/cairo/cairo-version.h +2 -2
- data/vendor/local/include/cairo/cairo-win32.h +1 -1
- data/vendor/local/include/cairo/cairo.h +382 -26
- data/vendor/local/lib/cairo.def +44 -0
- data/vendor/local/lib/cairo.lib +0 -0
- data/vendor/local/lib/libcairo.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/cairo-fc.pc +12 -0
- data/vendor/local/lib/pkgconfig/cairo-ft.pc +4 -4
- data/vendor/local/lib/pkgconfig/cairo-gobject.pc +12 -0
- data/vendor/local/lib/pkgconfig/cairo-pdf.pc +3 -3
- data/vendor/local/lib/pkgconfig/cairo-png.pc +3 -3
- data/vendor/local/lib/pkgconfig/cairo-ps.pc +3 -3
- data/vendor/local/lib/pkgconfig/cairo-svg.pc +3 -3
- data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +3 -3
- data/vendor/local/lib/pkgconfig/cairo-win32.pc +3 -3
- data/vendor/local/lib/pkgconfig/cairo.pc +4 -4
- data/vendor/local/manifest/{cairo-dev_1.8.10-4_win32.mft → cairo-dev_1.10.0-1_win32.mft} +34 -27
- data/vendor/local/manifest/cairo_1.10.0-1_win32.mft +5 -0
- data/vendor/local/share/doc/{cairo_1.8.10-4_win32 → cairo_1.10.0-1_win32}/COPYING +9 -8
- data/vendor/local/share/doc/{cairo_1.8.10-4_win32 → cairo_1.10.0-1_win32}/COPYING-LGPL-2.1 +2 -2
- data/vendor/local/share/doc/{cairo_1.8.10-4_win32 → cairo_1.10.0-1_win32}/COPYING-MPL-1.1 +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/bindings-errors.html +4 -14
- data/vendor/local/share/gtk-doc/html/cairo/bindings-fonts.html +5 -15
- data/vendor/local/share/gtk-doc/html/cairo/bindings-memory.html +7 -17
- data/vendor/local/share/gtk-doc/html/cairo/bindings-overloading.html +6 -16
- data/vendor/local/share/gtk-doc/html/cairo/bindings-path.html +6 -16
- data/vendor/local/share/gtk-doc/html/cairo/bindings-patterns.html +23 -28
- data/vendor/local/share/gtk-doc/html/cairo/bindings-return-values.html +3 -13
- data/vendor/local/share/gtk-doc/html/cairo/bindings-streams.html +3 -13
- data/vendor/local/share/gtk-doc/html/cairo/bindings-surfaces.html +7 -17
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +373 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +330 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +478 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +344 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PNG-Support.html +320 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +1291 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +622 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-(CGFont)-Fonts.html +134 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +210 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +834 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +318 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Transformations.html +410 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +169 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +715 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +410 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +335 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +291 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +470 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +595 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +384 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +644 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +574 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +1457 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +1076 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +1396 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +2743 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +13 -20
- data/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +13 -23
- data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +11 -21
- data/vendor/local/share/gtk-doc/html/cairo/cairo-surfaces.html +19 -26
- data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +279 -326
- data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp +411 -355
- data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +579 -480
- data/vendor/local/share/gtk-doc/html/cairo/index-1.10.html +147 -0
- data/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +88 -65
- data/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +72 -47
- data/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +43 -32
- data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +42 -41
- data/vendor/local/share/gtk-doc/html/cairo/index-all.html +542 -345
- data/vendor/local/share/gtk-doc/html/cairo/index.html +36 -39
- data/vendor/local/share/gtk-doc/html/cairo/index.sgml +674 -444
- data/vendor/local/share/gtk-doc/html/cairo/language-bindings.html +6 -16
- data/vendor/local/share/gtk-doc/html/cairo/style.css +152 -54
- data/vendor/local/src/tml/packaging/cairo_1.10.0-1_win32.log +1262 -0
- data/vendor/local/src/tml/packaging/{cairo_1.8.10-4_win32.sh → cairo_1.10.0-1_win32.sh} +3 -3
- metadata +137 -389
- data/doc/doc.css +0 -91
- data/doc/en/cairo-antialias.html +0 -38
- data/doc/en/cairo-clip-not-representable-error.html +0 -47
- data/doc/en/cairo-color-base.html +0 -69
- data/doc/en/cairo-color-cmyk.html +0 -157
- data/doc/en/cairo-color-hsv.html +0 -137
- data/doc/en/cairo-color-rgb.html +0 -142
- data/doc/en/cairo-color-x11.html +0 -173
- data/doc/en/cairo-color.html +0 -238
- data/doc/en/cairo-content.html +0 -37
- data/doc/en/cairo-context-blur.html +0 -39
- data/doc/en/cairo-context-circle.html +0 -39
- data/doc/en/cairo-context-color.html +0 -39
- data/doc/en/cairo-context-path.html +0 -44
- data/doc/en/cairo-context-rectangle.html +0 -39
- data/doc/en/cairo-context-triangle.html +0 -39
- data/doc/en/cairo-context.html +0 -643
- data/doc/en/cairo-error.html +0 -44
- data/doc/en/cairo-extend.html +0 -38
- data/doc/en/cairo-file-not-found.html +0 -47
- data/doc/en/cairo-fill-rule.html +0 -36
- data/doc/en/cairo-filter.html +0 -40
- data/doc/en/cairo-font-extents.html +0 -129
- data/doc/en/cairo-font-face.html +0 -38
- data/doc/en/cairo-font-options.html +0 -139
- data/doc/en/cairo-font-slant.html +0 -37
- data/doc/en/cairo-font-type-mismatch.html +0 -47
- data/doc/en/cairo-font-weight.html +0 -36
- data/doc/en/cairo-format.html +0 -46
- data/doc/en/cairo-glyph.html +0 -99
- data/doc/en/cairo-gradient-pattern.html +0 -74
- data/doc/en/cairo-hint-metrics.html +0 -37
- data/doc/en/cairo-hint-style.html +0 -39
- data/doc/en/cairo-image-surface.html +0 -82
- data/doc/en/cairo-invalid-clusters.html +0 -47
- data/doc/en/cairo-invalid-content-error.html +0 -47
- data/doc/en/cairo-invalid-dash-error.html +0 -47
- data/doc/en/cairo-invalid-dsc-comment-error.html +0 -47
- data/doc/en/cairo-invalid-format-error.html +0 -47
- data/doc/en/cairo-invalid-index-error.html +0 -47
- data/doc/en/cairo-invalid-matrix-error.html +0 -47
- data/doc/en/cairo-invalid-path-data-error.html +0 -47
- data/doc/en/cairo-invalid-pop-group-error.html +0 -47
- data/doc/en/cairo-invalid-restore-error.html +0 -47
- data/doc/en/cairo-invalid-slant.html +0 -47
- data/doc/en/cairo-invalid-status-error.html +0 -47
- data/doc/en/cairo-invalid-stride-error.html +0 -47
- data/doc/en/cairo-invalid-string-error.html +0 -47
- data/doc/en/cairo-invalid-visual-error.html +0 -47
- data/doc/en/cairo-invalid-weight.html +0 -47
- data/doc/en/cairo-line-cap.html +0 -37
- data/doc/en/cairo-line-join.html +0 -37
- data/doc/en/cairo-linear-pattern.html +0 -60
- data/doc/en/cairo-matrix.html +0 -259
- data/doc/en/cairo-negative-count.html +0 -47
- data/doc/en/cairo-no-current-point-error.html +0 -47
- data/doc/en/cairo-null-pointer-error.html +0 -47
- data/doc/en/cairo-operator.html +0 -48
- data/doc/en/cairo-paper-parse-error.html +0 -47
- data/doc/en/cairo-paper-unknown-paper-name.html +0 -66
- data/doc/en/cairo-paper-unknown-unit.html +0 -66
- data/doc/en/cairo-paper-unrecognized-paper-description.html +0 -66
- data/doc/en/cairo-paper.html +0 -184
- data/doc/en/cairo-path-close-path.html +0 -49
- data/doc/en/cairo-path-curve-to.html +0 -49
- data/doc/en/cairo-path-data-type.html +0 -38
- data/doc/en/cairo-path-data.html +0 -98
- data/doc/en/cairo-path-line-to.html +0 -49
- data/doc/en/cairo-path-move-to.html +0 -49
- data/doc/en/cairo-path.html +0 -155
- data/doc/en/cairo-pattern-type-mismatch-error.html +0 -47
- data/doc/en/cairo-pattern.html +0 -99
- data/doc/en/cairo-pdf-surface.html +0 -57
- data/doc/en/cairo-point.html +0 -74
- data/doc/en/cairo-ps-level.html +0 -49
- data/doc/en/cairo-ps-surface.html +0 -92
- data/doc/en/cairo-quartz-image-surface.html +0 -57
- data/doc/en/cairo-quartz-surface.html +0 -57
- data/doc/en/cairo-radial-pattern.html +0 -60
- data/doc/en/cairo-read-error.html +0 -47
- data/doc/en/cairo-rectangle.html +0 -89
- data/doc/en/cairo-scaled-font.html +0 -94
- data/doc/en/cairo-solid-pattern.html +0 -62
- data/doc/en/cairo-subpixel-order.html +0 -39
- data/doc/en/cairo-surface-finished-error.html +0 -47
- data/doc/en/cairo-surface-pattern.html +0 -57
- data/doc/en/cairo-surface-type-mismatch-error.html +0 -47
- data/doc/en/cairo-surface.html +0 -121
- data/doc/en/cairo-svg-surface.html +0 -77
- data/doc/en/cairo-svg-version.html +0 -49
- data/doc/en/cairo-temp-file-error.html +0 -47
- data/doc/en/cairo-text-cluster-flag.html +0 -35
- data/doc/en/cairo-text-cluster.html +0 -84
- data/doc/en/cairo-text-extents.html +0 -144
- data/doc/en/cairo-toy-font-face.html +0 -67
- data/doc/en/cairo-user-font-error.html +0 -47
- data/doc/en/cairo-user-font-face-text-to-glyphs-data.html +0 -94
- data/doc/en/cairo-user-font-face.html +0 -72
- data/doc/en/cairo-user-font-immutable.html +0 -47
- data/doc/en/cairo-win32-printing-surface.html +0 -57
- data/doc/en/cairo-win32-surface.html +0 -62
- data/doc/en/cairo-write-error.html +0 -47
- data/doc/en/cairo.html +0 -131
- data/doc/en/index.html +0 -1154
- data/doc/index.html +0 -18
- data/doc/ja/cairo-antialias.html +0 -57
- data/doc/ja/cairo-clip-not-representable-error.html +0 -56
- data/doc/ja/cairo-color-base.html +0 -75
- data/doc/ja/cairo-color-cmyk.html +0 -152
- data/doc/ja/cairo-color-hsv.html +0 -135
- data/doc/ja/cairo-color-rgb.html +0 -145
- data/doc/ja/cairo-color-x11.html +0 -183
- data/doc/ja/cairo-color.html +0 -317
- data/doc/ja/cairo-content.html +0 -51
- data/doc/ja/cairo-context-blur.html +0 -53
- data/doc/ja/cairo-context-circle.html +0 -54
- data/doc/ja/cairo-context-color.html +0 -52
- data/doc/ja/cairo-context-path.html +0 -77
- data/doc/ja/cairo-context-rectangle.html +0 -60
- data/doc/ja/cairo-context-triangle.html +0 -47
- data/doc/ja/cairo-context.html +0 -1542
- data/doc/ja/cairo-error.html +0 -56
- data/doc/ja/cairo-extend.html +0 -56
- data/doc/ja/cairo-file-not-found.html +0 -51
- data/doc/ja/cairo-fill-rule.html +0 -58
- data/doc/ja/cairo-filter.html +0 -43
- data/doc/ja/cairo-font-extents.html +0 -164
- data/doc/ja/cairo-font-face.html +0 -55
- data/doc/ja/cairo-font-options.html +0 -189
- data/doc/ja/cairo-font-slant.html +0 -50
- data/doc/ja/cairo-font-type-mismatch.html +0 -52
- data/doc/ja/cairo-font-weight.html +0 -47
- data/doc/ja/cairo-format.html +0 -81
- data/doc/ja/cairo-glyph.html +0 -115
- data/doc/ja/cairo-gradient-pattern.html +0 -119
- data/doc/ja/cairo-hint-metrics.html +0 -57
- data/doc/ja/cairo-hint-style.html +0 -64
- data/doc/ja/cairo-image-surface.html +0 -131
- data/doc/ja/cairo-invalid-clusters.html +0 -55
- data/doc/ja/cairo-invalid-content-error.html +0 -54
- data/doc/ja/cairo-invalid-dash-error.html +0 -54
- data/doc/ja/cairo-invalid-dsc-comment-error.html +0 -54
- data/doc/ja/cairo-invalid-format-error.html +0 -54
- data/doc/ja/cairo-invalid-index-error.html +0 -54
- data/doc/ja/cairo-invalid-matrix-error.html +0 -54
- data/doc/ja/cairo-invalid-path-data-error.html +0 -54
- data/doc/ja/cairo-invalid-pop-group-error.html +0 -54
- data/doc/ja/cairo-invalid-restore-error.html +0 -55
- data/doc/ja/cairo-invalid-slant.html +0 -57
- data/doc/ja/cairo-invalid-status-error.html +0 -55
- data/doc/ja/cairo-invalid-stride-error.html +0 -55
- data/doc/ja/cairo-invalid-string-error.html +0 -54
- data/doc/ja/cairo-invalid-visual-error.html +0 -57
- data/doc/ja/cairo-invalid-weight.html +0 -57
- data/doc/ja/cairo-line-cap.html +0 -50
- data/doc/ja/cairo-line-join.html +0 -53
- data/doc/ja/cairo-linear-pattern.html +0 -87
- data/doc/ja/cairo-matrix.html +0 -354
- data/doc/ja/cairo-negative-count.html +0 -52
- data/doc/ja/cairo-no-current-point-error.html +0 -54
- data/doc/ja/cairo-null-pointer-error.html +0 -54
- data/doc/ja/cairo-operator.html +0 -51
- data/doc/ja/cairo-paper-parse-error.html +0 -55
- data/doc/ja/cairo-paper-unknown-paper-name.html +0 -76
- data/doc/ja/cairo-paper-unknown-unit.html +0 -75
- data/doc/ja/cairo-paper-unrecognized-paper-description.html +0 -76
- data/doc/ja/cairo-paper.html +0 -357
- data/doc/ja/cairo-path-close-path.html +0 -57
- data/doc/ja/cairo-path-curve-to.html +0 -70
- data/doc/ja/cairo-path-data-type.html +0 -53
- data/doc/ja/cairo-path-data.html +0 -127
- data/doc/ja/cairo-path-line-to.html +0 -62
- data/doc/ja/cairo-path-move-to.html +0 -62
- data/doc/ja/cairo-path.html +0 -144
- data/doc/ja/cairo-pattern-type-mismatch-error.html +0 -56
- data/doc/ja/cairo-pattern.html +0 -128
- data/doc/ja/cairo-pdf-surface.html +0 -86
- data/doc/ja/cairo-point.html +0 -90
- data/doc/ja/cairo-ps-level.html +0 -62
- data/doc/ja/cairo-ps-surface.html +0 -214
- data/doc/ja/cairo-quartz-image-surface.html +0 -75
- data/doc/ja/cairo-quartz-surface.html +0 -93
- data/doc/ja/cairo-radial-pattern.html +0 -93
- data/doc/ja/cairo-read-error.html +0 -55
- data/doc/ja/cairo-rectangle.html +0 -109
- data/doc/ja/cairo-scaled-font.html +0 -180
- data/doc/ja/cairo-solid-pattern.html +0 -87
- data/doc/ja/cairo-subpixel-order.html +0 -57
- data/doc/ja/cairo-surface-finished-error.html +0 -54
- data/doc/ja/cairo-surface-pattern.html +0 -68
- data/doc/ja/cairo-surface-type-mismatch-error.html +0 -56
- data/doc/ja/cairo-surface.html +0 -213
- data/doc/ja/cairo-svg-surface.html +0 -114
- data/doc/ja/cairo-svg-version.html +0 -66
- data/doc/ja/cairo-temp-file-error.html +0 -50
- data/doc/ja/cairo-text-cluster-flag.html +0 -46
- data/doc/ja/cairo-text-cluster.html +0 -102
- data/doc/ja/cairo-text-extents.html +0 -163
- data/doc/ja/cairo-toy-font-face.html +0 -107
- data/doc/ja/cairo-user-font-error.html +0 -55
- data/doc/ja/cairo-user-font-face-text-to-glyphs-data.html +0 -156
- data/doc/ja/cairo-user-font-face.html +0 -268
- data/doc/ja/cairo-user-font-immutable.html +0 -54
- data/doc/ja/cairo-win32-printing-surface.html +0 -80
- data/doc/ja/cairo-win32-surface.html +0 -100
- data/doc/ja/cairo-write-error.html +0 -55
- data/doc/ja/cairo.html +0 -177
- data/doc/ja/index.html +0 -1156
- data/pkg-config.rb +0 -313
- data/test-unit/Rakefile +0 -30
- data/test-unit/bin/testrb +0 -5
- data/test-unit/lib/test/unit.rb +0 -280
- data/test-unit/lib/test/unit/assertionfailederror.rb +0 -14
- data/test-unit/lib/test/unit/assertions.rb +0 -722
- data/test-unit/lib/test/unit/attribute.rb +0 -125
- data/test-unit/lib/test/unit/autorunner.rb +0 -254
- data/test-unit/lib/test/unit/collector.rb +0 -43
- data/test-unit/lib/test/unit/collector/descendant.rb +0 -23
- data/test-unit/lib/test/unit/collector/dir.rb +0 -108
- data/test-unit/lib/test/unit/collector/load.rb +0 -135
- data/test-unit/lib/test/unit/collector/objectspace.rb +0 -34
- data/test-unit/lib/test/unit/color.rb +0 -61
- data/test-unit/lib/test/unit/diff.rb +0 -524
- data/test-unit/lib/test/unit/error.rb +0 -124
- data/test-unit/lib/test/unit/exceptionhandler.rb +0 -39
- data/test-unit/lib/test/unit/failure.rb +0 -110
- data/test-unit/lib/test/unit/fixture.rb +0 -185
- data/test-unit/lib/test/unit/notification.rb +0 -125
- data/test-unit/lib/test/unit/omission.rb +0 -143
- data/test-unit/lib/test/unit/pending.rb +0 -146
- data/test-unit/lib/test/unit/priority.rb +0 -146
- data/test-unit/lib/test/unit/runner/console.rb +0 -46
- data/test-unit/lib/test/unit/runner/emacs.rb +0 -8
- data/test-unit/lib/test/unit/testcase.rb +0 -281
- data/test-unit/lib/test/unit/testresult.rb +0 -89
- data/test-unit/lib/test/unit/testsuite.rb +0 -110
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +0 -14
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +0 -195
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +0 -49
- data/test-unit/lib/test/unit/ui/testrunner.rb +0 -20
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +0 -77
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +0 -41
- data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -41
- data/test-unit/lib/test/unit/util/observable.rb +0 -90
- data/test-unit/lib/test/unit/util/procwrapper.rb +0 -48
- data/test-unit/lib/test/unit/version.rb +0 -7
- data/test-unit/sample/adder.rb +0 -13
- data/test-unit/sample/subtracter.rb +0 -12
- data/test-unit/sample/tc_adder.rb +0 -18
- data/test-unit/sample/tc_subtracter.rb +0 -18
- data/test-unit/sample/ts_examples.rb +0 -7
- data/test-unit/test/collector/test_descendant.rb +0 -135
- data/test-unit/test/collector/test_dir.rb +0 -406
- data/test-unit/test/collector/test_load.rb +0 -333
- data/test-unit/test/collector/test_objectspace.rb +0 -98
- data/test-unit/test/run-test.rb +0 -13
- data/test-unit/test/test_assertions.rb +0 -693
- data/test-unit/test/test_attribute.rb +0 -86
- data/test-unit/test/test_color.rb +0 -37
- data/test-unit/test/test_diff.rb +0 -477
- data/test-unit/test/test_emacs_runner.rb +0 -60
- data/test-unit/test/test_error.rb +0 -26
- data/test-unit/test/test_failure.rb +0 -33
- data/test-unit/test/test_fixture.rb +0 -252
- data/test-unit/test/test_notification.rb +0 -33
- data/test-unit/test/test_omission.rb +0 -81
- data/test-unit/test/test_pending.rb +0 -70
- data/test-unit/test/test_priority.rb +0 -89
- data/test-unit/test/test_testcase.rb +0 -430
- data/test-unit/test/test_testresult.rb +0 -113
- data/test-unit/test/test_testsuite.rb +0 -129
- data/test-unit/test/testunit_test_util.rb +0 -14
- data/test-unit/test/ui/test_testrunmediator.rb +0 -20
- data/test-unit/test/util/test_backtracefilter.rb +0 -41
- data/test-unit/test/util/test_observable.rb +0 -102
- data/test-unit/test/util/test_procwrapper.rb +0 -36
- data/test/test_pkg_config.rb +0 -123
- data/vendor/local/include/libpng14/png.h +0 -2701
- data/vendor/local/include/libpng14/pngconf.h +0 -1525
- data/vendor/local/include/png.h +0 -2701
- data/vendor/local/include/pngconf.h +0 -1525
- data/vendor/local/include/zconf.h +0 -461
- data/vendor/local/include/zlib.h +0 -1589
- data/vendor/local/lib/libpng.def +0 -192
- data/vendor/local/lib/libpng.lib +0 -0
- data/vendor/local/lib/libpng14.dll.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/libpng.pc +0 -11
- data/vendor/local/lib/pkgconfig/libpng14.pc +0 -11
- data/vendor/local/lib/zdll.lib +0 -0
- data/vendor/local/lib/zlib.def +0 -67
- data/vendor/local/manifest/cairo_1.8.10-4_win32.mft +0 -5
- data/vendor/local/manifest/libpng-dev_1.4.3-1_win32.mft +0 -15
- data/vendor/local/manifest/zlib-dev_1.2.5-2_win32.mft +0 -8
- data/vendor/local/share/gtk-doc/html/cairo/cairo-context.html +0 -2643
- data/vendor/local/share/gtk-doc/html/cairo/cairo-error-status.html +0 -360
- data/vendor/local/share/gtk-doc/html/cairo/cairo-font-face.html +0 -408
- data/vendor/local/share/gtk-doc/html/cairo/cairo-font-options.html +0 -678
- data/vendor/local/share/gtk-doc/html/cairo/cairo-ft-font.html +0 -319
- data/vendor/local/share/gtk-doc/html/cairo/cairo-image-surface.html +0 -473
- data/vendor/local/share/gtk-doc/html/cairo/cairo-matrix.html +0 -596
- data/vendor/local/share/gtk-doc/html/cairo/cairo-paths.html +0 -1274
- data/vendor/local/share/gtk-doc/html/cairo/cairo-pattern.html +0 -1485
- data/vendor/local/share/gtk-doc/html/cairo/cairo-pdf-surface.html +0 -238
- data/vendor/local/share/gtk-doc/html/cairo/cairo-png-functions.html +0 -341
- data/vendor/local/share/gtk-doc/html/cairo/cairo-ps-surface.html +0 -622
- data/vendor/local/share/gtk-doc/html/cairo/cairo-quartz-font.html +0 -151
- data/vendor/local/share/gtk-doc/html/cairo/cairo-quartz-surface.html +0 -219
- data/vendor/local/share/gtk-doc/html/cairo/cairo-scaled-font.html +0 -1023
- data/vendor/local/share/gtk-doc/html/cairo/cairo-surface.html +0 -1026
- data/vendor/local/share/gtk-doc/html/cairo/cairo-svg-surface.html +0 -321
- data/vendor/local/share/gtk-doc/html/cairo/cairo-transformations.html +0 -436
- data/vendor/local/share/gtk-doc/html/cairo/cairo-types.html +0 -133
- data/vendor/local/share/gtk-doc/html/cairo/cairo-user-font.html +0 -735
- data/vendor/local/share/gtk-doc/html/cairo/cairo-version-info.html +0 -345
- data/vendor/local/share/gtk-doc/html/cairo/cairo-win32-font.html +0 -358
- data/vendor/local/share/gtk-doc/html/cairo/cairo-win32-surface.html +0 -312
- data/vendor/local/share/gtk-doc/html/cairo/cairo-xlib-surface.html +0 -492
- data/vendor/local/share/man/man3/libpng.3 +0 -4455
- data/vendor/local/share/man/man3/libpngpf.3 +0 -808
- data/vendor/local/share/man/man5/png.5 +0 -74
- data/vendor/local/src/tml/packaging/cairo_1.8.10-4_win32.log +0 -920
- data/vendor/local/src/tml/packaging/libpng_1.4.3-1_win32.log +0 -272
- data/vendor/local/src/tml/packaging/libpng_1.4.3-1_win32.sh +0 -71
- data/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.log +0 -42
- data/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.sh +0 -189
@@ -0,0 +1,318 @@
|
|
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=UTF-8">
|
5
|
+
<title>SVG Surfaces</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
|
+
<link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
|
+
<link rel="up" href="cairo-surfaces.html" title="Surfaces">
|
9
|
+
<link rel="prev" href="cairo-Win32-Surfaces.html" title="Win32 Surfaces">
|
10
|
+
<link rel="next" href="cairo-Quartz-Surfaces.html" title="Quartz Surfaces">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
+
<tr valign="middle">
|
17
|
+
<td><a accesskey="p" href="cairo-Win32-Surfaces.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
+
<td><a accesskey="u" href="cairo-surfaces.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
+
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
21
|
+
<td><a accesskey="n" href="cairo-Quartz-Surfaces.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
+
</tr>
|
23
|
+
<tr><td colspan="5" class="shortcuts">
|
24
|
+
<a href="#cairo-SVG-Surfaces.synopsis" class="shortcut">Top</a>
|
25
|
+
|
|
26
|
+
<a href="#cairo-SVG-Surfaces.description" class="shortcut">Description</a>
|
27
|
+
</td></tr>
|
28
|
+
</table>
|
29
|
+
<div class="refentry" title="SVG Surfaces">
|
30
|
+
<a name="cairo-SVG-Surfaces"></a><div class="titlepage"></div>
|
31
|
+
<div class="refnamediv"><table width="100%"><tr>
|
32
|
+
<td valign="top">
|
33
|
+
<h2><span class="refentrytitle"><a name="cairo-SVG-Surfaces.top_of_page"></a>SVG Surfaces</span></h2>
|
34
|
+
<p>SVG Surfaces — Rendering SVG documents</p>
|
35
|
+
</td>
|
36
|
+
<td valign="top" align="right"></td>
|
37
|
+
</tr></table></div>
|
38
|
+
<div class="refsynopsisdiv" title="Synopsis">
|
39
|
+
<a name="cairo-SVG-Surfaces.synopsis"></a><h2>Synopsis</h2>
|
40
|
+
<pre class="synopsis">#define <a class="link" href="cairo-SVG-Surfaces.html#CAIRO-HAS-SVG-SURFACE:CAPS" title="CAIRO_HAS_SVG_SURFACE">CAIRO_HAS_SVG_SURFACE</a>
|
41
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> * <a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-surface-create" title="cairo_svg_surface_create ()">cairo_svg_surface_create</a> (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
42
|
+
<em class="parameter"><code><span class="type">double</span> width_in_points</code></em>,
|
43
|
+
<em class="parameter"><code><span class="type">double</span> height_in_points</code></em>);
|
44
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> * <a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-surface-create-for-stream" title="cairo_svg_surface_create_for_stream ()">cairo_svg_surface_create_for_stream</a> (<em class="parameter"><code><a class="link" href="cairo-PNG-Support.html#cairo-write-func-t" title="cairo_write_func_t ()"><span class="type">cairo_write_func_t</span></a> write_func</code></em>,
|
45
|
+
<em class="parameter"><code><span class="type">void</span> *closure</code></em>,
|
46
|
+
<em class="parameter"><code><span class="type">double</span> width_in_points</code></em>,
|
47
|
+
<em class="parameter"><code><span class="type">double</span> height_in_points</code></em>);
|
48
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-surface-restrict-to-version" title="cairo_svg_surface_restrict_to_version ()">cairo_svg_surface_restrict_to_version</a>
|
49
|
+
(<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>,
|
50
|
+
<em class="parameter"><code><a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-t" title="enum cairo_svg_version_t"><span class="type">cairo_svg_version_t</span></a> version</code></em>);
|
51
|
+
enum <a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-t" title="enum cairo_svg_version_t">cairo_svg_version_t</a>;
|
52
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-get-versions" title="cairo_svg_get_versions ()">cairo_svg_get_versions</a> (<em class="parameter"><code><a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-t" title="enum cairo_svg_version_t"><span class="type">cairo_svg_version_t</span></a> const **versions</code></em>,
|
53
|
+
<em class="parameter"><code><span class="type">int</span> *num_versions</code></em>);
|
54
|
+
const <span class="returnvalue">char</span> * <a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-to-string" title="cairo_svg_version_to_string ()">cairo_svg_version_to_string</a> (<em class="parameter"><code><a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-t" title="enum cairo_svg_version_t"><span class="type">cairo_svg_version_t</span></a> version</code></em>);
|
55
|
+
</pre>
|
56
|
+
</div>
|
57
|
+
<div class="refsect1" title="Description">
|
58
|
+
<a name="cairo-SVG-Surfaces.description"></a><h2>Description</h2>
|
59
|
+
<p>
|
60
|
+
The SVG surface is used to render cairo graphics to
|
61
|
+
SVG files and is a multi-page vector surface backend.
|
62
|
+
</p>
|
63
|
+
</div>
|
64
|
+
<div class="refsect1" title="Details">
|
65
|
+
<a name="cairo-SVG-Surfaces.details"></a><h2>Details</h2>
|
66
|
+
<div class="refsect2" title="CAIRO_HAS_SVG_SURFACE">
|
67
|
+
<a name="CAIRO-HAS-SVG-SURFACE:CAPS"></a><h3>CAIRO_HAS_SVG_SURFACE</h3>
|
68
|
+
<pre class="programlisting">#define CAIRO_HAS_SVG_SURFACE 1
|
69
|
+
</pre>
|
70
|
+
<p>
|
71
|
+
Defined if the SVG surface backend is available.
|
72
|
+
This macro can be used to conditionally compile backend-specific code.
|
73
|
+
</p>
|
74
|
+
</div>
|
75
|
+
<hr>
|
76
|
+
<div class="refsect2" title="cairo_svg_surface_create ()">
|
77
|
+
<a name="cairo-svg-surface-create"></a><h3>cairo_svg_surface_create ()</h3>
|
78
|
+
<pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> * cairo_svg_surface_create (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
79
|
+
<em class="parameter"><code><span class="type">double</span> width_in_points</code></em>,
|
80
|
+
<em class="parameter"><code><span class="type">double</span> height_in_points</code></em>);</pre>
|
81
|
+
<p>
|
82
|
+
Creates a SVG surface of the specified size in points to be written
|
83
|
+
to <em class="parameter"><code>filename</code></em>.
|
84
|
+
</p>
|
85
|
+
<p>
|
86
|
+
The SVG surface backend recognizes the following MIME types for the
|
87
|
+
data attached to a surface (see <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-set-mime-data" title="cairo_surface_set_mime_data ()"><code class="function">cairo_surface_set_mime_data()</code></a>) when
|
88
|
+
it is used as a source pattern for drawing on this surface:
|
89
|
+
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JPEG:CAPS" title="CAIRO_MIME_TYPE_JPEG"><code class="literal">CAIRO_MIME_TYPE_JPEG</code></a>, <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-PNG:CAPS" title="CAIRO_MIME_TYPE_PNG"><code class="literal">CAIRO_MIME_TYPE_PNG</code></a>,
|
90
|
+
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-URI:CAPS" title="CAIRO_MIME_TYPE_URI"><code class="literal">CAIRO_MIME_TYPE_URI</code></a>. If any of them is specified, the SVG backend
|
91
|
+
emits a href with the content of MIME data instead of a surface
|
92
|
+
snapshot (PNG, Base64-encoded) in the corresponding image tag.
|
93
|
+
</p>
|
94
|
+
<p>
|
95
|
+
The unofficial MIME type <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-URI:CAPS" title="CAIRO_MIME_TYPE_URI"><code class="literal">CAIRO_MIME_TYPE_URI</code></a> is examined
|
96
|
+
first. If present, the URI is emitted as is: assuring the
|
97
|
+
correctness of URI is left to the client code.
|
98
|
+
</p>
|
99
|
+
<p>
|
100
|
+
If <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-URI:CAPS" title="CAIRO_MIME_TYPE_URI"><code class="literal">CAIRO_MIME_TYPE_URI</code></a> is not present, but <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JPEG:CAPS" title="CAIRO_MIME_TYPE_JPEG"><code class="literal">CAIRO_MIME_TYPE_JPEG</code></a>
|
101
|
+
or <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-PNG:CAPS" title="CAIRO_MIME_TYPE_PNG"><code class="literal">CAIRO_MIME_TYPE_PNG</code></a> is specified, the corresponding data is
|
102
|
+
Base64-encoded and emitted.
|
103
|
+
</p>
|
104
|
+
<div class="variablelist"><table border="0">
|
105
|
+
<col align="left" valign="top">
|
106
|
+
<tbody>
|
107
|
+
<tr>
|
108
|
+
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
109
|
+
<td>a filename for the SVG output (must be writable), <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> may be
|
110
|
+
used to specify no output. This will generate a SVG surface that
|
111
|
+
may be queried and used as a source, without generating a
|
112
|
+
temporary file.
|
113
|
+
</td>
|
114
|
+
</tr>
|
115
|
+
<tr>
|
116
|
+
<td><p><span class="term"><em class="parameter"><code>width_in_points</code></em> :</span></p></td>
|
117
|
+
<td>width of the surface, in points (1 point == 1/72.0 inch)
|
118
|
+
</td>
|
119
|
+
</tr>
|
120
|
+
<tr>
|
121
|
+
<td><p><span class="term"><em class="parameter"><code>height_in_points</code></em> :</span></p></td>
|
122
|
+
<td>height of the surface, in points (1 point == 1/72.0 inch)
|
123
|
+
</td>
|
124
|
+
</tr>
|
125
|
+
<tr>
|
126
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
127
|
+
<td> a pointer to the newly created surface. The caller
|
128
|
+
owns the surface and should call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a> when done
|
129
|
+
with it.
|
130
|
+
|
131
|
+
This function always returns a valid pointer, but it will return a
|
132
|
+
pointer to a "nil" surface if an error such as out of memory
|
133
|
+
occurs. You can use <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-status" title="cairo_surface_status ()"><code class="function">cairo_surface_status()</code></a> to check for this.
|
134
|
+
|
135
|
+
</td>
|
136
|
+
</tr>
|
137
|
+
</tbody>
|
138
|
+
</table></div>
|
139
|
+
<p class="since">Since 1.2</p>
|
140
|
+
</div>
|
141
|
+
<hr>
|
142
|
+
<div class="refsect2" title="cairo_svg_surface_create_for_stream ()">
|
143
|
+
<a name="cairo-svg-surface-create-for-stream"></a><h3>cairo_svg_surface_create_for_stream ()</h3>
|
144
|
+
<pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> * cairo_svg_surface_create_for_stream (<em class="parameter"><code><a class="link" href="cairo-PNG-Support.html#cairo-write-func-t" title="cairo_write_func_t ()"><span class="type">cairo_write_func_t</span></a> write_func</code></em>,
|
145
|
+
<em class="parameter"><code><span class="type">void</span> *closure</code></em>,
|
146
|
+
<em class="parameter"><code><span class="type">double</span> width_in_points</code></em>,
|
147
|
+
<em class="parameter"><code><span class="type">double</span> height_in_points</code></em>);</pre>
|
148
|
+
<p>
|
149
|
+
Creates a SVG surface of the specified size in points to be written
|
150
|
+
incrementally to the stream represented by <em class="parameter"><code>write_func</code></em> and <em class="parameter"><code>closure</code></em>.
|
151
|
+
</p>
|
152
|
+
<div class="variablelist"><table border="0">
|
153
|
+
<col align="left" valign="top">
|
154
|
+
<tbody>
|
155
|
+
<tr>
|
156
|
+
<td><p><span class="term"><em class="parameter"><code>write_func</code></em> :</span></p></td>
|
157
|
+
<td>a <a class="link" href="cairo-PNG-Support.html#cairo-write-func-t" title="cairo_write_func_t ()"><span class="type">cairo_write_func_t</span></a> to accept the output data, may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
158
|
+
to indicate a no-op <em class="parameter"><code>write_func</code></em>. With a no-op <em class="parameter"><code>write_func</code></em>,
|
159
|
+
the surface may be queried or used as a source without
|
160
|
+
generating any temporary files.
|
161
|
+
</td>
|
162
|
+
</tr>
|
163
|
+
<tr>
|
164
|
+
<td><p><span class="term"><em class="parameter"><code>closure</code></em> :</span></p></td>
|
165
|
+
<td>the closure argument for <em class="parameter"><code>write_func</code></em>
|
166
|
+
</td>
|
167
|
+
</tr>
|
168
|
+
<tr>
|
169
|
+
<td><p><span class="term"><em class="parameter"><code>width_in_points</code></em> :</span></p></td>
|
170
|
+
<td>width of the surface, in points (1 point == 1/72.0 inch)
|
171
|
+
</td>
|
172
|
+
</tr>
|
173
|
+
<tr>
|
174
|
+
<td><p><span class="term"><em class="parameter"><code>height_in_points</code></em> :</span></p></td>
|
175
|
+
<td>height of the surface, in points (1 point == 1/72.0 inch)
|
176
|
+
</td>
|
177
|
+
</tr>
|
178
|
+
<tr>
|
179
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
180
|
+
<td> a pointer to the newly created surface. The caller
|
181
|
+
owns the surface and should call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a> when done
|
182
|
+
with it.
|
183
|
+
|
184
|
+
This function always returns a valid pointer, but it will return a
|
185
|
+
pointer to a "nil" surface if an error such as out of memory
|
186
|
+
occurs. You can use <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-status" title="cairo_surface_status ()"><code class="function">cairo_surface_status()</code></a> to check for this.
|
187
|
+
|
188
|
+
</td>
|
189
|
+
</tr>
|
190
|
+
</tbody>
|
191
|
+
</table></div>
|
192
|
+
<p class="since">Since 1.2</p>
|
193
|
+
</div>
|
194
|
+
<hr>
|
195
|
+
<div class="refsect2" title="cairo_svg_surface_restrict_to_version ()">
|
196
|
+
<a name="cairo-svg-surface-restrict-to-version"></a><h3>cairo_svg_surface_restrict_to_version ()</h3>
|
197
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_svg_surface_restrict_to_version
|
198
|
+
(<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>,
|
199
|
+
<em class="parameter"><code><a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-t" title="enum cairo_svg_version_t"><span class="type">cairo_svg_version_t</span></a> version</code></em>);</pre>
|
200
|
+
<p>
|
201
|
+
Restricts the generated SVG file to <em class="parameter"><code>version</code></em>. See <a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-get-versions" title="cairo_svg_get_versions ()"><code class="function">cairo_svg_get_versions()</code></a>
|
202
|
+
for a list of available version values that can be used here.
|
203
|
+
</p>
|
204
|
+
<p>
|
205
|
+
This function should only be called before any drawing operations
|
206
|
+
have been performed on the given surface. The simplest way to do
|
207
|
+
this is to call this function immediately after creating the
|
208
|
+
surface.
|
209
|
+
</p>
|
210
|
+
<div class="variablelist"><table border="0">
|
211
|
+
<col align="left" valign="top">
|
212
|
+
<tbody>
|
213
|
+
<tr>
|
214
|
+
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
215
|
+
<td>a SVG <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>
|
216
|
+
</td>
|
217
|
+
</tr>
|
218
|
+
<tr>
|
219
|
+
<td><p><span class="term"><em class="parameter"><code>version</code></em> :</span></p></td>
|
220
|
+
<td>SVG version
|
221
|
+
</td>
|
222
|
+
</tr>
|
223
|
+
</tbody>
|
224
|
+
</table></div>
|
225
|
+
<p class="since">Since 1.2</p>
|
226
|
+
</div>
|
227
|
+
<hr>
|
228
|
+
<div class="refsect2" title="enum cairo_svg_version_t">
|
229
|
+
<a name="cairo-svg-version-t"></a><h3>enum cairo_svg_version_t</h3>
|
230
|
+
<pre class="programlisting">typedef enum _cairo_svg_version {
|
231
|
+
CAIRO_SVG_VERSION_1_1,
|
232
|
+
CAIRO_SVG_VERSION_1_2
|
233
|
+
} cairo_svg_version_t;
|
234
|
+
</pre>
|
235
|
+
<p>
|
236
|
+
<a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-t" title="enum cairo_svg_version_t"><span class="type">cairo_svg_version_t</span></a> is used to describe the version number of the SVG
|
237
|
+
specification that a generated SVG file will conform to.
|
238
|
+
</p>
|
239
|
+
<div class="variablelist"><table border="0">
|
240
|
+
<col align="left" valign="top">
|
241
|
+
<tbody>
|
242
|
+
<tr>
|
243
|
+
<td><p><a name="CAIRO-SVG-VERSION-1-1:CAPS"></a><span class="term"><code class="literal">CAIRO_SVG_VERSION_1_1</code></span></p></td>
|
244
|
+
<td>The version 1.1 of the SVG specification.
|
245
|
+
</td>
|
246
|
+
</tr>
|
247
|
+
<tr>
|
248
|
+
<td><p><a name="CAIRO-SVG-VERSION-1-2:CAPS"></a><span class="term"><code class="literal">CAIRO_SVG_VERSION_1_2</code></span></p></td>
|
249
|
+
<td>The version 1.2 of the SVG specification.
|
250
|
+
</td>
|
251
|
+
</tr>
|
252
|
+
</tbody>
|
253
|
+
</table></div>
|
254
|
+
</div>
|
255
|
+
<hr>
|
256
|
+
<div class="refsect2" title="cairo_svg_get_versions ()">
|
257
|
+
<a name="cairo-svg-get-versions"></a><h3>cairo_svg_get_versions ()</h3>
|
258
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_svg_get_versions (<em class="parameter"><code><a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-t" title="enum cairo_svg_version_t"><span class="type">cairo_svg_version_t</span></a> const **versions</code></em>,
|
259
|
+
<em class="parameter"><code><span class="type">int</span> *num_versions</code></em>);</pre>
|
260
|
+
<p>
|
261
|
+
Used to retrieve the list of supported versions. See
|
262
|
+
<a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-surface-restrict-to-version" title="cairo_svg_surface_restrict_to_version ()"><code class="function">cairo_svg_surface_restrict_to_version()</code></a>.
|
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>versions</code></em> :</span></p></td>
|
269
|
+
<td>supported version list
|
270
|
+
</td>
|
271
|
+
</tr>
|
272
|
+
<tr>
|
273
|
+
<td><p><span class="term"><em class="parameter"><code>num_versions</code></em> :</span></p></td>
|
274
|
+
<td>list length
|
275
|
+
</td>
|
276
|
+
</tr>
|
277
|
+
</tbody>
|
278
|
+
</table></div>
|
279
|
+
<p class="since">Since 1.2</p>
|
280
|
+
</div>
|
281
|
+
<hr>
|
282
|
+
<div class="refsect2" title="cairo_svg_version_to_string ()">
|
283
|
+
<a name="cairo-svg-version-to-string"></a><h3>cairo_svg_version_to_string ()</h3>
|
284
|
+
<pre class="programlisting">const <span class="returnvalue">char</span> * cairo_svg_version_to_string (<em class="parameter"><code><a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-t" title="enum cairo_svg_version_t"><span class="type">cairo_svg_version_t</span></a> version</code></em>);</pre>
|
285
|
+
<p>
|
286
|
+
Get the string representation of the given <em class="parameter"><code>version</code></em> id. This function
|
287
|
+
will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>version</code></em> isn't valid. See <a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-get-versions" title="cairo_svg_get_versions ()"><code class="function">cairo_svg_get_versions()</code></a>
|
288
|
+
for a way to get the list of valid version ids.
|
289
|
+
</p>
|
290
|
+
<div class="variablelist"><table border="0">
|
291
|
+
<col align="left" valign="top">
|
292
|
+
<tbody>
|
293
|
+
<tr>
|
294
|
+
<td><p><span class="term"><em class="parameter"><code>version</code></em> :</span></p></td>
|
295
|
+
<td>a version id
|
296
|
+
</td>
|
297
|
+
</tr>
|
298
|
+
<tr>
|
299
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
300
|
+
<td> the string associated to given version.
|
301
|
+
|
302
|
+
</td>
|
303
|
+
</tr>
|
304
|
+
</tbody>
|
305
|
+
</table></div>
|
306
|
+
<p class="since">Since 1.2</p>
|
307
|
+
</div>
|
308
|
+
</div>
|
309
|
+
<div class="refsect1" title="See Also">
|
310
|
+
<a name="cairo-SVG-Surfaces.see-also"></a><h2>See Also</h2>
|
311
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>
|
312
|
+
</div>
|
313
|
+
</div>
|
314
|
+
<div class="footer">
|
315
|
+
<hr>
|
316
|
+
Generated by GTK-Doc V1.15</div>
|
317
|
+
</body>
|
318
|
+
</html>
|
@@ -0,0 +1,410 @@
|
|
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=UTF-8">
|
5
|
+
<title>Transformations</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
|
+
<link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
|
+
<link rel="up" href="cairo-drawing.html" title="Drawing">
|
9
|
+
<link rel="prev" href="cairo-Regions.html" title="Regions">
|
10
|
+
<link rel="next" href="cairo-text.html" title="text">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
+
<tr valign="middle">
|
17
|
+
<td><a accesskey="p" href="cairo-Regions.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
+
<td><a accesskey="u" href="cairo-drawing.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
+
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
21
|
+
<td><a accesskey="n" href="cairo-text.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
+
</tr>
|
23
|
+
<tr><td colspan="5" class="shortcuts">
|
24
|
+
<a href="#cairo-Transformations.synopsis" class="shortcut">Top</a>
|
25
|
+
|
|
26
|
+
<a href="#cairo-Transformations.description" class="shortcut">Description</a>
|
27
|
+
</td></tr>
|
28
|
+
</table>
|
29
|
+
<div class="refentry" title="Transformations">
|
30
|
+
<a name="cairo-Transformations"></a><div class="titlepage"></div>
|
31
|
+
<div class="refnamediv"><table width="100%"><tr>
|
32
|
+
<td valign="top">
|
33
|
+
<h2><span class="refentrytitle"><a name="cairo-Transformations.top_of_page"></a>Transformations</span></h2>
|
34
|
+
<p>Transformations — Manipulating the current transformation matrix</p>
|
35
|
+
</td>
|
36
|
+
<td valign="top" align="right"></td>
|
37
|
+
</tr></table></div>
|
38
|
+
<div class="refsynopsisdiv" title="Synopsis">
|
39
|
+
<a name="cairo-Transformations.synopsis"></a><h2>Synopsis</h2>
|
40
|
+
<pre class="synopsis"><span class="returnvalue">void</span> <a class="link" href="cairo-Transformations.html#cairo-translate" title="cairo_translate ()">cairo_translate</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
41
|
+
<em class="parameter"><code><span class="type">double</span> tx</code></em>,
|
42
|
+
<em class="parameter"><code><span class="type">double</span> ty</code></em>);
|
43
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-Transformations.html#cairo-scale" title="cairo_scale ()">cairo_scale</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
44
|
+
<em class="parameter"><code><span class="type">double</span> sx</code></em>,
|
45
|
+
<em class="parameter"><code><span class="type">double</span> sy</code></em>);
|
46
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-Transformations.html#cairo-rotate" title="cairo_rotate ()">cairo_rotate</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
47
|
+
<em class="parameter"><code><span class="type">double</span> angle</code></em>);
|
48
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-Transformations.html#cairo-transform" title="cairo_transform ()">cairo_transform</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
49
|
+
<em class="parameter"><code>const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);
|
50
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-Transformations.html#cairo-set-matrix" title="cairo_set_matrix ()">cairo_set_matrix</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
51
|
+
<em class="parameter"><code>const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);
|
52
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-Transformations.html#cairo-get-matrix" title="cairo_get_matrix ()">cairo_get_matrix</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
53
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);
|
54
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-Transformations.html#cairo-identity-matrix" title="cairo_identity_matrix ()">cairo_identity_matrix</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
|
55
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-Transformations.html#cairo-user-to-device" title="cairo_user_to_device ()">cairo_user_to_device</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
56
|
+
<em class="parameter"><code><span class="type">double</span> *x</code></em>,
|
57
|
+
<em class="parameter"><code><span class="type">double</span> *y</code></em>);
|
58
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-Transformations.html#cairo-user-to-device-distance" title="cairo_user_to_device_distance ()">cairo_user_to_device_distance</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
59
|
+
<em class="parameter"><code><span class="type">double</span> *dx</code></em>,
|
60
|
+
<em class="parameter"><code><span class="type">double</span> *dy</code></em>);
|
61
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-Transformations.html#cairo-device-to-user" title="cairo_device_to_user ()">cairo_device_to_user</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
62
|
+
<em class="parameter"><code><span class="type">double</span> *x</code></em>,
|
63
|
+
<em class="parameter"><code><span class="type">double</span> *y</code></em>);
|
64
|
+
<span class="returnvalue">void</span> <a class="link" href="cairo-Transformations.html#cairo-device-to-user-distance" title="cairo_device_to_user_distance ()">cairo_device_to_user_distance</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
65
|
+
<em class="parameter"><code><span class="type">double</span> *dx</code></em>,
|
66
|
+
<em class="parameter"><code><span class="type">double</span> *dy</code></em>);
|
67
|
+
</pre>
|
68
|
+
</div>
|
69
|
+
<div class="refsect1" title="Description">
|
70
|
+
<a name="cairo-Transformations.description"></a><h2>Description</h2>
|
71
|
+
<p>
|
72
|
+
The current transformation matrix, <em class="firstterm">ctm</em>, is a
|
73
|
+
two-dimensional affine transformation that maps all coordinates and other
|
74
|
+
drawing instruments from the <em class="firstterm">user space</em> into the
|
75
|
+
surface's canonical coordinate system, also known as the <em class="firstterm">device
|
76
|
+
space</em>.
|
77
|
+
</p>
|
78
|
+
</div>
|
79
|
+
<div class="refsect1" title="Details">
|
80
|
+
<a name="cairo-Transformations.details"></a><h2>Details</h2>
|
81
|
+
<div class="refsect2" title="cairo_translate ()">
|
82
|
+
<a name="cairo-translate"></a><h3>cairo_translate ()</h3>
|
83
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_translate (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
84
|
+
<em class="parameter"><code><span class="type">double</span> tx</code></em>,
|
85
|
+
<em class="parameter"><code><span class="type">double</span> ty</code></em>);</pre>
|
86
|
+
<p>
|
87
|
+
Modifies the current transformation matrix (CTM) by translating the
|
88
|
+
user-space origin by (<em class="parameter"><code>tx</code></em>, <em class="parameter"><code>ty</code></em>). This offset is interpreted as a
|
89
|
+
user-space coordinate according to the CTM in place before the new
|
90
|
+
call to <a class="link" href="cairo-Transformations.html#cairo-translate" title="cairo_translate ()"><code class="function">cairo_translate()</code></a>. In other words, the translation of the
|
91
|
+
user-space origin takes place after any existing transformation.
|
92
|
+
</p>
|
93
|
+
<div class="variablelist"><table border="0">
|
94
|
+
<col align="left" valign="top">
|
95
|
+
<tbody>
|
96
|
+
<tr>
|
97
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
98
|
+
<td>a cairo context
|
99
|
+
</td>
|
100
|
+
</tr>
|
101
|
+
<tr>
|
102
|
+
<td><p><span class="term"><em class="parameter"><code>tx</code></em> :</span></p></td>
|
103
|
+
<td>amount to translate in the X direction
|
104
|
+
</td>
|
105
|
+
</tr>
|
106
|
+
<tr>
|
107
|
+
<td><p><span class="term"><em class="parameter"><code>ty</code></em> :</span></p></td>
|
108
|
+
<td>amount to translate in the Y direction
|
109
|
+
</td>
|
110
|
+
</tr>
|
111
|
+
</tbody>
|
112
|
+
</table></div>
|
113
|
+
</div>
|
114
|
+
<hr>
|
115
|
+
<div class="refsect2" title="cairo_scale ()">
|
116
|
+
<a name="cairo-scale"></a><h3>cairo_scale ()</h3>
|
117
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_scale (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
118
|
+
<em class="parameter"><code><span class="type">double</span> sx</code></em>,
|
119
|
+
<em class="parameter"><code><span class="type">double</span> sy</code></em>);</pre>
|
120
|
+
<p>
|
121
|
+
Modifies the current transformation matrix (CTM) by scaling the X
|
122
|
+
and Y user-space axes by <em class="parameter"><code>sx</code></em> and <em class="parameter"><code>sy</code></em> respectively. The scaling of
|
123
|
+
the axes takes place after any existing transformation of user
|
124
|
+
space.
|
125
|
+
</p>
|
126
|
+
<div class="variablelist"><table border="0">
|
127
|
+
<col align="left" valign="top">
|
128
|
+
<tbody>
|
129
|
+
<tr>
|
130
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
131
|
+
<td>a cairo context
|
132
|
+
</td>
|
133
|
+
</tr>
|
134
|
+
<tr>
|
135
|
+
<td><p><span class="term"><em class="parameter"><code>sx</code></em> :</span></p></td>
|
136
|
+
<td>scale factor for the X dimension
|
137
|
+
</td>
|
138
|
+
</tr>
|
139
|
+
<tr>
|
140
|
+
<td><p><span class="term"><em class="parameter"><code>sy</code></em> :</span></p></td>
|
141
|
+
<td>scale factor for the Y dimension
|
142
|
+
</td>
|
143
|
+
</tr>
|
144
|
+
</tbody>
|
145
|
+
</table></div>
|
146
|
+
</div>
|
147
|
+
<hr>
|
148
|
+
<div class="refsect2" title="cairo_rotate ()">
|
149
|
+
<a name="cairo-rotate"></a><h3>cairo_rotate ()</h3>
|
150
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_rotate (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
151
|
+
<em class="parameter"><code><span class="type">double</span> angle</code></em>);</pre>
|
152
|
+
<p>
|
153
|
+
Modifies the current transformation matrix (CTM) by rotating the
|
154
|
+
user-space axes by <em class="parameter"><code>angle</code></em> radians. The rotation of the axes takes
|
155
|
+
places after any existing transformation of user space. The
|
156
|
+
rotation direction for positive angles is from the positive X axis
|
157
|
+
toward the positive Y axis.
|
158
|
+
</p>
|
159
|
+
<div class="variablelist"><table border="0">
|
160
|
+
<col align="left" valign="top">
|
161
|
+
<tbody>
|
162
|
+
<tr>
|
163
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
164
|
+
<td>a cairo context
|
165
|
+
</td>
|
166
|
+
</tr>
|
167
|
+
<tr>
|
168
|
+
<td><p><span class="term"><em class="parameter"><code>angle</code></em> :</span></p></td>
|
169
|
+
<td>angle (in radians) by which the user-space axes will be
|
170
|
+
rotated
|
171
|
+
</td>
|
172
|
+
</tr>
|
173
|
+
</tbody>
|
174
|
+
</table></div>
|
175
|
+
</div>
|
176
|
+
<hr>
|
177
|
+
<div class="refsect2" title="cairo_transform ()">
|
178
|
+
<a name="cairo-transform"></a><h3>cairo_transform ()</h3>
|
179
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_transform (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
180
|
+
<em class="parameter"><code>const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);</pre>
|
181
|
+
<p>
|
182
|
+
Modifies the current transformation matrix (CTM) by applying
|
183
|
+
<em class="parameter"><code>matrix</code></em> as an additional transformation. The new transformation of
|
184
|
+
user space takes place after any existing transformation.
|
185
|
+
</p>
|
186
|
+
<div class="variablelist"><table border="0">
|
187
|
+
<col align="left" valign="top">
|
188
|
+
<tbody>
|
189
|
+
<tr>
|
190
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
191
|
+
<td>a cairo context
|
192
|
+
</td>
|
193
|
+
</tr>
|
194
|
+
<tr>
|
195
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
196
|
+
<td>a transformation to be applied to the user-space axes
|
197
|
+
</td>
|
198
|
+
</tr>
|
199
|
+
</tbody>
|
200
|
+
</table></div>
|
201
|
+
</div>
|
202
|
+
<hr>
|
203
|
+
<div class="refsect2" title="cairo_set_matrix ()">
|
204
|
+
<a name="cairo-set-matrix"></a><h3>cairo_set_matrix ()</h3>
|
205
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_set_matrix (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
206
|
+
<em class="parameter"><code>const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);</pre>
|
207
|
+
<p>
|
208
|
+
Modifies the current transformation matrix (CTM) by setting it
|
209
|
+
equal to <em class="parameter"><code>matrix</code></em>.
|
210
|
+
</p>
|
211
|
+
<div class="variablelist"><table border="0">
|
212
|
+
<col align="left" valign="top">
|
213
|
+
<tbody>
|
214
|
+
<tr>
|
215
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
216
|
+
<td>a cairo context
|
217
|
+
</td>
|
218
|
+
</tr>
|
219
|
+
<tr>
|
220
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
221
|
+
<td>a transformation matrix from user space to device space
|
222
|
+
</td>
|
223
|
+
</tr>
|
224
|
+
</tbody>
|
225
|
+
</table></div>
|
226
|
+
</div>
|
227
|
+
<hr>
|
228
|
+
<div class="refsect2" title="cairo_get_matrix ()">
|
229
|
+
<a name="cairo-get-matrix"></a><h3>cairo_get_matrix ()</h3>
|
230
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_get_matrix (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
231
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);</pre>
|
232
|
+
<p>
|
233
|
+
Stores the current transformation matrix (CTM) into <em class="parameter"><code>matrix</code></em>.
|
234
|
+
</p>
|
235
|
+
<div class="variablelist"><table border="0">
|
236
|
+
<col align="left" valign="top">
|
237
|
+
<tbody>
|
238
|
+
<tr>
|
239
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
240
|
+
<td>a cairo context
|
241
|
+
</td>
|
242
|
+
</tr>
|
243
|
+
<tr>
|
244
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
245
|
+
<td>return value for the matrix
|
246
|
+
</td>
|
247
|
+
</tr>
|
248
|
+
</tbody>
|
249
|
+
</table></div>
|
250
|
+
</div>
|
251
|
+
<hr>
|
252
|
+
<div class="refsect2" title="cairo_identity_matrix ()">
|
253
|
+
<a name="cairo-identity-matrix"></a><h3>cairo_identity_matrix ()</h3>
|
254
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_identity_matrix (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
|
255
|
+
<p>
|
256
|
+
Resets the current transformation matrix (CTM) by setting it equal
|
257
|
+
to the identity matrix. That is, the user-space and device-space
|
258
|
+
axes will be aligned and one user-space unit will transform to one
|
259
|
+
device-space unit.
|
260
|
+
</p>
|
261
|
+
<div class="variablelist"><table border="0">
|
262
|
+
<col align="left" valign="top">
|
263
|
+
<tbody><tr>
|
264
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
265
|
+
<td>a cairo context
|
266
|
+
</td>
|
267
|
+
</tr></tbody>
|
268
|
+
</table></div>
|
269
|
+
</div>
|
270
|
+
<hr>
|
271
|
+
<div class="refsect2" title="cairo_user_to_device ()">
|
272
|
+
<a name="cairo-user-to-device"></a><h3>cairo_user_to_device ()</h3>
|
273
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_user_to_device (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
274
|
+
<em class="parameter"><code><span class="type">double</span> *x</code></em>,
|
275
|
+
<em class="parameter"><code><span class="type">double</span> *y</code></em>);</pre>
|
276
|
+
<p>
|
277
|
+
Transform a coordinate from user space to device space by
|
278
|
+
multiplying the given point by the current transformation matrix
|
279
|
+
(CTM).
|
280
|
+
</p>
|
281
|
+
<div class="variablelist"><table border="0">
|
282
|
+
<col align="left" valign="top">
|
283
|
+
<tbody>
|
284
|
+
<tr>
|
285
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
286
|
+
<td>a cairo context
|
287
|
+
</td>
|
288
|
+
</tr>
|
289
|
+
<tr>
|
290
|
+
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
|
291
|
+
<td>X value of coordinate (in/out parameter)
|
292
|
+
</td>
|
293
|
+
</tr>
|
294
|
+
<tr>
|
295
|
+
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
|
296
|
+
<td>Y value of coordinate (in/out parameter)
|
297
|
+
</td>
|
298
|
+
</tr>
|
299
|
+
</tbody>
|
300
|
+
</table></div>
|
301
|
+
</div>
|
302
|
+
<hr>
|
303
|
+
<div class="refsect2" title="cairo_user_to_device_distance ()">
|
304
|
+
<a name="cairo-user-to-device-distance"></a><h3>cairo_user_to_device_distance ()</h3>
|
305
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_user_to_device_distance (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
306
|
+
<em class="parameter"><code><span class="type">double</span> *dx</code></em>,
|
307
|
+
<em class="parameter"><code><span class="type">double</span> *dy</code></em>);</pre>
|
308
|
+
<p>
|
309
|
+
Transform a distance vector from user space to device space. This
|
310
|
+
function is similar to <a class="link" href="cairo-Transformations.html#cairo-user-to-device" title="cairo_user_to_device ()"><code class="function">cairo_user_to_device()</code></a> except that the
|
311
|
+
translation components of the CTM will be ignored when transforming
|
312
|
+
(<em class="parameter"><code>dx</code></em>,<em class="parameter"><code>dy</code></em>).
|
313
|
+
</p>
|
314
|
+
<div class="variablelist"><table border="0">
|
315
|
+
<col align="left" valign="top">
|
316
|
+
<tbody>
|
317
|
+
<tr>
|
318
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
319
|
+
<td>a cairo context
|
320
|
+
</td>
|
321
|
+
</tr>
|
322
|
+
<tr>
|
323
|
+
<td><p><span class="term"><em class="parameter"><code>dx</code></em> :</span></p></td>
|
324
|
+
<td>X component of a distance vector (in/out parameter)
|
325
|
+
</td>
|
326
|
+
</tr>
|
327
|
+
<tr>
|
328
|
+
<td><p><span class="term"><em class="parameter"><code>dy</code></em> :</span></p></td>
|
329
|
+
<td>Y component of a distance vector (in/out parameter)
|
330
|
+
</td>
|
331
|
+
</tr>
|
332
|
+
</tbody>
|
333
|
+
</table></div>
|
334
|
+
</div>
|
335
|
+
<hr>
|
336
|
+
<div class="refsect2" title="cairo_device_to_user ()">
|
337
|
+
<a name="cairo-device-to-user"></a><h3>cairo_device_to_user ()</h3>
|
338
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_device_to_user (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
339
|
+
<em class="parameter"><code><span class="type">double</span> *x</code></em>,
|
340
|
+
<em class="parameter"><code><span class="type">double</span> *y</code></em>);</pre>
|
341
|
+
<p>
|
342
|
+
Transform a coordinate from device space to user space by
|
343
|
+
multiplying the given point by the inverse of the current
|
344
|
+
transformation matrix (CTM).
|
345
|
+
</p>
|
346
|
+
<div class="variablelist"><table border="0">
|
347
|
+
<col align="left" valign="top">
|
348
|
+
<tbody>
|
349
|
+
<tr>
|
350
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
351
|
+
<td>a cairo
|
352
|
+
</td>
|
353
|
+
</tr>
|
354
|
+
<tr>
|
355
|
+
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
|
356
|
+
<td>X value of coordinate (in/out parameter)
|
357
|
+
</td>
|
358
|
+
</tr>
|
359
|
+
<tr>
|
360
|
+
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
|
361
|
+
<td>Y value of coordinate (in/out parameter)
|
362
|
+
</td>
|
363
|
+
</tr>
|
364
|
+
</tbody>
|
365
|
+
</table></div>
|
366
|
+
</div>
|
367
|
+
<hr>
|
368
|
+
<div class="refsect2" title="cairo_device_to_user_distance ()">
|
369
|
+
<a name="cairo-device-to-user-distance"></a><h3>cairo_device_to_user_distance ()</h3>
|
370
|
+
<pre class="programlisting"><span class="returnvalue">void</span> cairo_device_to_user_distance (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
371
|
+
<em class="parameter"><code><span class="type">double</span> *dx</code></em>,
|
372
|
+
<em class="parameter"><code><span class="type">double</span> *dy</code></em>);</pre>
|
373
|
+
<p>
|
374
|
+
Transform a distance vector from device space to user space. This
|
375
|
+
function is similar to <a class="link" href="cairo-Transformations.html#cairo-device-to-user" title="cairo_device_to_user ()"><code class="function">cairo_device_to_user()</code></a> except that the
|
376
|
+
translation components of the inverse CTM will be ignored when
|
377
|
+
transforming (<em class="parameter"><code>dx</code></em>,<em class="parameter"><code>dy</code></em>).
|
378
|
+
</p>
|
379
|
+
<div class="variablelist"><table border="0">
|
380
|
+
<col align="left" valign="top">
|
381
|
+
<tbody>
|
382
|
+
<tr>
|
383
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
384
|
+
<td>a cairo context
|
385
|
+
</td>
|
386
|
+
</tr>
|
387
|
+
<tr>
|
388
|
+
<td><p><span class="term"><em class="parameter"><code>dx</code></em> :</span></p></td>
|
389
|
+
<td>X component of a distance vector (in/out parameter)
|
390
|
+
</td>
|
391
|
+
</tr>
|
392
|
+
<tr>
|
393
|
+
<td><p><span class="term"><em class="parameter"><code>dy</code></em> :</span></p></td>
|
394
|
+
<td>Y component of a distance vector (in/out parameter)
|
395
|
+
</td>
|
396
|
+
</tr>
|
397
|
+
</tbody>
|
398
|
+
</table></div>
|
399
|
+
</div>
|
400
|
+
</div>
|
401
|
+
<div class="refsect1" title="See Also">
|
402
|
+
<a name="cairo-Transformations.see-also"></a><h2>See Also</h2>
|
403
|
+
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
404
|
+
</div>
|
405
|
+
</div>
|
406
|
+
<div class="footer">
|
407
|
+
<hr>
|
408
|
+
Generated by GTK-Doc V1.15</div>
|
409
|
+
</body>
|
410
|
+
</html>
|