Commit graph

91 commits

Author SHA1 Message Date
Chris Wilson
98335b4390 doc: Add documentation for cairo_raster_source_pattern
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-07 13:33:47 +00:00
Chris Wilson
d86ce9ca2f doc: Add sections for cairo-script
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-02 15:35:42 +00:00
Chris Wilson
498ca4bf74 doc: Add similar-image, map-to-image, unmap-image
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-02 15:31:51 +00:00
Keith Packard
b9d4a5f106 Add cairo_xcb_surface_set_drawable
Mirrors cairo_xlib_surface_set_drawable, allowing the drawable
targeted by a surface to be changed on the fly.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-02 15:31:51 +00:00
Keith Packard
a30013f72a Create XCB documentation.
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-02 15:31:50 +00:00
Andrea Canciani
5f039f0f89 mesh: Rename cairo_pattern_mesh_* functions to cairo_mesh_pattern_*
This is consistent with the naming of most cairo types/functions
(example: cairo_foo_surface_*).

The substitution in the code has been performed using:

  sed -i 's/cairo_pattern_mesh_/cairo_mesh_pattern_/' <files>
2011-02-07 20:28:09 +01:00
Maarten Bosmans
a351807147 doc: Fix some broken references and gtk-doc warnings
The gtk-doc comments contain some typos and are missing some escaping.
2011-01-16 18:40:49 +01:00
Andrea Canciani
5d5d24c6a2 doc: Add documentation for the mesh API
The documentation content is in the comments of the functions.
2011-01-01 13:05:14 +01:00
Carlos Garcia Campos
1ddc1bfa01 doc: Add section for recording surface 2010-09-09 10:54:50 +02:00
Benjamin Otte
8a08b6fa52 doc: Remove the <TITLE> declarations
This information was duplicated. It exists as the "@Title" of the
SECTION inline documentation already.
2010-07-09 02:21:00 +02:00
Benjamin Otte
b870cc030d doc: Move tmpl/ docs to inline docs
I did this manually so I could review the docs at the same time.
If anyone finds typos or other mistakes I did, please complain to me (or
better: fix them).
2010-07-08 14:27:16 +02:00
Benjamin Otte
65a1e35133 doc: Remove CAIRO_FORMAT_RGB16_565 from hidden symbols list
It's part of the cairo_format_t documentation now.
2010-07-08 13:58:53 +02:00
Benjamin Otte
2a546286da doc: Add a section about regions 2010-07-08 13:58:52 +02:00
Benjamin Otte
ab1f6d1af7 doc: Add missing surface APIs 2010-07-08 13:58:52 +02:00
Benjamin Otte
90bf273a38 doc: Add a section for cairo_device_t 2010-07-08 13:58:52 +02:00
Benjamin Otte
60e4f28d09 doc: Add cairo_in_clip() to cairo_t section 2010-07-08 13:58:52 +02:00
Benjamin Otte
6843186b72 doc: Add cairo_rectangle_int_t to the general types list 2010-07-08 13:58:52 +02:00
Alexander Shulgin
15d9c5fcd8 Added new MIME type CAIRO_MIME_TYPE_URI and it's support in SVG backend
The rationale behind this change is that when someone is trying to
draw on a SVG surface using image surface patterns, the resulting SVG
file can take up to ridiculous 20 megabytes for 3-4 typical
photographic images in a single SVG file.  This also can take
significant amount of CPU time to complete.

The reason for this behaviour is that currently whenever SVG backend
needs to emit an image tag for a surface pattern it takes a snapshot
of the subject surface, encodes it in PNG, then Base64-encodes and
emits the (huge) resulting string.  With use of
cairo_surface_set_mime_data API this can be somewhat improved by
associating JPEG image contents with the corresponding surfaces.
Still this doesn't allow for post-processing of involved photographic
images without regenerating the SVG file.

As SVG specification allows URIs in the image tag's xlink:href
attribute, it is possible instead of embedding encoded image data to
simply link image files residing physically on the same medium as the
generated SVG file: files on disk under common directory, files on a
web server at common base URI, etc.

To make this happen we add new (unofficial) MIME type "text/x-uri" and
let users associate URIs with surfaces through
cairo_surface_set_mime_data() API.  When SVG backend needs to emit
surface contents and it sees "text/x-uri" attached to the surface, it
emits this data instead of taking snapshot.  The URI data is emitted
as is, so correctness check is left solely to the client code.
2010-03-02 10:07:19 +00:00
Benjamin Otte
58980b4ad6 build: Remove glitz surface
glitz is unmaintained and the GL surface is far superior anyway.
2010-01-27 09:56:14 +01:00
Behdad Esfahbod
3ec94f9b59 Support compiling without fontconfig
Adds a new, fake, fontconfig font backend.  Fontconfig can be disabled
using --disable-fc, in which case the toy text API wont find fonts and
the internal font will always be used.

Also defines the feature macro CAIRO_HAS_FC_FONT.  The two fontconfig-specific
functions in cairo-ft.h depend on that macro now.
2009-03-17 00:58:40 -04:00
Adrian Johnson
5ad65dc4be Document PDF restrict_to_version API 2008-12-23 15:04:10 +10:30
Adrian Johnson
1869e0240b Document cairo_surface_(set|get)_mime_data() and mime types 2008-12-23 15:04:06 +10:30
Carl Worth
1d896aa9d8 Actually remove cairo_has_show_text_glyphs
The release notes for 1.7.6 say that we had dropped this
function, but apparently we had only planned to do that
and didn't actually get around to it until now.

Thanks to the RELEASING insctructions which gave a diff
command that pointed out this problem.
2008-09-25 15:56:57 -07:00
Behdad Esfahbod
dc260f1c0b [doc] Remove lcd_filter API from doc listing
Carl removed the API but not the listing in the docs.
The docs tests are passing again now.
2008-09-18 15:35:03 -04:00
Behdad Esfahbod
1fe7088a11 [show_text_glyphs] Replace the bool backward with cairo_text_cluster_flags
Chris rightfully complained that having a boolean function argument is
new in cairo_show_text_glyphs, and indeed avoiding them has been one
of the API design criteria for cairo.  Trying to come up with alternatives,
Owen suggested using a flag type which nicely solves the problem AND
future-proofs such a complex API.

Please welcome _flags_t APIs to cairo.h
2008-09-18 00:26:07 -04:00
Behdad Esfahbod
391bef58fc Add support for always-builtin features in the build system
Like image surface and user fonts.
2008-09-11 00:38:30 -04:00
Behdad Esfahbod
2553579cc8 [doc] Clean up doc file names 2008-09-02 20:24:00 -04:00
Behdad Esfahbod
89900525fb Move version number to src/cairo-version.h 2008-08-28 17:28:08 -04:00
Behdad Esfahbod
00bc650455 Add new public API cairo_surface_has_show_text_glyphs()
We added cairo_has_show_text_glyphs() before.  Since this is really a
surface property, should have the surface method too.  Like we added
cairo_surface_show_page()...
2008-08-18 14:54:21 -04:00
Behdad Esfahbod
eabe572981 Document all new API
Also validate clusters generated by font backends.
2008-08-08 03:04:38 -04:00
Behdad Esfahbod
7e57892983 Add toy font constructor and getters
New public API:

	cairo_toy_font_face_create()
	cairo_toy_font_face_get_family()
	cairo_toy_font_face_get_slant()
	cairo_toy_font_face_get_weight()
2008-08-08 03:01:14 -04:00
Sylvain Pasche
45ec5e77bb Add symbols for setting the LCD filter type on font options 2008-08-05 16:30:37 -04:00
Behdad Esfahbod
047566fd52 Add cairo_show_text_glyphs API
New public API:

	cairo_text_cluster_t
	cairo_has_show_text_glyphs()
	cairo_show_text_glyphs()

Add accompanying gstate and surface functions, and surface backend methods.
No backends implement them just yet.
2008-06-26 16:20:59 -04:00
Behdad Esfahbod
65cc905c2f [doc] Add stub for user-fonts 2008-05-28 20:54:38 -04:00
Behdad Esfahbod
c914377f35 Add public API cairo_scaled_font_get_scale_matrix() 2008-05-24 20:33:15 -04:00
Behdad Esfahbod
4dd4d96fb1 [cairo-surface] Add cairo_surface_get_fallback_resolution() 2008-05-15 17:20:30 -04:00
Behdad Esfahbod
9f2971440b [doc] Remove cairo-quartz-image-surface from docs
Docs only include stable API.
2008-05-10 01:21:44 +02:00
Vladimir Vukicevic
9a7162cfdf [doc] Add some Quartz/CGFont documentation templates 2008-04-01 13:17:14 -07:00
Carl Worth
8d515344c4 Add cairo-quartz to the manual 2008-02-28 14:35:57 -08:00
Alp Toker
e104fcab1c Introduce cairo_has_current_point()
cairo_has_current_point() can be used to determine whether a current
point is defined. We introduce this new symbol with a boolean return
value to avoid the versioning ambiguity of modifying
cairo_get_current_point(). This way we also don't have to map what
should be a routine operation to an error condition as was previously
proposed.
2008-02-06 01:06:01 -05:00
Behdad Esfahbod
b4c7a0dc6e [doc] Document CAIRO_HAS_* macros. We now finally have real 100% coverage. 2008-01-28 23:27:10 -05:00
Behdad Esfahbod
6a089247a1 [doc] Rename cairo-font.sgml to cairo-font-face.sgml 2008-01-28 22:45:06 -05:00
Behdad Esfahbod
72feed5b54 [doc] Update templates for recently added APIs 2008-01-28 20:16:01 -05:00
Brian Ewins
4177208be6 [cairo] Add cairo_path_extents()
This new function gets the extents of the current path, whether
or not they would be inked by a 'fill'. It differs from
cairo_fill_extents() when the area enclosed by the path is 0.

Includes documentation and updated test.
2008-01-21 12:04:32 -08:00
Adrian Johnson
dae1b352c6 update cairo-sections.txt 2007-10-21 23:42:54 +09:30
Adrian Johnson
b5c36010ed Add cairo_ps_surface_restrict_to_level() API 2007-10-13 21:14:28 +09:30
Adrian Johnson
beefbdd638 Add Encapsulated PostScript API 2007-09-23 14:23:33 +09:30
Vladimir Vukicevic
f2910ad3e9 Update cairo-sections.txt 2007-09-11 13:32:26 -07:00
Behdad Esfahbod
52d4e0f319 [doc] Make section title capitalization more consistent 2007-04-18 18:28:43 -04:00
Behdad Esfahbod
d30178b3dc [doc] Add new APIs to cairo-sections.txt 2007-02-27 20:22:05 -05:00