kolibrios/contrib/sdk/sources/cairo/src
Sergey Semyonov (Serge) 36d7425fb6 libcairo && libpixman: replace printf() with fprintf()
git-svn-id: svn://kolibrios.org@6073 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-01-18 05:09:44 +00:00
..
cairo-analysis-surface-private.h
cairo-analysis-surface.c
cairo-arc-private.h
cairo-arc.c
cairo-array-private.h
cairo-array.c
cairo-atomic-private.h
cairo-atomic.c
cairo-backend-private.h
cairo-base64-stream.c
cairo-base85-stream.c
cairo-bentley-ottmann-rectangular.c
cairo-bentley-ottmann-rectilinear.c
cairo-bentley-ottmann.c
cairo-beos-surface.cpp
cairo-beos.h
cairo-botor-scan-converter.c
cairo-box-inline.h
cairo-boxes-intersect.c
cairo-boxes-private.h
cairo-boxes.c
cairo-cache-private.h
cairo-cache.c
cairo-cff-subset.c
cairo-clip-boxes.c
cairo-clip-inline.h
cairo-clip-polygon.c
cairo-clip-private.h
cairo-clip-region.c
cairo-clip-surface.c
cairo-clip-tor-scan-converter.c
cairo-clip.c
cairo-cogl-context-private.h
cairo-cogl-context.c
cairo-cogl-gradient-private.h
cairo-cogl-gradient.c
cairo-cogl-private.h
cairo-cogl-surface.c
cairo-cogl-utils-private.h
cairo-cogl-utils.c
cairo-cogl.h
cairo-color.c
cairo-combsort-inline.h
cairo-compiler-private.h
cairo-composite-rectangles-private.h
cairo-composite-rectangles.c
cairo-compositor-private.h
cairo-compositor.c
cairo-contour-inline.h
cairo-contour-private.h
cairo-contour.c
cairo-damage-private.h
cairo-damage.c
cairo-debug.c
cairo-default-context-private.h
cairo-default-context.c
cairo-deflate-stream.c
cairo-deprecated.h
cairo-device-private.h
cairo-device.c
cairo-directfb-surface.c
cairo-directfb.h
cairo-drm.h
cairo-egl-context.c
cairo-error-inline.h
cairo-error-private.h
cairo-error.c
cairo-fallback-compositor.c
cairo-features.h
cairo-fixed-private.h
cairo-fixed-type-private.h
cairo-fixed.c
cairo-font-face-twin-data.c
cairo-font-face-twin.c
cairo-font-face.c
cairo-font-options.c
cairo-fontconfig-private.h
cairo-freed-pool-private.h
cairo-freed-pool.c
cairo-freelist-private.h
cairo-freelist-type-private.h
cairo-freelist.c
cairo-ft-font.c
cairo-ft-private.h
cairo-ft.h
cairo-gl-composite.c
cairo-gl-device.c
cairo-gl-dispatch-private.h
cairo-gl-dispatch.c
cairo-gl-ext-def-private.h
cairo-gl-glyphs.c
cairo-gl-gradient-private.h
cairo-gl-gradient.c
cairo-gl-info.c
cairo-gl-msaa-compositor.c
cairo-gl-operand.c
cairo-gl-private.h
cairo-gl-shaders.c
cairo-gl-source.c
cairo-gl-spans-compositor.c
cairo-gl-surface.c
cairo-gl-traps-compositor.c
cairo-gl.h
cairo-glx-context.c
cairo-gstate-private.h
cairo-gstate.c
cairo-hash-private.h
cairo-hash.c
cairo-hull.c
cairo-image-compositor.c
cairo-image-info-private.h
cairo-image-info.c
cairo-image-source.c
cairo-image-surface-inline.h
cairo-image-surface-private.h
cairo-image-surface.c
cairo-list-inline.h
cairo-list-private.h
cairo-lzw.c
cairo-malloc-private.h
cairo-mask-compositor.c
cairo-matrix.c
cairo-mempool-private.h
cairo-mempool.c
cairo-mesh-pattern-rasterizer.c
cairo-misc.c
cairo-mono-scan-converter.c
cairo-mutex-impl-private.h
cairo-mutex-list-private.h
cairo-mutex-private.h
cairo-mutex-type-private.h
cairo-mutex.c
cairo-no-compositor.c
cairo-observer.c
cairo-os2-private.h
cairo-os2-surface.c
cairo-os2.h
cairo-output-stream-private.h
cairo-output-stream.c
cairo-paginated-private.h
cairo-paginated-surface-private.h
cairo-paginated-surface.c
cairo-path-bounds.c
cairo-path-fill.c
cairo-path-fixed-private.h
cairo-path-fixed.c
cairo-path-in-fill.c
cairo-path-private.h
cairo-path-stroke-boxes.c
cairo-path-stroke-polygon.c
cairo-path-stroke-traps.c
cairo-path-stroke-tristrip.c
cairo-path-stroke.c
cairo-path.c
cairo-pattern-inline.h
cairo-pattern-private.h
cairo-pattern.c
cairo-pdf-operators-private.h
cairo-pdf-operators.c
cairo-pdf-shading-private.h
cairo-pdf-shading.c
cairo-pdf-surface-private.h
cairo-pdf-surface.c
cairo-pdf.h
cairo-pen.c
cairo-pixman-private.h
cairo-png.c
cairo-polygon-intersect.c
cairo-polygon-reduce.c
cairo-polygon.c
cairo-private.h
cairo-ps-surface-private.h
cairo-ps-surface.c
cairo-ps.h
cairo-qt-surface.cpp
cairo-qt.h
cairo-quartz-font.c
cairo-quartz-image-surface.c
cairo-quartz-image.h
cairo-quartz-private.h
cairo-quartz-surface.c
cairo-quartz.h
cairo-raster-source-pattern.c
cairo-recording-surface-inline.h
cairo-recording-surface-private.h
cairo-recording-surface.c
cairo-rectangle.c
cairo-rectangular-scan-converter.c
cairo-reference-count-private.h
cairo-region-private.h
cairo-region.c
cairo-rtree-private.h
cairo-rtree.c
cairo-scaled-font-private.h
cairo-scaled-font-subsets-private.h
cairo-scaled-font-subsets.c
cairo-scaled-font.c
cairo-script-private.h
cairo-script-surface.c
cairo-script.h
cairo-shape-mask-compositor.c
cairo-skia.h
cairo-slope-private.h
cairo-slope.c
cairo-spans-compositor-private.h
cairo-spans-compositor.c
cairo-spans-private.h
cairo-spans.c
cairo-spline.c
cairo-stroke-dash-private.h
cairo-stroke-dash.c
cairo-stroke-style.c
cairo-surface-backend-private.h
cairo-surface-clipper-private.h
cairo-surface-clipper.c
cairo-surface-fallback-private.h
cairo-surface-fallback.c
cairo-surface-inline.h
cairo-surface-observer-inline.h
cairo-surface-observer-private.h
cairo-surface-observer.c
cairo-surface-offset-private.h
cairo-surface-offset.c
cairo-surface-private.h
cairo-surface-snapshot-inline.h
cairo-surface-snapshot-private.h
cairo-surface-snapshot.c
cairo-surface-subsurface-inline.h
cairo-surface-subsurface-private.h
cairo-surface-subsurface.c
cairo-surface-wrapper-private.h
cairo-surface-wrapper.c
cairo-surface.c
cairo-svg-surface-private.h
cairo-svg-surface.c
cairo-svg.h
cairo-tee-surface-private.h
cairo-tee-surface.c
cairo-tee.h
cairo-time-private.h
cairo-time.c
cairo-tor22-scan-converter.c
cairo-tor-scan-converter.c
cairo-toy-font-face.c
cairo-traps-compositor.c
cairo-traps-private.h
cairo-traps.c
cairo-tristrip-private.h
cairo-tristrip.c
cairo-truetype-subset-private.h
cairo-truetype-subset.c
cairo-type1-fallback.c
cairo-type1-glyph-names.c
cairo-type1-private.h
cairo-type1-subset.c
cairo-type3-glyph-surface-private.h
cairo-type3-glyph-surface.c
cairo-types-private.h
cairo-unicode.c
cairo-user-font-private.h
cairo-user-font.c
cairo-version.c
cairo-version.h
cairo-vg-surface.c
cairo-vg.h
cairo-wgl-context.c
cairo-wideint-private.h
cairo-wideint-type-private.h
cairo-wideint.c
cairo-win32.h
cairo-xcb-connection-core.c
cairo-xcb-connection-render.c
cairo-xcb-connection-shm.c
cairo-xcb-connection.c
cairo-xcb-private.h
cairo-xcb-screen.c
cairo-xcb-shm.c
cairo-xcb-surface-core.c
cairo-xcb-surface-render.c
cairo-xcb-surface.c
cairo-xcb.h
cairo-xlib-core-compositor.c
cairo-xlib-display.c
cairo-xlib-fallback-compositor.c
cairo-xlib-private.h
cairo-xlib-render-compositor.c
cairo-xlib-screen.c
cairo-xlib-source.c
cairo-xlib-surface-private.h
cairo-xlib-surface-shm.c
cairo-xlib-surface.c
cairo-xlib-visual.c
cairo-xlib-xcb-surface.c
cairo-xlib-xrender-private.h
cairo-xlib-xrender.h
cairo-xlib.h
cairo-xml-surface.c
cairo-xml.h
cairo.c
cairo.h
cairoint.h
check-has-hidden-symbols.c
check-link.c
README
test-base-compositor-surface.c
test-compositor-surface-private.h
test-compositor-surface.c
test-compositor-surface.h
test-null-compositor-surface.c
test-null-compositor-surface.h
test-paginated-surface.c
test-paginated-surface.h

Cairo Library Source Code
=========================

This directory contains the source code of the cairo library.


Source Code Listing
-------------------

The canonical list of source files is the file Makefile.sources.  See that
file for how it works.


New Backends
------------

The rule of the thumb for adding new backends is to see how other
backends are integrated.  Pick one of the simpler, unsupported, backends
and search the entire tree for it, and go from there.

To add new backends you need to basically:

  * Modify $(top_srcdir)/configure.in to add checks for your backend.

  * Modify Makefile.sources to add source files for your backend,

  * Modify $(top_srcdir)/boilerplate/ to add boilerplate code for
    testing your new backend.


New API
-------

After adding new API, run "make check" in this directory and fix any
reported issues.  Also add new API to the right location in
$(top_srcdir)/doc/public/cairo-sections.txt and run "make check"
in $(top_builddir)/doc/public to make sure that any newly added
documentation is correctly hooked up.

Do not forget to add tests for the new API.  See next section.


Tests
-----

There are some tests in this directory that check the source code and
the build for various issues.  The tests are very quick to run, and
particularly should be run after any documentation or API changes.  It
does not hurt to run them after any source modification either.  Run
them simply by calling:

	make check

There are also extensive regression tests in $(top_srcdir)/test.  It is
a good idea to run that test suite for any changes made to the source
code.  Moreover, for any new feature, API, or bug fix, new tests should
be added to the regression test suite to test the new code.


Bibliography
------------

A detailed list of academic publications used in cairo code is available
in the file $(top_srcdir)/BIBLIOGRAPHY.  Feel free to update as you
implement more papers.

For more technical publications (eg. Adobe technical reports) just
point them out in a comment in the header of the file implementing them.