diff options
57 files changed, 446 insertions, 446 deletions
diff --git a/doc/tutorial/src/include/cairo-tutorial-xlib.h b/doc/tutorial/src/include/cairo-tutorial-xlib.h index f5004201..bfb4e9f4 100644 --- a/doc/tutorial/src/include/cairo-tutorial-xlib.h +++ b/doc/tutorial/src/include/cairo-tutorial-xlib.h @@ -1,5 +1,5 @@ /* cairo-tutorial-xlib.h - a tutorial framework for cairo with xlib - * + * * Copyright © 2005, Keith Packard * * This program is free software; you can redistribute it and/or modify diff --git a/pixman/src/fbmmx.c b/pixman/src/fbmmx.c index 1d3f7597..408c22cf 100644 --- a/pixman/src/fbmmx.c +++ b/pixman/src/fbmmx.c @@ -24,7 +24,7 @@ * * Author: Søren Sandmann (sandmann@redhat.com) * Minor Improvements: Nicholas Miell (nmiell@gmail.com) - * MMX code paths for fbcompose.c by Lars Knoll (lars@trolltech.com) + * MMX code paths for fbcompose.c by Lars Knoll (lars@trolltech.com) * * Based on work by Owen Taylor */ @@ -286,14 +286,14 @@ store8888 (__m64 v) /* Expand 16 bits positioned at @pos (0-3) of a mmx register into * * 00RR00GG00BB - * + * * --- Expanding 565 in the low word --- - * + * * m = (m << (32 - 3)) | (m << (16 - 5)) | m; * m = m & (01f0003f001f); * m = m * (008404100840); * m = m >> 8; - * + * * Note the trick here - the top word is shifted by another nibble to * avoid it bumping into the middle word */ diff --git a/pixman/src/fbmmx.h b/pixman/src/fbmmx.h index 5da42a06..1a6a27d2 100644 --- a/pixman/src/fbmmx.h +++ b/pixman/src/fbmmx.h @@ -23,7 +23,7 @@ * * Author: Søren Sandmann (sandmann@redhat.com) * Lars Knoll (lars@trolltech.com) - * + * * Based on work by Owen Taylor */ #ifdef USE_MMX diff --git a/pixman/src/icbltone.c b/pixman/src/icbltone.c index 9f0a3917..022d4982 100644 --- a/pixman/src/icbltone.c +++ b/pixman/src/icbltone.c @@ -37,7 +37,7 @@ * Example: srcX = 0 dstX = 8 (FB unit 32 dstBpp 8) * * **** **** **** **** **** **** **** **** - * ^ + * ^ * ******** ******** ******** ******** * ^ * @@ -190,7 +190,7 @@ fbBltOne (FbStip *src, pixelsPerDst = FB_UNIT / dstBpp; /* - * Number of source stipple patterns in FbStip + * Number of source stipple patterns in FbStip */ unitsPerSrc = FB_STIP_UNIT / pixelsPerDst; @@ -243,8 +243,8 @@ fbBltOne (FbStip *src, #endif /* - * Compute total number of destination words written, but - * don't count endmask + * Compute total number of destination words written, but + * don't count endmask */ nDst = nmiddle; if (startmask) @@ -633,7 +633,7 @@ fbBltOne24 (FbStip *srcLine, while (nl--) { mask = fbStipple24Bits[rot>>3][stip]; - *dst = FbOpaqueStipple (mask, + *dst = FbOpaqueStipple (mask, FbRot24(fgxor, rot), FbRot24(bgxor, rot)); dst++; diff --git a/pixman/src/iccolor.c b/pixman/src/iccolor.c index e3e2a30b..716382f4 100644 --- a/pixman/src/iccolor.c +++ b/pixman/src/iccolor.c @@ -15,7 +15,7 @@ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION - * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * Author: Keith Packard, SuSE, Inc. diff --git a/pixman/src/icformat.c b/pixman/src/icformat.c index 7837aeaf..033b65a8 100644 --- a/pixman/src/icformat.c +++ b/pixman/src/icformat.c @@ -15,7 +15,7 @@ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION - * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * Author: Keith Packard, SuSE, Inc. diff --git a/pixman/src/icimage.c b/pixman/src/icimage.c index f4fd516d..ce03a973 100644 --- a/pixman/src/icimage.c +++ b/pixman/src/icimage.c @@ -15,7 +15,7 @@ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION - * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * Author: Keith Packard, SuSE, Inc. @@ -304,7 +304,7 @@ pixman_image_init (pixman_image_t *image) image->subWindowMode = ClipByChildren; image->polyEdge = PolyEdgeSharp; image->polyMode = PolyModePrecise; - /* + /* * In the server this was 0 because the composite clip list * can be referenced from a window (and often is) */ diff --git a/pixman/src/icint.h b/pixman/src/icint.h index f65e26fc..d45f6328 100644 --- a/pixman/src/icint.h +++ b/pixman/src/icint.h @@ -966,7 +966,7 @@ typedef struct _PictFormat *PictFormatPtr; #define PICT_g1 PICT_FORMAT(1,PICT_TYPE_GRAY,0,0,0,0) /* - * For dynamic indexed visuals (GrayScale and PseudoColor), these control the + * For dynamic indexed visuals (GrayScale and PseudoColor), these control the * selection of colors allocated for drawing to Pictures. The default * policy depends on the size of the colormap: * @@ -997,7 +997,7 @@ typedef struct _PictFormat *PictFormatPtr; * 4x4x4 cube allocates another two and nine more are allocated to fill * in the 13 levels. When the 4x4x4 cube is not allocated, a total of * 11 cells are allocated. - */ + */ #define PictureCmapPolicyInvalid -1 #define PictureCmapPolicyDefault 0 @@ -1037,8 +1037,8 @@ typedef uint32_t xFixed_1_16; typedef int32_t xFixed_16_16; /* - * An unadorned "xFixed" is the same as xFixed_16_16, - * (since it's quite common in the code) + * An unadorned "xFixed" is the same as xFixed_16_16, + * (since it's quite common in the code) */ typedef xFixed_16_16 xFixed; #define XFIXED_BITS 16 diff --git a/pixman/src/icrop.h b/pixman/src/icrop.h index d65b5c4a..4e6ac82d 100644 --- a/pixman/src/icrop.h +++ b/pixman/src/icrop.h @@ -94,7 +94,7 @@ extern const FbMergeRopRec FbMergeRopBits[16] pixman_private; #define fbAndStip(rop,fg,pm) fbAndT(rop,fg,pm,FbStip) /* - * Stippling operations; + * Stippling operations; */ /* half of table */ diff --git a/pixman/src/ictransform.c b/pixman/src/ictransform.c index 982f9293..6e821610 100644 --- a/pixman/src/ictransform.c +++ b/pixman/src/ictransform.c @@ -15,7 +15,7 @@ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION - * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * Author: Keith Packard, SuSE, Inc. diff --git a/pixman/src/pixregion.c b/pixman/src/pixregion.c index bb2eb4fe..9ecd04a8 100644 --- a/pixman/src/pixregion.c +++ b/pixman/src/pixregion.c @@ -109,9 +109,9 @@ slim_hidden_proto(pixman_region_union) * there is no separate list of band start pointers. * * The y-x band representation does not minimize rectangles. In particular, - * if a rectangle vertically crosses a band (the rectangle has scanlines in + * if a rectangle vertically crosses a band (the rectangle has scanlines in * the y1 to y2 area spanned by the band), then the rectangle may be broken - * down into two or more smaller rectangles stacked one atop the other. + * down into two or more smaller rectangles stacked one atop the other. * * ----------- ----------- * | | | | band 0 @@ -137,7 +137,7 @@ slim_hidden_proto(pixman_region_union) * pixman_region_validateTree. Bob Scheifler changed the representation to be more * compact when empty or a single rectangle, and did a bunch of gratuitous * reformatting. Carl Worth did further gratuitous reformatting while re-merging - * the server and client region code into libpixregion. + * the server and client region code into libpixregion. */ /* true iff two Boxes overlap */ @@ -1249,7 +1249,7 @@ slim_hidden_def(pixman_region_union); /*- *----------------------------------------------------------------------- * pixman_region_append -- - * + * * "Append" the rgn rectangles onto the end of dstrgn, maintaining * knowledge of YX-banding when it's easy. Otherwise, dstrgn just * becomes a non-y-x-banded random collection of rectangles, and not @@ -1420,7 +1420,7 @@ QuickSortRects( /*- *----------------------------------------------------------------------- * pixman_region_validate -- - * + * * Take a ``region'' which is a non-y-x-banded random collection of * rectangles, and compute a nice region which is the union of all the * rectangles. @@ -2421,7 +2421,7 @@ pixman_region16_clip_spans( if (!prgnDst->data) { /* Do special fast code with clip boundaries in registers(?) */ - /* It doesn't pay much to make use of fSorted in this case, + /* It doesn't pay much to make use of fSorted in this case, so we lump everything together. */ int clipx1, clipx2, clipy1, clipy2; diff --git a/pixman/src/slim_internal.h b/pixman/src/slim_internal.h index 5c1e5cf8..24b947a3 100644 --- a/pixman/src/slim_internal.h +++ b/pixman/src/slim_internal.h @@ -12,7 +12,7 @@ * Richard Henderson makes no representations about the suitability of this * software for any purpose. It is provided "as is" without express * or implied warranty. - * + * * RICHARD HENDERSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN * NO EVENT SHALL RICHARD HENDERSON BE LIABLE FOR ANY SPECIAL, INDIRECT OR diff --git a/src/cairo-arc.c b/src/cairo-arc.c index e65e381b..fdef6a32 100644 --- a/src/cairo-arc.c +++ b/src/cairo-arc.c @@ -238,7 +238,7 @@ _cairo_arc_in_direction (cairo_t *cr, * @radius: the radius of the arc * @angle1: the start angle, in radians * @angle2: the end angle, in radians - * + * * Compute a path for the given arc and append it onto the current * path within @cr. The arc will be accurate within the current * tolerance and given the current transformation. @@ -267,7 +267,7 @@ _cairo_arc_path (cairo_t *cr, * @ctm: the current transformation matrix * @tolerance: the current tolerance value * @path: the path onto which th earc will be appended - * + * * Compute a path for the given arc (defined in the negative * direction) and append it onto the current path within @cr. The arc * will be accurate within the current tolerance and given the current diff --git a/src/cairo-array.c b/src/cairo-array.c index 7252101b..49d764c1 100644 --- a/src/cairo-array.c +++ b/src/cairo-array.c @@ -39,7 +39,7 @@ /** * _cairo_array_init: - * + * * Initialize a new cairo_array object to store objects each of size * @element_size. * @@ -66,7 +66,7 @@ _cairo_array_init (cairo_array_t *array, int element_size) * _cairo_array_init_snapshot: * @array: A #cairo_array_t to be initialized as a snapshot * @other: The #cairo_array_t from which to create the snapshot - * + * * Initialize @array as an immutable copy of @other. It is an error to * call an array-modifying function (other than _cairo_array_fini) on * @array after calling this function. @@ -104,7 +104,7 @@ _cairo_array_fini (cairo_array_t *array) /** * _cairo_array_grow_by: - * + * * Increase the size of @array (if needed) so that there are at least * @additional free spaces in the array. The actual size of the array * is always increased by doubling as many times as necessary. @@ -153,7 +153,7 @@ _cairo_array_grow_by (cairo_array_t *array, int additional) /** * _cairo_array_truncate: - * + * * Truncate size of the array to @num_elements if less than the * current size. No memory is actually freed. The stored objects * beyond @num_elements are simply "forgotten". @@ -169,7 +169,7 @@ _cairo_array_truncate (cairo_array_t *array, int num_elements) /** * _cairo_array_index: - * + * * Return value: A pointer to object stored at @index. If the * resulting value is assigned to a pointer to an object of the same * element_size as initially passed to _cairo_array_init() then that @@ -210,7 +210,7 @@ _cairo_array_index (cairo_array_t *array, int index) /** * _cairo_array_copy_element: - * + * * Copy a single element out of the array from index @index into the * location pointed to by @dst. **/ @@ -222,7 +222,7 @@ _cairo_array_copy_element (cairo_array_t *array, int index, void *dst) /** * _cairo_array_append: - * + * * Append a single item onto the array by growing the array by at * least one element, then copying element_size bytes from @element * into the array. The address of the resulting object within the @@ -245,7 +245,7 @@ _cairo_array_append (cairo_array_t *array, /** * _cairo_array_append: - * + * * Append one or more items onto the array by growing the array by * @num_elements, then copying @num_elements * element_size bytes from * @elements into the array. @@ -275,12 +275,12 @@ _cairo_array_append_multiple (cairo_array_t *array, /** * _cairo_array_allocate: - * + * * Allocate space at the end of the array for @num_elements additional * elements, providing the address of the new memory chunk in * @elements. This memory will be unitialized, but will be accounted * for in the return value of _cairo_array_num_elements(). - * + * * Return value: CAIRO_STATUS_SUCCESS if successful or * CAIRO_STATUS_NO_MEMORY if insufficient memory is available for the * operation. @@ -309,7 +309,7 @@ _cairo_array_allocate (cairo_array_t *array, /** * _cairo_array_num_elements: - * + * * Return value: The number of elements stored in @array. **/ int @@ -329,7 +329,7 @@ typedef struct { /** * _cairo_user_data_array_init: * @array: a #cairo_user_data_array_t - * + * * Initializes a #cairo_user_data_array_t structure for future * use. After initialization, the array has no keys. Call * _cairo_user_data_array_fini() to free any allocated memory @@ -344,7 +344,7 @@ _cairo_user_data_array_init (cairo_user_data_array_t *array) /** * _cairo_user_data_array_fini: * @array: a #cairo_user_data_array_t - * + * * Destroys all current keys in the user data array and deallocates * any memory allocated for the array itself. **/ @@ -369,11 +369,11 @@ _cairo_user_data_array_fini (cairo_user_data_array_t *array) * @array: a #cairo_user_data_array_t * @key: the address of the #cairo_user_data_key_t the user data was * attached to - * + * * Returns user data previously attached using the specified * key. If no user data has been attached with the given key this * function returns %NULL. - * + * * Return value: the user data previously attached or %NULL. **/ void * @@ -406,7 +406,7 @@ _cairo_user_data_array_get_data (cairo_user_data_array_t *array, * @destroy: a #cairo_destroy_func_t which will be called when the * user data array is destroyed or when new user data is attached using the * same key. - * + * * Attaches user data to a user data array. To remove user data, * call this function with the key that was used to set it and %NULL * for @data. diff --git a/src/cairo-base85-stream.c b/src/cairo-base85-stream.c index 43401e68..42d732b2 100644 --- a/src/cairo-base85-stream.c +++ b/src/cairo-base85-stream.c @@ -1,5 +1,5 @@ /* cairo_output_stream.c: Output stream abstraction - * + * * Copyright © 2005 Red Hat, Inc * * This library is free software; you can redistribute it and/or diff --git a/src/cairo-cache.c b/src/cairo-cache.c index 1bd850fd..3a7d5bee 100644 --- a/src/cairo-cache.c +++ b/src/cairo-cache.c @@ -104,7 +104,7 @@ _cairo_cache_fini (cairo_cache_t *cache) * @keys_equal: a function to return %TRUE if two keys are equal * @entry_destroy: destroy notifier for cache entries * @max_size: the maximum size for this cache - * + * * Creates a new cache using the keys_equal() function to determine * the equality of entries. * @@ -131,8 +131,8 @@ _cairo_cache_fini (cairo_cache_t *cache) * _cairo_cache_freeze() and _cairo_cache_thaw() calls can be * used to establish a window during which no automatic removal of * entries will occur. - * - * Return value: + * + * Return value: **/ cairo_cache_t * _cairo_cache_create (cairo_cache_keys_equal_func_t keys_equal, @@ -158,7 +158,7 @@ _cairo_cache_create (cairo_cache_keys_equal_func_t keys_equal, /** * _cairo_cache_destroy: * @cache: a cache to destroy - * + * * Immediately destroys the given cache, freeing all resources * associated with it. As part of this process, the entry_destroy() * function, (as passed to _cairo_cache_create()), will be called for @@ -176,7 +176,7 @@ _cairo_cache_destroy (cairo_cache_t *cache) * _cairo_cache_freeze: * @cache: a cache with some precious entries in it (or about to be * added) - * + * * Disable the automatic ejection of entries from the cache. For as * long as the cache is "frozen", calls to _cairo_cache_insert() will * add new entries to the cache regardless of how large the cache @@ -198,7 +198,7 @@ _cairo_cache_freeze (cairo_cache_t *cache) * _cairo_cache_thaw: * @cache: a cache, just after the entries in it have become less * precious - * + * * Cancels the effects of _cairo_cache_freeze(). * * When a number of calls to _cairo_cache_thaw() is made corresponding @@ -224,11 +224,11 @@ _cairo_cache_thaw (cairo_cache_t *cache) * @cache: a cache * @key: the key of interest * @entry_return: pointer for return value - * + * * Performs a lookup in @cache looking for an entry which has a key * that matches @key, (as determined by the keys_equal() function * passed to _cairo_cache_create()). - * + * * Return value: %TRUE if there is an entry in the cache that matches * @key, (which will now be in *entry_return). %FALSE otherwise, (in * which case *entry_return will be %NULL). @@ -246,9 +246,9 @@ _cairo_cache_lookup (cairo_cache_t *cache, /** * _cairo_cache_remove_random: * @cache: a cache - * + * * Remove a random entry from the cache. - * + * * Return value: CAIRO_STATUS_SUCCESS if an entry was successfully * removed. CAIRO_INT_STATUS_CACHE_EMPTY if there are no entries that * can be removed. @@ -271,7 +271,7 @@ _cairo_cache_remove_random (cairo_cache_t *cache) * _cairo_cache_shrink_to_accomodate: * @cache: a cache * @additional: additional size requested in bytes - * + * * If cache is not frozen, eject entries randomly until the size of * the cache is at least @additional bytes less than * cache->max_size. That is, make enough room to accomodate a new @@ -300,11 +300,11 @@ _cairo_cache_shrink_to_accomodate (cairo_cache_t *cache, * _cairo_cache_insert: * @cache: a cache * @entry: an entry to be inserted - * + * * Insert @entry into the cache. If an entry exists in the cache with * a matching key, then the old entry will be removed first, (and the * entry_destroy() callback will be called on it). - * + * * Return value: CAIRO_STATUS_SUCCESS if successful or * CAIRO_STATUS_NO_MEMORY if insufficient memory is available. **/ @@ -330,7 +330,7 @@ _cairo_cache_insert (cairo_cache_t *cache, * _cairo_cache_remove: * @cache: a cache * @entry: an entry that exists in the cache - * + * * Remove an existing entry from the cache. * * (NOTE: If any caller wanted access to a non-static version of this @@ -356,7 +356,7 @@ _cairo_cache_remove (cairo_cache_t *cache, * @cache: a cache * @cache_callback: function to be called for each entry * @closure: additional argument to be passed to @cache_callback - * + * * Call @cache_callback for each entry in the cache, in a * non-specified order. **/ diff --git a/src/cairo-clip-private.h b/src/cairo-clip-private.h index 576b6aa0..91d23fba 100644 --- a/src/cairo-clip-private.h +++ b/src/cairo-clip-private.h @@ -51,7 +51,7 @@ struct _cairo_clip { cairo_clip_mode_t mode; /* - * Mask-based clipping for cases where the backend + * Mask-based clipping for cases where the backend * clipping isn't sufficiently able. * * The rectangle here represents the diff --git a/src/cairo-debug.c b/src/cairo-debug.c index 6d32b418..cd0de787 100644 --- a/src/cairo-debug.c +++ b/src/cairo-debug.c @@ -37,7 +37,7 @@ /** * cairo_debug_reset_static_data: - * + * * Resets all static data within cairo to its original state, * (ie. identical to the state at the time of program invocation). For * example, all caches within cairo will be flushed empty. diff --git a/src/cairo-font-options.c b/src/cairo-font-options.c index 91d7a4db..5ffae468 100644 --- a/src/cairo-font-options.c +++ b/src/cairo-font-options.c @@ -46,7 +46,7 @@ static const cairo_font_options_t cairo_font_options_nil = { /** * _cairo_font_options_init_default: * @options: a #cairo_font_options_t - * + * * Initializes all fileds of the font options object to default values. **/ void @@ -76,7 +76,7 @@ _cairo_font_options_init_copy (cairo_font_options_t *options, * * Allocates a new font options object with all options initialized * to default values. - * + * * Return value: a newly allocated #cairo_font_options_t. Free with * cairo_font_options_destroy(). This function always returns a * valid pointer; if memory cannot be allocated, then a special @@ -102,7 +102,7 @@ cairo_font_options_create (void) * * Allocates a new font options object copying the option values from * @original. - * + * * Return value: a newly allocated #cairo_font_options_t. Free with * cairo_font_options_destroy(). This function always returns a * valid pointer; if memory cannot be allocated, then a special @@ -125,7 +125,7 @@ cairo_font_options_copy (const cairo_font_options_t *original) /** * cairo_font_options_destroy: * @options: a #cairo_font_options_t - * + * * Destroys a #cairo_font_options_t object created with with * cairo_font_options_create() or cairo_font_options_copy(). **/ @@ -141,10 +141,10 @@ cairo_font_options_destroy (cairo_font_options_t *options) /** * cairo_font_options_status: * @options: a #cairo_font_options_t - * + * * Checks whether an error has previously occurred for this * font options object - * + * * Return value: %CAIRO_STATUS_SUCCESS or %CAIRO_STATUS_NO_MEMORY **/ cairo_status_t @@ -160,7 +160,7 @@ cairo_font_options_status (cairo_font_options_t *options) * cairo_font_options_merge: * @options: a #cairo_font_options_t * @other: another #cairo_font_options_t - * + * * Merges non-default options from @other into @options, replacing * existing values. This operation can be thought of as somewhat * similar to compositing @other onto @options with the operation @@ -187,9 +187,9 @@ cairo_font_options_merge (cairo_font_options_t *options, * cairo_font_options_equal: * @options: a #cairo_font_options_t * @other: another #cairo_font_options_t - * + * * Compares two font options objects for equality. - * + * * Return value: %TRUE if all fields of the two font options objects match **/ cairo_bool_t @@ -205,11 +205,11 @@ cairo_font_options_equal (const cairo_font_options_t *options, /** * cairo_font_options_hash: * @options: a #cairo_font_options_t - * + * * Compute a hash for the font options object; this value will * be useful when storing an object containing a cairo_font_options_t * in a hash table. - * + * * Return value: the hash value for the font options object. * The return value can be cast to a 32-bit type if a * 32-bit hash value is needed. @@ -227,7 +227,7 @@ cairo_font_options_hash (const cairo_font_options_t *options) * cairo_font_options_set_antialias: * @options: a #cairo_font_options_t * @antialias: the new antialiasing mode - * + * * Sets the antiliasing mode for the font options object. This * specifies the type of antialiasing to do when rendering text. **/ @@ -244,9 +244,9 @@ cairo_font_options_set_antialias (cairo_font_options_t *options, /** * cairo_font_options_get_antialias: * @options: a #cairo_font_options_t - * + * * Gets the antialising mode for the font options object. - * + * * Return value: the antialiasing mode **/ cairo_antialias_t @@ -259,7 +259,7 @@ cairo_font_options_get_antialias (const cairo_font_options_t *options) * cairo_font_options_set_subpixel_order: * @options: a #cairo_font_options_t * @subpixel_order: the new subpixel order - * + * * Sets the subpixel order for the font options object. The subpixel * order specifies the order of color elements within each pixel on * the display device when rendering with an antialiasing mode of @@ -279,10 +279,10 @@ cairo_font_options_set_subpixel_order (cairo_font_options_t *options, /** * cairo_font_options_get_subpixel_order: * @options: a #cairo_font_options_t - * + * * Gets the subpixel order for the font options object. * See the documentation for #cairo_subpixel_order_t for full details. - * + * * Return value: the subpixel order for the font options object **/ cairo_subpixel_order_t @@ -295,7 +295,7 @@ cairo_font_options_get_subpixel_order (const cairo_font_options_t *options) * cairo_font_options_set_hint_style: * @options: a #cairo_font_options_t * @hint_style: the new hint style - * + * * Sets the hint style for font outlines for the font options object. * This controls whether to fit font outlines to the pixel grid, * and if so, whether to optimize for fidelity or contrast. @@ -314,10 +314,10 @@ cairo_font_options_set_hint_style (cairo_font_options_t *options, /** * cairo_font_options_get_hint_style: * @options: a #cairo_font_options_t - * + * * Gets the hint style for font outlines for the font options object. * See the documentation for #cairo_hint_style_t for full details. - * + * * Return value: the hint style for the font options object **/ cairo_hint_style_t @@ -330,7 +330,7 @@ cairo_font_options_get_hint_style (const cairo_font_options_t *options) * cairo_font_options_set_hint_metrics: * @options: a #cairo_font_options_t * @hint_metrics: the new metrics hinting mode - * + * * Sets the metrics hinting mode for the font options object. This * controls whether metrics are quantized to integer values in * device units. @@ -349,10 +349,10 @@ cairo_font_options_set_hint_metrics (cairo_font_options_t *options, /** * cairo_font_options_get_hint_metrics: * @options: a #cairo_font_options_t - * + * * Gets the metrics hinting mode for the font options object. * See the documentation for #cairo_hint_metrics_t for full details. - * + * * Return value: the metrics hinting mode for the font options object **/ cairo_hint_metrics_t diff --git a/src/cairo-font.c b/src/cairo-font.c index 40020a09..f3b1c9d6 100644 --- a/src/cairo-font.c +++ b/src/cairo-font.c @@ -69,7 +69,7 @@ _cairo_font_face_init (cairo_font_face_t *font_face, * cairo_font_face_reference: * @font_face: a #cairo_font_face_t, (may be NULL in which case this * function does nothing). - * + * * Increases the reference count on @font_face by one. This prevents * @font_face from being destroyed until a matching call to * cairo_font_face_destroy() is made. @@ -97,7 +97,7 @@ cairo_font_face_reference (cairo_font_face_t *font_face) /** * cairo_font_face_destroy: * @font_face: a #cairo_font_face_t - * + * * Decreases the reference count on @font_face by one. If the result * is zero, then @font_face and all associated resources are freed. * See cairo_font_face_reference(). @@ -133,7 +133,7 @@ cairo_font_face_destroy (cairo_font_face_t *font_face) /** * cairo_font_face_get_type: * @font_face: a #cairo_font_face_t - * + * * Return value: The type of @font_face. See #cairo_font_type_t. **/ cairo_font_type_t @@ -145,10 +145,10 @@ cairo_font_face_get_type (cairo_font_face_t *font_face) /** * cairo_font_face_status: * @font_face: a #cairo_font_face_t - * + * * Checks whether an error has previously occurred for this * font face - * + * * Return value: %CAIRO_STATUS_SUCCESS or another error such as * %CAIRO_STATUS_NO_MEMORY. **/ @@ -163,11 +163,11 @@ cairo_font_face_status (cairo_font_face_t *font_face) * @font_face: a #cairo_font_face_t * @key: the address of the #cairo_user_data_key_t the user data was * attached to - * + * * Return user data previously attached to @font_face using the specified * key. If no user data has been attached with the given key this * function returns %NULL. - * + * * Return value: the user data previously attached or %NULL. **/ void * @@ -186,7 +186,7 @@ cairo_font_face_get_user_data (cairo_font_face_t *font_face, * @destroy: a #cairo_destroy_func_t which will be called when the * font face is destroyed or when new user data is attached using the * same key. - * + * * Attach user data to @font_face. To remove user data from a font face, * call this function with the key that was used to set it and %NULL * for @data. @@ -252,7 +252,7 @@ _cairo_toy_font_face_hash_table_unlock (void) /** * _cairo_toy_font_face_init_key: - * + * * Initialize those portions of cairo_toy_font_face_t needed to use * it as a hash table key, including the hash code buried away in * font_face->base.hash_entry. No memory allocation is performed here @@ -328,11 +328,11 @@ _cairo_toy_font_face_keys_equal (const void *key_a, * @family: a font family name, encoded in UTF-8 * @slant: the slant for the font * @weight: the weight for the font - * + * * Creates a font face from a triplet of family, slant, and weight. * These font faces are used in implementation of the the #cairo_t "toy" * font API. - * + * * Return value: a newly created #cairo_font_face_t, destroy with * cairo_font_face_destroy() **/ diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c index 2a06eebb..4bc8aecf 100644 --- a/src/cairo-ft-font.c +++ b/src/cairo-ft-font.c @@ -71,7 +71,7 @@ typedef struct _cairo_ft_font_transform { double shape[2][2]; } cairo_ft_font_transform_t; -/* +/* * We create an object that corresponds to a single font on the disk; * (identified by a filename/id pair) these are shared between all * fonts using that file. For cairo_ft_font_face_create_for_ft_face(), we @@ -282,7 +282,7 @@ _cairo_ft_unscaled_font_init_key (cairo_ft_unscaled_font_t *key, /** * _cairo_ft_unscaled_font_init: - * + * * Initialize a cairo_ft_unscaled_font_t. * * There are two basic flavors of cairo_ft_unscaled_font_t, one @@ -344,7 +344,7 @@ _cairo_unscaled_font_is_ft (cairo_unscaled_font_t *unscaled_font) /** * _cairo_ft_unscaled_font_fini: - * + * * Free all data associated with a cairo_ft_unscaled_font_t. * * CAUTION: The unscaled->face field must be NULL before calling this @@ -898,7 +898,7 @@ _get_bitmap_surface (FT_Bitmap *bitmap, } /* Converts an outline FT_GlyphSlot into an image - * + * * This could go through _render_glyph_bitmap as well, letting * FreeType convert the outline to a bitmap, but doing it ourselves * has two minor advantages: first, we save a copy of the bitmap @@ -1033,7 +1033,7 @@ _render_glyph_outline (FT_Face face, } /* Converts a bitmap (or other) FT_GlyphSlot into an image - * + * * This could go through _render_glyph_bitmap as well, letting * FreeType convert the outline to a bitmap, but doing it ourselves * has two minor advantages: first, we save a copy of the bitmap @@ -2068,7 +2068,7 @@ _cairo_ft_font_face_create (cairo_ft_unscaled_font_t *unscaled, * cairo_ft_font_options_substitute: * @options: a #cairo_font_options_t object * @pattern: an existing #FcPattern - * + * * Add options to a #FcPattern based on a #cairo_font_options_t font * options object. Options that are already in the pattern, are not overriden, * so you should call this function after calling FcConfigSubstitute() (the @@ -2160,7 +2160,7 @@ cairo_ft_font_options_substitute (const cairo_font_options_t *options, * pattern, so you should not further modify the pattern, but you can * release your reference to the pattern with FcPatternDestroy() if * you no longer need to access it. - * + * * Creates a new font face for the FreeType font backend based on a * fontconfig pattern. This font can then be used with * cairo_set_font_face() or cairo_scaled_font_create(). The @@ -2216,14 +2216,14 @@ cairo_ft_font_face_create_for_pattern (FcPattern *pattern) * as %FT_LOAD_VERTICAL_LAYOUT, and %FT_LOAD_FORCE_AUTOHINT * are useful. You should not pass any of the flags affecting * the load target, such as %FT_LOAD_TARGET_LIGHT. - * + * * Creates a new font face for the FreeType font backend from a * pre-opened FreeType face. This font can then be used with * cairo_set_font_face() or cairo_scaled_font_create(). The * #cairo_scaled_font_t returned from cairo_scaled_font_create() is * also for the FreeType backend and can be used with functions such * as cairo_ft_font_lock_face(). - * + * * Return value: a newly created #cairo_font_face_t. Free with * cairo_font_face_destroy() when you are done using it. **/ @@ -2261,7 +2261,7 @@ cairo_ft_font_face_create_for_ft_face (FT_Face face, * object can be created by calling cairo_scaled_font_create() on a * FreeType backend font face (see cairo_ft_font_face_create_for_pattern(), * cairo_ft_font_face_create_for_face()). - * + * * cairo_ft_font_lock_face() gets the #FT_Face object from a FreeType * backend font and scales it appropriately for the font. You must * release the face with cairo_ft_font_unlock_face() @@ -2311,7 +2311,7 @@ cairo_ft_scaled_font_lock_face (cairo_scaled_font_t *abstract_font) * object can be created by calling cairo_scaled_font_create() on a * FreeType backend font face (see cairo_ft_font_face_create_for_pattern(), * cairo_ft_font_face_create_for_ft_face()). - * + * * Releases a face obtained with cairo_ft_scaled_font_lock_face(). **/ void diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c index 68af94fd..8095f3b7 100644 --- a/src/cairo-gstate.c +++ b/src/cairo-gstate.c @@ -704,7 +704,7 @@ _cairo_gstate_backend_to_user (cairo_gstate_t *gstate, double *x, double *y) cairo_matrix_transform_point (&gstate->ctm_inverse, x, y); } -/* XXX: NYI +/* XXX: NYI cairo_status_t _cairo_gstate_stroke_to_path (cairo_gstate_t *gstate) { @@ -787,7 +787,7 @@ _cairo_gstate_paint (cairo_gstate_t *gstate) /** * _cairo_operator_bounded_by_mask: * @op: a #cairo_operator_t - * + * * A bounded operator is one where mask pixel * of zero results in no effect on the destination image. * @@ -826,7 +826,7 @@ _cairo_operator_bounded_by_mask (cairo_operator_t op) /** * _cairo_operator_bounded_by_source: * @op: a #cairo_operator_t - * + * * A bounded operator is one where source pixels of zero * (in all four components, r, g, b and a) effect no change * in the resulting destination image. @@ -1219,7 +1219,7 @@ _cairo_gstate_get_font_face (cairo_gstate_t *gstate, return CAIRO_STATUS_SUCCESS; } -/* +/* * Like everything else in this file, fonts involve Too Many Coordinate Spaces; * it is easy to get confused about what's going on. * @@ -1236,7 +1236,7 @@ _cairo_gstate_get_font_face (cairo_gstate_t *gstate, * Metrics are returned in user space, whether they are obtained from * the currently selected font in a #cairo_t or from a #cairo_scaled_font_t * which is a font specialized to a particular scale matrix, CTM, and target - * surface. + * surface. * * The font's view * --------------- @@ -1270,9 +1270,9 @@ _cairo_gstate_get_font_face (cairo_gstate_t *gstate, * around. * * In order to perform any action on a font, we must build an object - * called a cairo_font_scale_t; this contains the central 2x2 matrix + * called a cairo_font_scale_t; this contains the central 2x2 matrix * resulting from "font matrix * CTM". - * + * * We pass this to the font when making requests of it, which causes it to * reply for a particular [user request, device] combination, under the CTM * (to accomodate the "zoom in" == "bigger fonts" issue above). diff --git a/src/cairo-hash.c b/src/cairo-hash.c index 72b20b12..e6494120 100644 --- a/src/cairo-hash.c +++ b/src/cairo-hash.c @@ -47,7 +47,7 @@ * DEAD: Entry had been live in the past. A dead entry can be reused * but does not terminate a search for an exact entry. * Appears in the table as a pointer to DEAD_ENTRY. - * + * * LIVE: Entry is currently being used. * Appears in the table as any non-NULL, non-DEAD_ENTRY pointer. */ @@ -130,7 +130,7 @@ struct _cairo_hash_table { /** * _cairo_hash_table_create: * @keys_equal: a function to return TRUE if two keys are equal - * + * * Creates a new hash table which will use the keys_equal() function * to compare hash keys. Data is provided to the hash table in the * form of user-derived versions of cairo_hash_entry_t. A hash entry @@ -140,7 +140,7 @@ struct _cairo_hash_table { * will be necessary, (as in _cairo_hash_table_insert). * * See #cairo_hash_entry_t for more details. - * + * * Return value: the new hash table or NULL if out of memory. **/ cairo_hash_table_t * @@ -172,7 +172,7 @@ _cairo_hash_table_create (cairo_hash_keys_equal_func_t keys_equal) /** * _cairo_hash_table_destroy: * @hash_table: an empty hash table to destroy - * + * * Immediately destroys the given hash table, freeing all resources * associated with it. * @@ -212,7 +212,7 @@ _cairo_hash_table_destroy (cairo_hash_table_t *hash_table) * @key_unique: If TRUE, then caller asserts that no key already * exists that will compare equal to #key, so search can be * optimized. If unsure, set to FALSE and the code will always work. - * + * * Search the hashtable for a live entry for which * hash_table->keys_equal returns true. If no such entry exists then * return the first available (free or dead entry). @@ -275,7 +275,7 @@ _cairo_hash_table_lookup_internal (cairo_hash_table_t *hash_table, idx -= table_size; } - /* + /* * The table should not have permitted you to get here if you were just * looking for a free slot: there should have been room. */ @@ -287,11 +287,11 @@ _cairo_hash_table_lookup_internal (cairo_hash_table_t *hash_table, /** * _cairo_hash_table_resize: * @hash_table: a hash table - * + * * Resize the hash table if the number of entries has gotten much * bigger or smaller than the ideal number of entries for the current * size. - * + * * Return value: CAIRO_STATUS_SUCCESS if successful or * CAIRO_STATUS_NO_MEMORY if out of memory. **/ @@ -353,11 +353,11 @@ _cairo_hash_table_resize (cairo_hash_table_t *hash_table) * @hash_table: a hash table * @key: the key of interest * @entry_return: pointer for return value. - * + * * Performs a lookup in @hash_table looking for an entry which has a * key that matches @key, (as determined by the keys_equal() function * passed to _cairo_hash_table_create). - * + * * Return value: TRUE if there is an entry in the hash table that * matches the given key, (which will now be in *entry_return). FALSE * otherwise, (in which case *entry_return will be NULL). @@ -384,7 +384,7 @@ _cairo_hash_table_lookup (cairo_hash_table_t *hash_table, * _cairo_hash_table_random_entry: * @hash_table: a hash table * @predicate: a predicate function, or NULL for any entry. - * + * * Find a random entry in the hash table satisfying the given * @predicate. A NULL @predicate is taken as equivalent to a function * which always returns TRUE, (eg. any entry in the table will do). @@ -442,7 +442,7 @@ _cairo_hash_table_random_entry (cairo_hash_table_t *hash_table, * _cairo_hash_table_insert: * @hash_table: a hash table * @key_and_value: an entry to be inserted - * + * * Insert the entry #key_and_value into the hash table. * * WARNING: It is a fatal error if an entry exists in the hash table @@ -454,7 +454,7 @@ _cairo_hash_table_random_entry (cairo_hash_table_t *hash_table, * Instead of using insert to replace an entry, consider just editing * the entry obtained with _cairo_hash_table_lookup. Or if absolutely * necessary, use _cairo_hash_table_remove first. - * + * * Return value: CAIRO_STATUS_SUCCESS if successful or * CAIRO_STATUS_NO_MEMORY if insufficient memory is available. **/ @@ -491,7 +491,7 @@ _cairo_hash_table_insert (cairo_hash_table_t *hash_table, * _cairo_hash_table_remove: * @hash_table: a hash table * @key: key of entry to be removed - * + * * Remove an entry from the hash table which has a key that matches * @key, if any (as determined by the keys_equal() function passed to * _cairo_hash_table_create). @@ -529,7 +529,7 @@ _cairo_hash_table_remove (cairo_hash_table_t *hash_table, * @hash_table: a hash table * @hash_callback: function to be called for each live entry * @closure: additional argument to be passed to @hash_callback - * + * * Call @hash_callback for each live entry in the hash table, in a * non-specified order. * diff --git a/src/cairo-hull.c b/src/cairo-hull.c index 7fff0a0c..e9d0a155 100644 --- a/src/cairo-hull.c +++ b/src/cairo-hull.c @@ -105,7 +105,7 @@ _cairo_hull_vertex_compare (const void *av, const void *bv) /* * Use the point's ids to ensure a total ordering. * a well-defined ordering, and avoid setting discard on - * both points. + * both points. */ if (a_dist < b_dist || (a_dist == b_dist && a->id < b->id)) { a->discard = 1; diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c index 82a2227c..75f92342 100644 --- a/src/cairo-image-surface.c +++ b/src/cairo-image-surface.c @@ -184,10 +184,10 @@ _create_pixman_format (cairo_format_t format) /** * cairo_image_surface_create: - * @format: format of pixels in the surface to create + * @format: format of pixels in the surface to create * @width: width of the surface, in pixels * @height: height of the surface, in pixels - * + * * Creates an image surface of the specified format and * dimensions. Initially the surface contents are all * 0. (Specifically, within each pixel, each color or alpha channel @@ -257,7 +257,7 @@ _cairo_image_surface_create_with_content (cairo_content_t content, * in the buffer. Having this be specified separate from @width * allows for padding at the end of rows, or for writing * to a subportion of a larger image. - * + * * Creates an image surface for the provided pixel data. The output * buffer must be kept around until the #cairo_surface_t is destroyed * or cairo_surface_finish() is called on the surface. The initial @@ -331,10 +331,10 @@ _cairo_image_surface_create_for_data_with_content (unsigned char *data, /** * cairo_image_surface_get_data: * @surface: a #cairo_image_surface_t - * + * * Get a pointer to the data of the image surface, for direct * inspection or modification. - * + * * Return value: a pointer to the image data of this surface or NULL * if @surface is not an image surface. **/ @@ -354,9 +354,9 @@ cairo_image_surface_get_data (cairo_surface_t *surface) /** * cairo_image_surface_get_format: * @surface: a #cairo_image_surface_t - * + * * Get the format of the surface. - * + * * Return value: the format of the surface **/ cairo_format_t @@ -375,9 +375,9 @@ cairo_image_surface_get_format (cairo_surface_t *surface) /** * cairo_image_surface_get_width: * @surface: a #cairo_image_surface_t - * + * * Get the width of the image surface in pixels. - * + * * Return value: the width of the surface in pixels. **/ int @@ -396,9 +396,9 @@ cairo_image_surface_get_width (cairo_surface_t *surface) /** * cairo_image_surface_get_height: * @surface: a #cairo_image_surface_t - * + * * Get the height of the image surface in pixels. - * + * * Return value: the height of the surface in pixels. **/ int @@ -417,9 +417,9 @@ cairo_image_surface_get_height (cairo_surface_t *surface) /** * cairo_image_surface_get_stride: * @surface: a #cairo_image_surface_t - * + * * Get the stride of the image surface in bytes - * + * * Return value: the stride of the image surface in bytes (or 0 if * @surface is not an image surface). The stride is the distance in * bytes from the beginning of one row of the image data to the @@ -965,9 +965,9 @@ _cairo_image_surface_get_extents (void *abstract_surface, /** * _cairo_surface_is_image: * @surface: a #cairo_surface_t - * + * * Checks if a surface is an #cairo_image_surface_t - * + * * Return value: TRUE if the surface is an image surface **/ cairo_bool_t diff --git a/src/cairo-matrix.c b/src/cairo-matrix.c index eda62e7c..39b25234 100644 --- a/src/cairo-matrix.c +++ b/src/cairo-matrix.c @@ -48,7 +48,7 @@ _cairo_matrix_compute_adjoint (cairo_matrix_t *matrix); /** * cairo_matrix_init_identity: * @matrix: a #cairo_matrix_t - * + * * Modifies @matrix to be an identity transformation. **/ void @@ -70,7 +70,7 @@ slim_hidden_def(cairo_matrix_init_identity); * @yy: yy component of the affine transformation * @x0: X translation component of the affine transformation * @y0: Y translation component of the affine transformation - * + * * Sets @matrix to be the affine transformation given by * @xx, @yx, @xy, @yy, @x0, @y0. The transformation is given * by: @@ -101,7 +101,7 @@ slim_hidden_def(cairo_matrix_init); * @yy: location to store yy component of matrix * @x0: location to store x0 (X-translation component) of matrix, or %NULL * @y0: location to store y0 (Y-translation component) of matrix, or %NULL - * + * * Gets the matrix values for the affine tranformation that @matrix represents. * See cairo_matrix_init(). * @@ -135,7 +135,7 @@ _cairo_matrix_get_affine (const cairo_matrix_t *matrix, * @matrix: a cairo_matrix_t * @tx: amount to translate in the X direction * @ty: amount to translate in the Y direction - * + * * Initializes @matrix to a transformation that translates by @tx and * @ty in the X and Y dimensions, respectively. **/ @@ -155,7 +155,7 @@ slim_hidden_def(cairo_matrix_init_translate); * @matrix: a cairo_matrix_t * @tx: amount to translate in the X direction * @ty: amount to translate in the Y direction - * + * * Applies a translation by @tx, @ty to the transformation in * @matrix. The effect of the new transformation is to first translate * the coordinates by @tx and @ty, then apply the original transformation @@ -176,7 +176,7 @@ cairo_matrix_translate (cairo_matrix_t *matrix, double tx, double ty) * @matrix: a cairo_matrix_t * @sx: scale factor in the X direction * @sy: scale factor in the Y direction - * + * * Initializes @matrix to a transformation that scales by @sx and @sy * in the X and Y dimensions, respectively. **/ @@ -196,7 +196,7 @@ slim_hidden_def(cairo_matrix_init_scale); * @matrix: a #cairo_matrix_t * @sx: scale factor in the X direction * @sy: scale factor in the Y direction - * + * * Applies scaling by @tx, @ty to the transformation in @matrix. The * effect of the new transformation is to first scale the coordinates * by @sx and @sy, then apply the original transformation to the coordinates. @@ -220,7 +220,7 @@ slim_hidden_def(cairo_matrix_scale); * the positive X axis toward the positive Y axis. With the default * axis orientation of cairo, positive angles rotate in a clockwise * direction. - * + * * Initialized @matrix to a transformation that rotates by @radians. **/ void @@ -248,7 +248,7 @@ slim_hidden_def(cairo_matrix_init_rotate); * the positive X axis toward the positive Y axis. With the default * axis orientation of cairo, positive angles rotate in a clockwise * direction. - * + * * Applies rotation by @radians to the transformation in * @matrix. The effect of the new transformation is to first rotate the * coordinates by @radians, then apply the original transformation @@ -269,7 +269,7 @@ cairo_matrix_rotate (cairo_matrix_t *matrix, double radians) * @result: a @cairo_matrix_t in which to store the result * @a: a @cairo_matrix_t * @b: a @cairo_matrix_t - * + * * Multiplies the affine transformations in @a and @b together * and stores the result in @result. The effect of the resulting * transformation is to first apply the transformation in @a to the @@ -307,7 +307,7 @@ slim_hidden_def(cairo_matrix_multiply); * @matrix: a @cairo_matrix_t * @dx: X component of a distance vector. An in/out parameter * @dy: Y component of a distance vector. An in/out parameter - * + * * Transforms the distance vector (@dx,@dy) by @matrix. This is * similar to cairo_matrix_transform() except that the translation * components of the transformation are ignored. The calculation of @@ -341,7 +341,7 @@ slim_hidden_def(cairo_matrix_transform_distance); * @matrix: a @cairo_matrix_t * @x: X position. An in/out parameter * @y: Y position. An in/out parameter - * + * * Transforms the point (@x, @y) by @matrix. **/ void @@ -443,12 +443,12 @@ _cairo_matrix_compute_adjoint (cairo_matrix_t *matrix) /** * cairo_matrix_invert: * @matrix: a @cairo_matrix_t - * + * * Changes @matrix to be the inverse of it's original value. Not * all transformation matrices have inverses; if the matrix * collapses points together (it is <firstterm>degenerate</firstterm>), * then it has no inverse and this function will fail. - * + * * Returns: If @matrix has an inverse, modifies @matrix to * be the inverse matrix and returns %CAIRO_STATUS_SUCCESS. Otherwise, * returns %CAIRO_STATUS_INVALID_MATRIX. diff --git a/src/cairo-meta-surface.c b/src/cairo-meta-surface.c index 26fc6a67..92fd4488 100644 --- a/src/cairo-meta-surface.c +++ b/src/cairo-meta-surface.c @@ -231,7 +231,7 @@ _cairo_meta_surface_paint (void *abstract_surface, cairo_command_paint_t *command; /* An optimisation that takes care to not replay what was done - * before surface is cleared. We don't erase recorded commands + * before surface is cleared. We don't erase recorded commands * since we may have earlier snapshots of this surface. */ if (op == CAIRO_OPERATOR_CLEAR && !meta->is_clipped) meta->replay_start_idx = meta->commands.num_elements; @@ -560,9 +560,9 @@ _cairo_meta_surface_get_extents (void *abstract_surface, /** * _cairo_surface_is_meta: * @surface: a #cairo_surface_t - * + * * Checks if a surface is a #cairo_meta_surface_t - * + * * Return value: TRUE if the surface is a meta surface **/ cairo_bool_t diff --git a/src/cairo-output-stream.c b/src/cairo-output-stream.c index b27c9430..077de9c2 100644 --- a/src/cairo-output-stream.c +++ b/src/cairo-output-stream.c @@ -1,5 +1,5 @@ /* cairo_output_stream.c: Output stream abstraction - * + * * Copyright © 2005 Red Hat, Inc * * This library is free software; you can redistribute it and/or diff --git a/src/cairo-path-data.c b/src/cairo-path-data.c index cbb23b90..2407e72f 100644 --- a/src/cairo-path-data.c +++ b/src/cairo-path-data.c @@ -369,7 +369,7 @@ _cairo_path_data_create_real (cairo_path_fixed_t *path_fixed, * cairo_path_destroy: * @path: a path previously returned by either cairo_copy_path() or * cairo_copy_path_flat(). - * + * * Immediately releases all memory associated with @path. After a call * to cairo_path_destroy() the @path pointer is no longer valid and * should not be used further. @@ -394,11 +394,11 @@ cairo_path_destroy (cairo_path_t *path) * _cairo_path_data_create: * @path: a fixed-point, device-space path to be converted and copied * @gstate: the current graphics state - * + * * Creates a user-space #cairo_path_t copy of the given device-space * @path. The @gstate parameter provides the inverse CTM for the * conversion. - * + * * Return value: the new copy of the path. If there is insufficient * memory a pointer to a special static cairo_path_nil will be * returned instead with status==CAIRO_STATUS_NO_MEMORY and @@ -415,12 +415,12 @@ _cairo_path_data_create (cairo_path_fixed_t *path, * _cairo_path_data_create_flat: * @path: a fixed-point, device-space path to be flattened, converted and copied * @gstate: the current graphics state - * + * * Creates a flattened, user-space #cairo_path_t copy of the given * device-space @path. The @gstate parameter provide the inverse CTM * for the conversion, as well as the tolerance value to control the * accuracy of the flattening. - * + * * Return value: the flattened copy of the path. If there is insufficient * memory a pointer to a special static cairo_path_nil will be * returned instead with status==CAIRO_STATUS_NO_MEMORY and @@ -437,9 +437,9 @@ _cairo_path_data_create_flat (cairo_path_fixed_t *path, * _cairo_path_data_append_to_context: * @path: the path data to be appended * @cr: a cairo context - * + * * Append @path to the current path within @cr. - * + * * Return value: CAIRO_STATUS_INVALID_PATH_DATA if the data in @path * is invalid, and CAIRO_STATUS_SUCCESS otherwise. **/ diff --git a/src/cairo-path-stroke.c b/src/cairo-path-stroke.c index 80302f02..2f893143 100644 --- a/src/cairo-path-stroke.c +++ b/src/cairo-path-stroke.c @@ -286,7 +286,7 @@ _cairo_stroker_join (cairo_stroker_t *stroker, cairo_stroke_face_t *in, cairo_st * in · out = cos (psi) * * 2 <= ml² (1 - in · out) - * + * */ if (2 <= ml * ml * (1 - in_dot_out)) { double x1, y1, x2, y2; @@ -295,7 +295,7 @@ _cairo_stroker_join (cairo_stroker_t *stroker, cairo_stroke_face_t *in, cairo_st cairo_polygon_t polygon; cairo_point_t outer; - /* + /* * we've got the points already transformed to device * space, but need to do some computation with them and * also need to transform the slope from user space to @@ -507,7 +507,7 @@ _compute_face (cairo_point_t *point, cairo_slope_t *slope, cairo_stroker_t *stro usr_vector.x = line_dx; usr_vector.y = line_dy; - /* + /* * rotate to get a line_width/2 vector along the face, note that * the vector must be rotated the right direction in device space, * but by 90° in user space. So, the rotation depends on diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c index 6e98be1e..f5e468ce 100644 --- a/src/cairo-pattern.c +++ b/src/cairo-pattern.c @@ -86,7 +86,7 @@ _cairo_pattern_nil_for_status (cairo_status_t status) * @pattern: a pattern * @status: a status value indicating an error, (eg. not * CAIRO_STATUS_SUCCESS) - * + * * Sets pattern->status to @status and calls _cairo_error; * * All assignments of an error status to pattern->status should happen @@ -298,12 +298,12 @@ _cairo_pattern_create_solid (const cairo_color_t *color) * @red: red component of the color * @green: green component of the color * @blue: blue component of the color - * + * * Creates a new cairo_pattern_t corresponding to an opaque color. The * color components are floating point numbers in the range 0 to 1. * If the values passed in are outside that range, they will be * clamped. - * + * * Return value: the newly created #cairo_pattern_t if succesful, or * an error pattern in case of no memory. The caller owns the * returned object and should call cairo_pattern_destroy() when @@ -338,12 +338,12 @@ cairo_pattern_create_rgb (double red, double green, double blue) * @green: green component of the color * @blue: blue component of the color * @alpha: alpha component of the color - * + * * Creates a new cairo_pattern_t corresponding to a translucent color. * The color components are floating point numbers in the range 0 to * 1. If the values passed in are outside that range, they will be * clamped. - * + * * Return value: the newly created #cairo_pattern_t if succesful, or * an error pattern in case of no memory. The caller owns the * returned object and should call cairo_pattern_destroy() when @@ -376,10 +376,10 @@ cairo_pattern_create_rgba (double red, double green, double blue, /** * cairo_pattern_create_for_surface: - * @surface: the surface - * + * @surface: the surface + * * Create a new cairo_pattern_t for the given surface. - * + * * Return value: the newly created #cairo_pattern_t if succesful, or * an error pattern in case of no memory. The caller owns the * returned object and should call cairo_pattern_destroy() when @@ -413,11 +413,11 @@ cairo_pattern_create_for_surface (cairo_surface_t *surface) /** * cairo_pattern_create_linear: - * @x0: x coordinate of the start point - * @y0: y coordinate of the start point - * @x1: x coordinate of the end point - * @y1: y coordinate of the end point - * + * @x0: x coordinate of the start point + * @y0: y coordinate of the start point + * @x1: x coordinate of the end point + * @y1: y coordinate of the end point + * * Create a new linear gradient cairo_pattern_t along the line defined * by (x0, y0) and (x1, y1). Before using the gradient pattern, a * number of color stops should be defined using @@ -427,7 +427,7 @@ cairo_pattern_create_for_surface (cairo_surface_t *surface) * Note: The coordinates here are in pattern space. For a new pattern, * pattern space is identical to user space, but the relationship * between the spaces can be changed with cairo_pattern_set_matrix(). - * + * * Return value: the newly created #cairo_pattern_t if succesful, or * an error pattern in case of no memory. The caller owns the * returned object and should call cairo_pattern_destroy() when @@ -461,7 +461,7 @@ cairo_pattern_create_linear (double x0, double y0, double x1, double y1) * @cx1: x coordinate for the center of the end circle * @cy1: y coordinate for the center of the end circle * @radius1: radius of the end cirle - * + * * Creates a new radial gradient cairo_pattern_t between the two * circles defined by (x0, y0, c0) and (x1, y1, c0). Before using the * gradient pattern, a number of color stops should be defined using @@ -471,7 +471,7 @@ cairo_pattern_create_linear (double x0, double y0, double x1, double y1) * Note: The coordinates here are in pattern space. For a new pattern, * pattern space is identical to user space, but the relationship * between the spaces can be changed with cairo_pattern_set_matrix(). - * + * * Return value: the newly created #cairo_pattern_t if succesful, or * an error pattern in case of no memory. The caller owns the * returned object and should call cairo_pattern_destroy() when @@ -501,7 +501,7 @@ cairo_pattern_create_radial (double cx0, double cy0, double radius0, /** * cairo_pattern_reference: * @pattern: a #cairo_pattern_t - * + * * Increases the reference count on @pattern by one. This prevents * @pattern from being destroyed until a matching call to * cairo_pattern_destroy() is made. @@ -527,7 +527,7 @@ cairo_pattern_reference (cairo_pattern_t *pattern) /** * cairo_pattern_get_type: * @pattern: a #cairo_pattern_t - * + * * Return value: The type of @pattern. See #cairo_pattern_type_t. **/ cairo_pattern_type_t @@ -539,10 +539,10 @@ cairo_pattern_get_type (cairo_pattern_t *pattern) /** * cairo_pattern_status: * @pattern: a #cairo_pattern_t - * + * * Checks whether an error has previously occurred for this * pattern. - * + * * Return value: %CAIRO_STATUS_SUCCESS, %CAIRO_STATUS_NO_MEMORY, or * %CAIRO_STATUS_PATTERN_TYPE_MISMATCH. **/ @@ -555,7 +555,7 @@ cairo_pattern_status (cairo_pattern_t *pattern) /** * cairo_pattern_destroy: * @pattern: a #cairo_pattern_t - * + * * Decreases the reference count on @pattern by one. If the result is * zero, then @pattern and all associated resources are freed. See * cairo_pattern_reference(). @@ -630,7 +630,7 @@ _cairo_pattern_add_color_stop (cairo_gradient_pattern_t *pattern, * @red: red component of color * @green: green component of color * @blue: blue component of color - * + * * Adds an opaque color stop to a gradient pattern. The offset * specifies the location along the gradient's control vector. For * example, a linear gradient's control vector is from (x0,y0) to @@ -677,7 +677,7 @@ cairo_pattern_add_color_stop_rgb (cairo_pattern_t *pattern, * @green: green component of color * @blue: blue component of color * @alpha: alpha component of color - * + * * Adds a translucent color stop to a gradient pattern. The offset * specifies the location along the gradient's control vector. For * example, a linear gradient's control vector is from (x0,y0) to @@ -722,7 +722,7 @@ cairo_pattern_add_color_stop_rgba (cairo_pattern_t *pattern, * cairo_pattern_set_matrix: * @pattern: a #cairo_pattern_t * @matrix: a #cairo_matrix_t - * + * * Sets the pattern's transformation matrix to @matrix. This matrix is * a transformation from user space to pattern space. * @@ -764,7 +764,7 @@ cairo_pattern_set_matrix (cairo_pattern_t *pattern, * cairo_pattern_get_matrix: * @pattern: a #cairo_pattern_t * @matrix: return value for the matrix - * + * * Stores the pattern's transformation matrix into @matrix. **/ void @@ -813,7 +813,7 @@ cairo_pattern_set_extend (cairo_pattern_t *pattern, cairo_extend_t extend) * * Gets the current extend mode for a pattern. See #cairo_extend_t * for details on the semantics of each extend strategy. - * + * * Return value: the current extend strategy used for drawing the * pattern. **/ @@ -1178,10 +1178,10 @@ _cairo_pattern_acquire_surface_for_surface (cairo_surface_pattern_t *pattern, * @surface_out: location to store a pointer to a surface * @attributes: surface attributes that destination backend should apply to * the returned surface - * + * * A convenience function to obtain a surface to use as the source for * drawing on @dst. - * + * * Return value: %CAIRO_STATUS_SUCCESS if a surface was stored in @surface_out. **/ cairo_int_status_t @@ -1275,7 +1275,7 @@ _cairo_pattern_acquire_surface (cairo_pattern_t *pattern, * @pattern: a #cairo_pattern_t * @surface: a surface obtained by _cairo_pattern_acquire_surface * @attributes: attributes obtained by _cairo_pattern_acquire_surface - * + * * Releases resources obtained by _cairo_pattern_acquire_surface. **/ void @@ -1383,7 +1383,7 @@ _cairo_pattern_acquire_surfaces (cairo_pattern_t *src, /** * _cairo_pattern_get_extents: - * + * * Return the "target-space" extents of @pattern in @extents. * * For unbounded patterns, the @extents will be initialized with diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c index 2803e357..9c5dea1a 100644 --- a/src/cairo-pdf-surface.c +++ b/src/cairo-pdf-surface.c @@ -2031,7 +2031,7 @@ static cairo_bool_t cairo_pdf_force_fallbacks = FALSE; * * Force the PDF surface backend to use image fallbacks for every * operation. - * + * * <note> * This function is <emphasis>only</emphasis> intended for internal * testing use within the cairo distribution. It is not installed in diff --git a/src/cairo-pen.c b/src/cairo-pen.c index 91a6f44c..bb4adff1 100644 --- a/src/cairo-pen.c +++ b/src/cairo-pen.c @@ -247,7 +247,7 @@ _cairo_pen_vertices_needed (double tolerance, double radius, cairo_matrix_t *matrix) { - /* + /* * the pen is a circle that gets transformed to an ellipse by matrix. * compute major axis length for a pen with the specified radius. * we don't need the minor axis length. diff --git a/src/cairo-png.c b/src/cairo-png.c index 1c3caef1..a4fcd4e0 100644 --- a/src/cairo-png.c +++ b/src/cairo-png.c @@ -214,10 +214,10 @@ stdio_write_func (png_structp png, png_bytep data, png_size_t size) * cairo_surface_write_to_png: * @surface: a #cairo_surface_t with pixel contents * @filename: the name of a file to write to - * + * * Writes the contents of @surface to a new file @filename as a PNG * image. - * + * * Return value: CAIRO_STATUS_SUCCESS if the PNG file was written * successfully. Otherwise, CAIRO_STATUS_NO_MEMORY if memory could not * be allocated for the operation or @@ -266,9 +266,9 @@ stream_write_func (png_structp png, png_bytep data, png_size_t size) * @surface: a #cairo_surface_t with pixel contents * @write_func: a #cairo_write_func_t * @closure: closure data for the write function - * + * * Writes the image surface to the write function. - * + * * Return value: CAIRO_STATUS_SUCCESS if the PNG file was written * successfully. Otherwise, CAIRO_STATUS_NO_MEMORY is returned if * memory could not be allocated for the operation, @@ -447,15 +447,15 @@ stdio_read_func (png_structp png, png_bytep data, png_size_t size) /** * cairo_image_surface_create_from_png: - * @filename: name of PNG file to load - * + * @filename: name of PNG file to load + * * Creates a new image surface and initializes the contents to the * given PNG file. - * + * * Return value: a new #cairo_surface_t initialized with the contents * of the PNG file, or a "nil" surface if any error occurred. A nil * surface can be checked for with cairo_surface_status(surface) which - * may return one of the following values: + * may return one of the following values: * * CAIRO_STATUS_NO_MEMORY * CAIRO_STATUS_FILE_NOT_FOUND @@ -510,10 +510,10 @@ stream_read_func (png_structp png, png_bytep data, png_size_t size) * cairo_image_surface_create_from_png_stream: * @read_func: function called to read the data of the file * @closure: data to pass to @read_func. - * + * * Creates a new image surface from PNG data read incrementally * via the @read_func function. - * + * * Return value: a new #cairo_surface_t initialized with the contents * of the PNG file or %NULL if the data read is not a valid PNG image or * memory could not be allocated for the operation. diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c index 418e2a5f..d291a94b 100644 --- a/src/cairo-ps-surface.c +++ b/src/cairo-ps-surface.c @@ -410,7 +410,7 @@ _cairo_ps_surface_create_for_stream_internal (cairo_output_stream_t *stream, * @filename: a filename for the PS output (must be writable) * @width_in_points: width of the surface, in points (1 point == 1/72.0 inch) * @height_in_points: height of the surface, in points (1 point == 1/72.0 inch) - * + * * Creates a PostScript surface of the specified size in points to be * written to @filename. See cairo_ps_surface_create_for_stream() for * a more flexible mechanism for handling the PostScript output than @@ -453,7 +453,7 @@ cairo_ps_surface_create (const char *filename, * @closure: the closure argument for @write * @width_in_points: width of the surface, in points (1 point == 1/72.0 inch) * @height_in_points: height of the surface, in points (1 point == 1/72.0 inch) - * + * * Creates a PostScript surface of the specified size in points to be * written incrementally to the stream represented by @write and * @closure. See cairo_ps_surface_create() for a more convenient way @@ -525,7 +525,7 @@ _extract_ps_surface (cairo_surface_t *surface, * @surface: a PostScript cairo_surface_t * @x_dpi: horizontal dpi * @y_dpi: vertical dpi - * + * * Set the horizontal and vertical resolution for image fallbacks. * When the ps backend needs to fall back to image overlays, it will * use this resolution. These DPI values are not used for any other @@ -555,7 +555,7 @@ cairo_ps_surface_set_dpi (cairo_surface_t *surface, * @surface: a PostScript cairo_surface_t * @width_in_points: new surface width, in points (1 point == 1/72.0 inch) * @height_in_points: new surface height, in points (1 point == 1/72.0 inch) - * + * * Changes the size of a PostScript surface for the current (and * subsequent) pages. * @@ -587,7 +587,7 @@ cairo_ps_surface_set_size (cairo_surface_t *surface, * cairo_ps_surface_dsc_comment: * @surface: a PostScript cairo_surface_t * @comment: a comment string to be emitted into the PostScript output - * + * * Emit a comment into the PostScript output for the given surface. * * The comment is expected to conform to the PostScript Language @@ -714,13 +714,13 @@ cairo_ps_surface_dsc_comment (cairo_surface_t *surface, /** * cairo_ps_surface_dsc_begin_setup: * @surface: a PostScript cairo_surface_t - * + * * This function indicates that subsequent calls to * cairo_ps_surface_dsc_comment() should direct comments to the Setup * section of the PostScript output. * * This function should be called at most once per surface, and must - * be called before any call to cairo_ps_surface_dsc_begin_page_setup() + * be called before any call to cairo_ps_surface_dsc_begin_page_setup() * and before any drawing is performed to the surface. * * See cairo_ps_surface_dsc_comment() for more details. @@ -746,7 +746,7 @@ cairo_ps_surface_dsc_begin_setup (cairo_surface_t *surface) /** * cairo_ps_surface_dsc_begin_setup: * @surface: a PostScript cairo_surface_t - * + * * This function indicates that subsequent calls to * cairo_ps_surface_dsc_comment() should direct comments to the * PageSetup section of the PostScript output. diff --git a/src/cairo-region.c b/src/cairo-region.c index dcbcffe5..be737411 100644 --- a/src/cairo-region.c +++ b/src/cairo-region.c @@ -38,10 +38,10 @@ /** * _cairo_region_create_from_rectangle: * @rect: a #cairo_rectangle_fixed_t - * + * * Creates a region with extents initialized from the given * rectangle. - * + * * Return value: a newly created #pixman_region16_t or %NULL if * memory couldn't a allocated. **/ @@ -66,7 +66,7 @@ _cairo_region_create_from_rectangle (cairo_rectangle_fixed_t *rect) * _cairo_region_extents_rectangle: * @region: a #pixman_region16_t * @rect: rectangle into which to store the extents - * + * * Gets the bounding box of a region as a cairo_rectangle_fixed_t **/ void diff --git a/src/cairo-scaled-font-subsets-private.h b/src/cairo-scaled-font-subsets-private.h index aed01a30..f8b5ac89 100644 --- a/src/cairo-scaled-font-subsets-private.h +++ b/src/cairo-scaled-font-subsets-private.h @@ -58,14 +58,14 @@ typedef struct _cairo_scaled_font_subset { * @max_glyphs_per_subset: the maximum number of glyphs that should * appear in any subset. A value of 0 indicates that there is no limit * to the number of glyphs per subset. - * + * * Create a new #cairo_scaled_font_subsets_t object which can be used * to create subsets of any number of cairo_scaled_font_t * objects. This allows the (arbitrarily large and sparse) glyph * indices of a cairo_scaled_font to be mapped to one or more font * subsets with glyph indices packed into the range * [0 .. max_glyphs_per_subset). - * + * * Return value: a pointer to the newly creates font subsets. The * caller owns this object and should call * _cairo_scaled_font_subsets_destroy() when done with it. @@ -76,7 +76,7 @@ _cairo_scaled_font_subsets_create (int max_glyphs_per_subset); /** * _cairo_scaled_font_subsets_destroy: * @font_subsets: a #cairo_scaled_font_subsets_t object to be destroyed - * + * * Destroys @font_subsets and all resources associated with it. **/ cairo_private void @@ -90,7 +90,7 @@ _cairo_scaled_font_subsets_destroy (cairo_scaled_font_subsets_t *font_subsets); * @font_id_ret: return value giving the font ID of the mapped glyph * @subset_id_ret: return value giving the subset ID of the mapped glyph within the @font_id_ret * @subset_glyph_index_ret: return value giving the index of the mapped glyph within the @subset_id_ret subset - * + * * Map a glyph from a #cairo_scaled_font to a new index within a * subset of that font. The mapping performed is from the tuple: * @@ -149,7 +149,7 @@ typedef void * @font_subsets: a #cairo_scaled_font_subsets_t * @font_subset_callback: a function to be called for each font subset * @closure: closure data for the callback function - * + * * Iterate over each unique font subset as created by calls to * _cairo_scaled_font_subsets_map_glyph(). A subset is determined by * unique pairs of (font_id, subset_id) as returned by @@ -169,7 +169,7 @@ typedef void * returned by _cairo_scaled_font_subsets_map_glyph() while the * values of the array correspond to the scaled_font_glyph_index * values passed as input to the same function. - * + * * Return value: CAIRO_STATUS_SUCCESS if successful, or a non-zero * value indicating an error. Possible errors include * CAIRO_STATUS_NO_MEMORY. diff --git a/src/cairo-scaled-font.c b/src/cairo-scaled-font.c index 8cb979fb..5893f8f4 100644 --- a/src/cairo-scaled-font.c +++ b/src/cairo-scaled-font.c @@ -94,7 +94,7 @@ static const cairo_scaled_font_t _cairo_scaled_font_nil = { * @scaled_font: a scaled_font * @status: a status value indicating an error, (eg. not * CAIRO_STATUS_SUCCESS) - * + * * Sets scaled_font->status to @status and calls _cairo_error; * * All assignments of an error status to scaled_font->status should happen @@ -121,7 +121,7 @@ _cairo_scaled_font_set_error (cairo_scaled_font_t *scaled_font, /** * cairo_scaled_font_get_type: * @scaled_font: a #cairo_scaled_font_t - * + * * Return value: The type of @scaled_font. See #cairo_font_type_t. **/ cairo_font_type_t @@ -133,10 +133,10 @@ cairo_scaled_font_get_type (cairo_scaled_font_t *scaled_font) /** * cairo_scaled_font_status: * @scaled_font: a #cairo_scaled_font_t - * + * * Checks whether an error has previously occurred for this * scaled_font. - * + * * Return value: %CAIRO_STATUS_SUCCESS or another error such as * %CAIRO_STATUS_NO_MEMORY. **/ @@ -247,7 +247,7 @@ _cairo_scaled_font_map_destroy (void) } /* Fowler / Noll / Vo (FNV) Hash (http://www.isthe.com/chongo/tech/comp/fnv/) - * + * * Not necessarily better than a lot of other hashes, but should be OK, and * well tested with binary data. */ @@ -358,7 +358,7 @@ _cairo_scaled_font_set_metrics (cairo_scaled_font_t *scaled_font, &font_scale_x, &font_scale_y, /* XXX */ 1); - /* + /* * The font responded in unscaled units, scale by the font * matrix scale factors to get to user space */ @@ -399,11 +399,11 @@ _cairo_scaled_font_fini (cairo_scaled_font_t *scaled_font) * be used. * @options: options to use when getting metrics for the font and * rendering with it. - * + * * Creates a #cairo_scaled_font_t object from a font face and matrices that * describe the size of the font and the environment in which it will * be used. - * + * * Return value: a newly created #cairo_scaled_font_t. Destroy with * cairo_scaled_font_destroy() **/ @@ -466,7 +466,7 @@ UNWIND: * cairo_scaled_font_reference: * @scaled_font: a #cairo_scaled_font_t, (may be NULL in which case * this function does nothing) - * + * * Increases the reference count on @scaled_font by one. This prevents * @scaled_font from being destroyed until a matching call to * cairo_scaled_font_destroy() is made. @@ -523,7 +523,7 @@ cairo_scaled_font_reference (cairo_scaled_font_t *scaled_font) /** * cairo_scaled_font_destroy: * @scaled_font: a #cairo_scaled_font_t - * + * * Decreases the reference count on @font by one. If the result * is zero, then @font and all associated resources are freed. * See cairo_scaled_font_reference(). @@ -586,8 +586,8 @@ cairo_scaled_font_destroy (cairo_scaled_font_t *scaled_font) * cairo_scaled_font_extents: * @scaled_font: a #cairo_scaled_font_t * @extents: a #cairo_font_extents_t which to store the retrieved extents. - * - * Gets the metrics for a #cairo_scaled_font_t. + * + * Gets the metrics for a #cairo_scaled_font_t. **/ void cairo_scaled_font_extents (cairo_scaled_font_t *scaled_font, @@ -1062,9 +1062,9 @@ _cairo_scaled_font_glyph_path (cairo_scaled_font_t *scaled_font, * @scaled_glyph: a #cairo_scaled_glyph_t * @scaled_font: a #cairo_scaled_font_t * @fs_metrics: a #cairo_text_extents_t in font space - * + * * _cairo_scaled_glyph_set_metrics() stores user space metrics - * for the specified glyph given font space metrics. It is + * for the specified glyph given font space metrics. It is * called by the font backend when initializing a glyph with * CAIRO_SCALED_GLYPH_INFO_METRICS. **/ @@ -1159,7 +1159,7 @@ _cairo_scaled_glyph_set_path (cairo_scaled_glyph_t *scaled_glyph, * the glyph should be filled in. * @scaled_glyph_ret: a #cairo_scaled_glyph_t * where the glyph * is returned. - * + * * Returns a glyph with the requested portions filled in. Glyph * lookup is cached and glyph will be automatically freed along * with the scaled_font so no explicit free is required. @@ -1260,7 +1260,7 @@ _cairo_scaled_glyph_lookup (cairo_scaled_font_t *scaled_font, /** * cairo_scaled_font_get_font_face: * @scaled_font: a #cairo_scaled_font_t - * + * * Return value: The #cairo_font_face_t with which @scaled_font was * created. **/ @@ -1277,7 +1277,7 @@ cairo_scaled_font_get_font_face (cairo_scaled_font_t *scaled_font) * cairo_scaled_font_get_font_matrix: * @scaled_font: a #cairo_scaled_font_t * @font_matrix: return value for the matrix - * + * * Stores the font matrix with which @scaled_font was created into * @matrix. **/ @@ -1297,7 +1297,7 @@ cairo_scaled_font_get_font_matrix (cairo_scaled_font_t *scaled_font, * cairo_scaled_font_get_ctm: * @scaled_font: a #cairo_scaled_font_t * @ctm: return value for the CTM - * + * * Stores the CTM with which @scaled_font was created into @ctm. **/ void @@ -1316,7 +1316,7 @@ cairo_scaled_font_get_ctm (cairo_scaled_font_t *scaled_font, * cairo_scaled_font_get_font_options: * @scaled_font: a #cairo_scaled_font_t * @options: return value for the font options - * + * * Stores the font options with which @scaled_font was created into * @ctm. **/ diff --git a/src/cairo-surface-fallback.c b/src/cairo-surface-fallback.c index 5c62196a..934d3613 100644 --- a/src/cairo-surface-fallback.c +++ b/src/cairo-surface-fallback.c @@ -48,10 +48,10 @@ typedef struct { /** * _fallback_init: - * + * * Acquire destination image surface needed for an image-based * fallback. - * + * * Return value: CAIRO_INT_STATUS_NOTHING_TO_DO if the extents are not * visible, CAIRO_STATUS_SUCCESS if some portion is visible and all * went well, or some error status otherwise. @@ -343,7 +343,7 @@ _cairo_rectangle_empty (const cairo_rectangle_fixed_t *rect) * * @draw_func is to called to draw the mask; it will be called no more * than once. - * + * * Return value: %CAIRO_STATUS_SUCCESS if the drawing succeeded. **/ static cairo_status_t diff --git a/src/cairo-surface.c b/src/cairo-surface.c index c7809d7f..e7f203bc 100644 --- a/src/cairo-surface.c +++ b/src/cairo-surface.c @@ -108,7 +108,7 @@ static void _cairo_surface_copy_pattern_for_destination (const cairo_pattern_t * * @surface: a surface * @status: a status value indicating an error, (eg. not * CAIRO_STATUS_SUCCESS) - * + * * Sets surface->status to @status and calls _cairo_error; * * All assignments of an error status to surface->status should happen @@ -135,7 +135,7 @@ _cairo_surface_set_error (cairo_surface_t *surface, /** * cairo_surface_get_type: * @surface: a #cairo_surface_t - * + * * Return value: The type of @surface. See #cairo_surface_type_t. **/ cairo_surface_type_t @@ -151,7 +151,7 @@ cairo_surface_get_type (cairo_surface_t *surface) /** * cairo_surface_get_content: * @surface: a #cairo_surface_t - * + * * Return value: The content type of @surface which indicates whether * the surface contains color and/or alpha information. See * #cairo_content_t. @@ -165,10 +165,10 @@ cairo_surface_get_content (cairo_surface_t *surface) /** * cairo_surface_status: * @surface: a #cairo_surface_t - * + * * Checks whether an error has previously occurred for this * surface. - * + * * Return value: %CAIRO_STATUS_SUCCESS, %CAIRO_STATUS_NULL_POINTER, * %CAIRO_STATUS_NO_MEMORY, %CAIRO_STATUS_READ_ERROR, * %CAIRO_STATUS_INVALID_CONTENT, %CAIRO_STATUS_INVALUE_FORMAT, or @@ -230,12 +230,12 @@ _cairo_surface_create_similar_scratch (cairo_surface_t *other, * @content: the content for the new surface * @width: width of the new surface, (in device-space units) * @height: height of the new surface (in device-space units) - * + * * Create a new surface that is as compatible as possible with an * existing surface. The new surface will use the same backend as * @other unless that is not possible for some reason. The type of the * returned surface may be examined with cairo_surface_get_type(). - * + * * Return value: a pointer to the newly allocated surface. The caller * owns the surface and should call cairo_surface_destroy when done * with it. @@ -318,7 +318,7 @@ _cairo_surface_get_clip_mode (cairo_surface_t *surface) /** * cairo_surface_reference: * @surface: a #cairo_surface_t - * + * * Increases the reference count on @surface by one. This prevents * @surface from being destroyed until a matching call to * cairo_surface_destroy() is made. @@ -344,7 +344,7 @@ cairo_surface_reference (cairo_surface_t *surface) /** * cairo_surface_destroy: * @surface: a #cairo_t - * + * * Decreases the reference count on @surface by one. If the result is * zero, then @surface and all associated resources are freed. See * cairo_surface_reference(). @@ -375,7 +375,7 @@ slim_hidden_def(cairo_surface_destroy); /** * cairo_surface_finish: * @surface: the #cairo_surface_t to finish - * + * * This function finishes the surface and drops all references to * external resources. For example, for the Xlib backend it means * that cairo will no longer access the drawable, which can be freed. @@ -427,11 +427,11 @@ cairo_surface_finish (cairo_surface_t *surface) * @surface: a #cairo_surface_t * @key: the address of the #cairo_user_data_key_t the user data was * attached to - * + * * Return user data previously attached to @surface using the specified * key. If no user data has been attached with the given key this * function returns %NULL. - * + * * Return value: the user data previously attached or %NULL. **/ void * @@ -450,7 +450,7 @@ cairo_surface_get_user_data (cairo_surface_t *surface, * @destroy: a #cairo_destroy_func_t which will be called when the * surface is destroyed or when new user data is attached using the * same key. - * + * * Attach user data to @surface. To remove user data from a surface, * call this function with the key that was used to set it and %NULL * for @data. @@ -476,7 +476,7 @@ cairo_surface_set_user_data (cairo_surface_t *surface, * @surface: a #cairo_surface_t * @options: a #cairo_font_options_t object into which to store * the retrieved options. All existing values are overwritten - * + * * Retrieves the default font rendering options for the surface. * This allows display surfaces to report the correct subpixel order * for rendering on them, print surfaces to disable hinting of @@ -497,7 +497,7 @@ cairo_surface_get_font_options (cairo_surface_t *surface, /** * cairo_surface_flush: * @surface: a #cairo_surface_t - * + * * Do any pending drawing for the surface and also restore any * temporary modification's cairo has made to the surface's * state. This function must be called before switching from @@ -600,7 +600,7 @@ cairo_surface_mark_dirty_rectangle (cairo_surface_t *surface, * @surface: a #cairo_surface_t * @x_offset: the offset in the X direction, in device units * @y_offset: the offset in the Y direction, in device units - * + * * Sets an offset that is added to the device coordinates determined * by the CTM when drawing to @surface. One use case for this function * is when we want to create a #cairo_surface_t that redirects drawing @@ -666,11 +666,11 @@ _cairo_surface_has_device_offset_or_scale (cairo_surface_t *surface) * itself, a surface held internal to @surface, or it could be a new * surface with a copy of the relevant portion of @surface. * @image_extra: location to store image specific backend data - * + * * Gets an image surface to use when drawing as a fallback when drawing with * @surface as a source. _cairo_surface_release_source_image() must be called * when finished. - * + * * Return value: %CAIRO_STATUS_SUCCESS if a an image was stored in @image_out. * %CAIRO_INT_STATUS_UNSUPPORTED if an image cannot be retrieved for the specified * surface. Or %CAIRO_STATUS_NO_MEMORY. @@ -690,7 +690,7 @@ _cairo_surface_acquire_source_image (cairo_surface_t *surface, * _cairo_surface_release_source_image: * @surface: a #cairo_surface_t * @image_extra: same as return from the matching _cairo_surface_acquire_source_image() - * + * * Releases any resources obtained with _cairo_surface_acquire_source_image() **/ void @@ -716,10 +716,10 @@ _cairo_surface_release_source_image (cairo_surface_t *surface, * or it could be a new surface with a copy of the relevant portion of @surface. * If a new surface is created, it should have the same channels and depth * as @surface so that copying to and from it is exact. - * @image_rect: location to store area of the original surface occupied + * @image_rect: location to store area of the original surface occupied * by the surface stored in @image. * @image_extra: location to store image specific backend data - * + * * Retrieves a local image for a surface for implementing a fallback drawing * operation. After calling this function, the implementation of the fallback * drawing operation draws the primitive to the surface stored in @image_out @@ -756,7 +756,7 @@ _cairo_surface_acquire_dest_image (cairo_surface_t *surface, * @image: same as returned from the matching _cairo_surface_acquire_dest_image() * @image_rect: same as returned from the matching _cairo_surface_acquire_dest_image() * @image_extra: same as return from the matching _cairo_surface_acquire_dest_image() - * + * * Finishes the operation started with _cairo_surface_acquire_dest_image(), by, if * necessary, copying the image from @image back to @surface and freeing any * resources that were allocated. @@ -782,11 +782,11 @@ _cairo_surface_release_dest_image (cairo_surface_t *surface, * @clone_out: location to store a surface compatible with @surface * and with contents identical to @src. The caller must call * cairo_surface_destroy() on the result. - * + * * Creates a surface with contents identical to @src but that * can be used efficiently with @surface. If @surface and @src are * already compatible then it may return a new reference to @src. - * + * * Return value: %CAIRO_STATUS_SUCCESS if a surface was created and stored * in @clone_out. Otherwise %CAIRO_INT_STATUS_UNSUPPORTED or another * error like %CAIRO_STATUS_NO_MEMORY. @@ -923,10 +923,10 @@ _cairo_surface_composite (cairo_operator_t op, * @y: Y coordinate of rectangle, in backend coordinates * @width: width of rectangle, in backend coordinates * @height: height of rectangle, in backend coordinates - * + * * Applies an operator to a rectangle using a solid color as the source. * See _cairo_surface_fill_rectangles() for full details. - * + * * Return value: %CAIRO_STATUS_SUCCESS or the error that occurred **/ cairo_status_t @@ -962,11 +962,11 @@ _cairo_surface_fill_rectangle (cairo_surface_t *surface, * @op: the operator to apply to the region * @color: the source color * @region: the region to modify, in backend coordinates - * + * * Applies an operator to a set of rectangles specified as a * #pixman_region16_t using a solid color as the source. * See _cairo_surface_fill_rectangles() for full details. - * + * * Return value: %CAIRO_STATUS_SUCCESS or the error that occurred **/ cairo_status_t @@ -1012,13 +1012,13 @@ _cairo_surface_fill_region (cairo_surface_t *surface, * @color: the source color * @rects: the rectangles to modify, in backend coordinates * @num_rects: the number of rectangles in @rects - * + * * Applies an operator to a set of rectangles using a solid color * as the source. Note that even if the operator is an unbounded operator * such as %CAIRO_OPERATOR_IN, only the given set of rectangles * is affected. This differs from _cairo_surface_composite_trapezoids() * where the entire destination rectangle is cleared. - * + * * Return value: %CAIRO_STATUS_SUCCESS or the error that occurred **/ cairo_status_t @@ -1460,7 +1460,7 @@ _cairo_surface_set_clip_path_recursive (cairo_surface_t *surface, * @surface: the #cairo_surface_t to set the clip on * @clip_path: the clip path to set * @serial: the clip serial number associated with the clip path - * + * * Sets the given clipping path for the surface and assigns the * clipping serial to the surface. **/ @@ -1542,7 +1542,7 @@ _cairo_surface_set_clip (cairo_surface_t *surface, cairo_clip_t *clip) * * This function returns a bounding box for the surface. The * surface bounds are defined as a region beyond which no - * rendering will possibly be recorded, in otherwords, + * rendering will possibly be recorded, in otherwords, * it is the maximum extent of potentially usable * coordinates. For simple pixel-based surfaces, * it can be a close bound on the retained pixel @@ -1743,7 +1743,7 @@ _cairo_surface_composite_fixup_unbounded_internal (cairo_surface_t *dst, * @dst_y: @dst_y from _cairo_surface_composite() * @width: @width from _cairo_surface_composite() * @height: @height_x from _cairo_surface_composite() - * + * * Eeek! Too many parameters! This is a helper function to take care of fixing * up for bugs in libpixman and RENDER where, when asked to composite an * untransformed surface with an unbounded operator (like CLEAR or SOURCE) @@ -1819,7 +1819,7 @@ _cairo_surface_composite_fixup_unbounded (cairo_surface_t *dst, * @dst_y: @dst_y from _cairo_surface_composite() * @width: @width from _cairo_surface_composite() * @height: @height_x from _cairo_surface_composite() - * + * * Like _cairo_surface_composite_fixup_unbounded(), but instead of * handling the case where we have a source pattern and a mask * pattern, handle the case where we are compositing a source pattern diff --git a/src/cairo-svg-surface.c b/src/cairo-svg-surface.c index 2827b572..4019639d 100644 --- a/src/cairo-svg-surface.c +++ b/src/cairo-svg-surface.c @@ -169,7 +169,7 @@ static const cairo_paginated_surface_backend_t cairo_svg_surface_paginated_backe * @closure: the closure argument for @write * @width_in_points: width of the surface, in points (1 point == 1/72.0 inch) * @height_in_points: height of the surface, in points (1 point == 1/72.0 inch) - * + * * Creates a SVG surface of the specified size in points to be written * incrementally to the stream represented by @write and @closure. * @@ -205,10 +205,10 @@ cairo_svg_surface_create_for_stream (cairo_write_func_t write, * @filename: a filename for the SVG output (must be writable) * @width_in_points: width of the surface, in points (1 point == 1/72.0 inch) * @height_in_points: height of the surface, in points (1 point == 1/72.0 inch) - * + * * Creates a SVG surface of the specified size in points to be written * to @filename. - * + * * Return value: a pointer to the newly created surface. The caller * owns the surface and should call cairo_surface_destroy when done * with it. @@ -270,7 +270,7 @@ _extract_svg_surface (cairo_surface_t *surface, * @surface: a svg cairo_surface_t * @x_dpi: horizontal dpi * @y_dpi: vertical dpi - * + * * Set the horizontal and vertical resolution for image fallbacks. * When the svg backend needs to fall back to image overlays, it will * use this resolution. These DPI values are not used for any other @@ -334,7 +334,7 @@ cairo_svg_surface_restrict_to_version (cairo_surface_t *abstract_surface, * @version: supported version list * @num_versions: list length * - * Returns the list of supported versions. See + * Returns the list of supported versions. See * cairo_svg_surface_restrict_to_version(). **/ @@ -349,7 +349,7 @@ cairo_svg_get_versions (cairo_svg_version_t const **versions, *num_versions = CAIRO_SVG_VERSION_LAST; } -/** +/** * cairo_svg_version_to_string: * @version: a version id * @@ -406,7 +406,7 @@ _cairo_svg_surface_create_for_document (cairo_svg_document_t *document, _cairo_dtostr (buffer, sizeof buffer, height); xmlSetProp (rect, CC2XML ("height"), C2XML (buffer)); - /* Use of xlink namespace requires node to be linked to tree. + /* Use of xlink namespace requires node to be linked to tree. * So by default we link surface main node to document svg node. * For surfaces that don't own document, their main node will be * unlinked and freed in surface finish. */ @@ -1453,12 +1453,12 @@ _cairo_svg_surface_paint (void *abstract_surface, /* Emulation of clear and source operators, when no clipping region * is defined. We just delete existing content of surface root node, - * and exit early if operator is clear. + * and exit early if operator is clear. * XXX: optimization of SOURCE operator doesn't work, since analyze * above always return FALSE. In order to make it work, we need a way * to know if there's an active clipping path. * Optimization of CLEAR works because of a test in paginated surface, - * and an optimiszation in meta surface. */ + * and an optimiszation in meta surface. */ if (surface->clip_level == 0 && (op == CAIRO_OPERATOR_CLEAR || op == CAIRO_OPERATOR_SOURCE)) { diff --git a/src/cairo-svg.h b/src/cairo-svg.h index 9053ff04..637231ba 100644 --- a/src/cairo-svg.h +++ b/src/cairo-svg.h @@ -1,7 +1,7 @@ /* cairo - a vector graphics library with display and print output * * cairo-svg.h - * + * * Copyright © 2005 Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr> * * This library is free software; you can redistribute it and/or diff --git a/src/cairo-traps.c b/src/cairo-traps.c index a3f1fca0..93f4eadd 100644 --- a/src/cairo-traps.c +++ b/src/cairo-traps.c @@ -93,7 +93,7 @@ _cairo_traps_fini (cairo_traps_t *traps) * @traps: a #cairo_traps_t * @box: a box that will be converted to a single trapezoid * to store in @traps. - * + * * Initializes a cairo_traps_t to contain a single rectangular * trapezoid. **/ @@ -577,7 +577,7 @@ _line_segs_intersect_ceil (cairo_line_t *l1, cairo_line_t *l2, cairo_fixed_t *y_ _cairo_int32_to_int64 (1)); } - /* + /* * Now convert from 32.32 to 48.16 and take the ceiling; * this requires adding in 15 1 bits and shifting the result */ @@ -860,10 +860,10 @@ _cairo_traps_extents (cairo_traps_t *traps, cairo_box_t *extents) * exactly representable as a pixman region, otherwise a * a pointer to such a region, newly allocated. * (free with pixman region destroy) - * + * * Determines if a set of trapezoids are exactly representable as a * pixman region, and if so creates such a region. - * + * * Return value: %CAIRO_STATUS_SUCCESS or %CAIRO_STATUS_NO_MEMORY **/ cairo_status_t diff --git a/src/cairo-unicode.c b/src/cairo-unicode.c index 0c0dff2e..cf7c3736 100644 --- a/src/cairo-unicode.c +++ b/src/cairo-unicode.c @@ -1,5 +1,5 @@ /* cairo_unicode.c: Unicode conversion routines - * + * * The code in this file is derived from GLib's gutf8.c and * ultimately from libunicode. It is relicensed under the * dual LGPL/MPL with permission of the original authors. @@ -208,13 +208,13 @@ _utf8_get_char_extended (const unsigned char *p, * @result: location to store a pointer to a newly allocated UTF-32 * string (always native endian). Free with free(). A 0 * word will be written after the last character. - * @items_written: location to store number of 32-bit words + * @items_written: location to store number of 32-bit words * written. (Not including the trailing 0) * * Converts a UTF-8 string to UCS-4. UCS-4 is an encoding of Unicode * with 1 32-bit word per character. The string is validated to * consist entirely of valid Unicode characters. - * + * * Return value: %CAIRO_STATUS_SUCCESS if the entire string was * succesfully converted. %CAIRO_STATUS_INVALID_STRING if an * an invalid sequence was found. @@ -271,14 +271,14 @@ _cairo_utf8_to_ucs4 (const unsigned char *str, * @result: location to store a pointer to a newly allocated UTF-16 * string (always native endian). Free with free(). A 0 * word will be written after the last character. - * @items_written: location to store number of 16-bit words + * @items_written: location to store number of 16-bit words * written. (Not including the trailing 0) * * Converts a UTF-8 string to UTF-16. UTF-16 is an encoding of Unicode * where characters are represented either as a single 16-bit word, or * as a pair of 16-bit "surrogates". The string is validated to * consist entirely of valid Unicode characters. - * + * * Return value: %CAIRO_STATUS_SUCCESS if the entire string was * succesfully converted. %CAIRO_STATUS_INVALID_STRING if an * an invalid sequence was found. diff --git a/src/cairo-win32-font.c b/src/cairo-win32-font.c index 81aadae2..94163ce7 100644 --- a/src/cairo-win32-font.c +++ b/src/cairo-win32-font.c @@ -244,7 +244,7 @@ _win32_scaled_font_create (LOGFONTW *logfont, * order in the Win32 font API, so we ignore those parts of * cairo_font_options_t. We use the 'antialias' field to set * the 'quality'. - * + * * XXX: The other option we could pay attention to, but don't * here is the hint_metrics options. */ @@ -1151,7 +1151,7 @@ _cairo_win32_scaled_font_show_glyphs (void *abstract_font, return status; } else { - /* Otherwise, we need to draw using software fallbacks. We create a mask + /* Otherwise, we need to draw using software fallbacks. We create a mask * surface by drawing the the glyphs onto a DIB, black-on-white then * inverting. GDI outputs gamma-corrected images so inverted black-on-white * is very different from white-on-black. We favor the more common @@ -1414,7 +1414,7 @@ static const cairo_font_face_backend_t _cairo_win32_font_face_backend = { * @logfont: A #LOGFONTW structure specifying the font to use. * The lfHeight, lfWidth, lfOrientation and lfEscapement * fields of this structure are ignored. - * + * * Creates a new font for the Win32 font backend based on a * #LOGFONT. This font can then be used with * cairo_set_font_face() or cairo_font_create(). The #cairo_scaled_font_t @@ -1481,7 +1481,7 @@ cairo_win32_font_face_create_for_hfont (HFONT font) * * Normally, calls to SaveDC() and RestoreDC() would be made around * the use of this function to preserve the original graphics state. - * + * * Return value: %CAIRO_STATUS_SUCCESS if the operation succeeded. * otherwise an error such as %CAIRO_STATUS_NO_MEMORY and * the device context is unchanged. @@ -1528,7 +1528,7 @@ cairo_win32_scaled_font_select_font (cairo_scaled_font_t *scaled_font, /** * cairo_win32_scaled_font_done_font: * @scaled_font: A #cairo_scaled_font_t from the Win32 font backend. - * + * * Releases any resources allocated by cairo_win32_scaled_font_select_font() **/ void @@ -1539,12 +1539,12 @@ cairo_win32_scaled_font_done_font (cairo_scaled_font_t *scaled_font) /** * cairo_win32_scaled_font_get_metrics_factor: * @scaled_font: a #cairo_scaled_font_t from the Win32 font backend - * + * * Gets a scale factor between logical coordinates in the coordinate * space used by cairo_win32_scaled_font_select_font() (that is, the * coordinate system used by the Windows functions to return metrics) and * font space coordinates. - * + * * Return value: factor to multiply logical units by to get font space * coordinates. **/ diff --git a/src/cairo-win32-surface.c b/src/cairo-win32-surface.c index d6d109c4..e931a805 100644 --- a/src/cairo-win32-surface.c +++ b/src/cairo-win32-surface.c @@ -53,7 +53,7 @@ static const cairo_surface_backend_t cairo_win32_surface_backend; /** * _cairo_win32_print_gdi_error: * @context: context string to display along with the error - * + * * Helper function to dump out a human readable form of the * current error code. * @@ -1088,13 +1088,13 @@ FAIL: /** * cairo_win32_surface_create: * @hdc: the DC to create a surface for - * + * * Creates a cairo surface that targets the given DC. The DC will be * queried for its initial clip extents, and this will be used as the * size of the cairo surface. Also, if the DC is a raster DC, it will * be queried for its pixel format and the cairo surface format will * be set appropriately. - * + * * Return value: the newly created surface **/ cairo_surface_t * @@ -1175,14 +1175,14 @@ cairo_win32_surface_create (HDC hdc) /** * cairo_win32_surface_create_with_dib: - * @format: format of pixels in the surface to create + * @format: format of pixels in the surface to create * @width: width of the surface, in pixels * @height: height of the surface, in pixels - * + * * Creates a device-independent-bitmap surface not associated with * any particular existing surface or device context. The created * bitmap will be unititialized. - * + * * Return value: the newly created surface * **/ @@ -1198,9 +1198,9 @@ cairo_win32_surface_create_with_dib (cairo_format_t format, /** * _cairo_surface_is_win32: * @surface: a #cairo_surface_t - * + * * Checks if a surface is an #cairo_win32_surface_t - * + * * Return value: True if the surface is an win32 surface **/ int diff --git a/src/cairo-xcb-surface.c b/src/cairo-xcb-surface.c index 648cdb64..5d05e242 100644 --- a/src/cairo-xcb-surface.c +++ b/src/cairo-xcb-surface.c @@ -588,7 +588,7 @@ _draw_image_surface (cairo_xcb_surface_t *surface, image->width, image->height, dst_x, dst_y, - /* left_pad */ 0, image->depth, + /* left_pad */ 0, image->depth, data_len, image->data); return CAIRO_STATUS_SUCCESS; @@ -1078,9 +1078,9 @@ static const cairo_surface_backend_t cairo_xcb_surface_backend = { /** * _cairo_surface_is_xcb: * @surface: a #cairo_surface_t - * + * * Checks if a surface is a #cairo_xcb_surface_t - * + * * Return value: True if the surface is an xcb surface **/ static cairo_bool_t @@ -1216,7 +1216,7 @@ _cairo_xcb_surface_create_internal (XCBConnection *dpy, * Currently, only TrueColor visuals are fully supported. * @width: the current width of @drawable. * @height: the current height of @drawable. - * + * * Creates an XCB surface that draws to the given drawable. * The way that colors are represented in the drawable is specified * by the provided visual. @@ -1224,7 +1224,7 @@ _cairo_xcb_surface_create_internal (XCBConnection *dpy, * NOTE: If @drawable is a window, then the function * cairo_xcb_surface_set_size must be called whenever the size of the * window changes. - * + * * Return value: the newly created surface **/ cairo_surface_t * @@ -1248,7 +1248,7 @@ cairo_xcb_surface_create (XCBConnection *c, * * Creates an XCB surface that draws to the given bitmap. * This will be drawn to as a CAIRO_FORMAT_A1 object. - * + * * Return value: the newly created surface **/ cairo_surface_t * @@ -1272,7 +1272,7 @@ cairo_xcb_surface_create_for_bitmap (XCBConnection *c, * depth of @format mush match the depth of the drawable. * @width: the current width of @drawable * @height: the current height of @drawable - * + * * Creates an XCB surface that draws to the given drawable. * The way that colors are represented in the drawable is specified * by the provided picture format. @@ -1280,8 +1280,8 @@ cairo_xcb_surface_create_for_bitmap (XCBConnection *c, * NOTE: If @drawable is a Window, then the function * cairo_xlib_surface_set_size must be called whenever the size of the * window changes. - * - * Return value: the newly created surface. + * + * Return value: the newly created surface. **/ cairo_surface_t * cairo_xcb_surface_create_with_xrender_format (XCBConnection *c, @@ -1300,7 +1300,7 @@ cairo_xcb_surface_create_with_xrender_format (XCBConnection *c, * @surface: a #cairo_surface_t for the XCB backend * @width: the new width of the surface * @height: the new height of the surface - * + * * Informs cairo of the new size of the XCB drawable underlying the * surface. For a surface created for a window (rather than a pixmap), * this function must be called each time the size of the window diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c index 5d22ae87..38bf1bc6 100644 --- a/src/cairo-xlib-surface.c +++ b/src/cairo-xlib-surface.c @@ -112,7 +112,7 @@ struct _cairo_xlib_surface { * * Both are fixed in xorg >= 6.9 and hopefully in > 6.8.2, so * we can reuse the test for now. - */ + */ cairo_bool_t buggy_repeat; int width; @@ -157,7 +157,7 @@ static cairo_bool_t cairo_xlib_render_disabled = FALSE; * cairo_xlib_test_disable_render: * * Disables the use of the RENDER extension. - * + * * <note> * This function is <emphasis>only</emphasis> intended for internal * testing use within the cairo distribution. It is not installed in @@ -609,7 +609,7 @@ _get_image_surface (cairo_xlib_surface_t *surface, _swap_ximage_to_native (ximage); /* - * Compute the pixel format masks from either a visual or a + * Compute the pixel format masks from either a visual or a * XRenderFormat, failing we assume the drawable is an * alpha-only pixmap as it could only have been created * that way through the cairo_xlib_surface_create_for_bitmap @@ -655,8 +655,8 @@ _get_image_surface (cairo_xlib_surface_t *surface, } else { - /* - * XXX This can't work. We must convert the data to one of the + /* + * XXX This can't work. We must convert the data to one of the * supported pixman formats. Pixman needs another function * which takes data in an arbitrary format and converts it * to something supported by that library. @@ -1775,9 +1775,9 @@ static const cairo_surface_backend_t cairo_xlib_surface_backend = { /** * _cairo_surface_is_xlib: * @surface: a #cairo_surface_t - * + * * Checks if a surface is a #cairo_xlib_surface_t - * + * * Return value: True if the surface is an xlib surface **/ static cairo_bool_t @@ -1954,7 +1954,7 @@ cairo_xlib_surface_create (Display *dpy, * @screen: the X Screen associated with @bitmap * @width: the current width of @bitmap. * @height: the current height of @bitmap. - * + * * Creates an Xlib surface that draws to the given bitmap. * This will be drawn to as a CAIRO_FORMAT_A1 object. * @@ -2008,7 +2008,7 @@ cairo_xlib_surface_create_with_xrender_format (Display *dpy, * @surface: a #cairo_surface_t for the XLib backend * @width: the new width of the surface * @height: the new height of the surface - * + * * Informs cairo of the new size of the X Drawable underlying the * surface. For a surface created for a Window (rather than a Pixmap), * this function must be called each time the size of the window @@ -2041,7 +2041,7 @@ cairo_xlib_surface_set_size (cairo_surface_t *abstract_surface, * @drawable: the new drawable for the surface * @width: the width of the new drawable * @height: the height of the new drawable - * + * * Informs cairo of a new X Drawable underlying the * surface. The drawable must match the display, screen * and format of the existing drawable or the application @@ -2258,7 +2258,7 @@ _cairo_xlib_surface_add_glyph (Display *dpy, * an origin at (0,0) and an x and y bounding box "offset" which * extends possibly off into negative coordinates, like so: * - * + * * (x,y) <-- probably negative numbers * +----------------+ * | . | @@ -2286,7 +2286,7 @@ _cairo_xlib_surface_add_glyph (Display *dpy, * (width,height) * * Luckily, this is just the negation of the numbers we already have - * sitting around for x and y. + * sitting around for x and y. */ glyph_info.x = - (int) floor(glyph_surface->base.device_x_offset + 0.5); diff --git a/src/cairo.c b/src/cairo.c index 05f3ee94..98308c31 100644 --- a/src/cairo.c +++ b/src/cairo.c @@ -68,7 +68,7 @@ static const cairo_t cairo_nil = { * _cairo_error: * @status: a status value indicating an error, (eg. not * CAIRO_STATUS_SUCCESS) - * + * * Checks that status is an error status, but does nothing else. * * All assignments of an error status to any user-visible object @@ -91,7 +91,7 @@ _cairo_error (cairo_status_t status) * @cr: a cairo context * @status: a status value indicating an error, (eg. not * CAIRO_STATUS_SUCCESS) - * + * * Sets cr->status to @status and calls _cairo_error; * * All assignments of an error status to cr->status should happen @@ -116,7 +116,7 @@ _cairo_set_error (cairo_t *cr, cairo_status_t status) /** * cairo_version: - * + * * Returns the version of the cairo library encoded in a single * integer as per CAIRO_VERSION_ENCODE. The encoding ensures that * later versions compare greater than earlier versions. @@ -130,7 +130,7 @@ _cairo_set_error (cairo_t *cr, cairo_status_t status) * * See also cairo_version_string() as well as the compile-time * equivalents %CAIRO_VERSION and %CAIRO_VERSION_STRING. - * + * * Return value: the encoded version. **/ int @@ -141,13 +141,13 @@ cairo_version (void) /** * cairo_version_string: - * + * * Returns the version of the cairo library as a human-readable string * of the form "X.Y.Z". * * See also cairo_version() as well as the compile-time equivalents * %CAIRO_VERSION_STRING and %CAIRO_VERSION. - * + * * Return value: a string containing the version. **/ const char* @@ -159,7 +159,7 @@ cairo_version_string (void) /** * cairo_create: * @target: target surface for the context - * + * * Creates a new #cairo_t with all graphics state parameters set to * default values and with @target as a target surface. The target * surface should be constructed with a backend-specific function such @@ -169,7 +169,7 @@ cairo_version_string (void) * This function references @target, so you can immediately * call cairo_surface_destroy() on it if you don't need to * maintain a separate reference to it. - * + * * Return value: a newly allocated #cairo_t with a reference * count of 1. The initial reference count should be released * with cairo_destroy() when you are done using the #cairo_t. @@ -210,9 +210,9 @@ cairo_create (cairo_surface_t *target) /** * cairo_reference: * @cr: a #cairo_t - * + * * Increases the reference count on @cr by one. This prevents - * @cr from being destroyed until a matching call to cairo_destroy() + * @cr from being destroyed until a matching call to cairo_destroy() * is made. * * Return value: the referenced #cairo_t. @@ -236,7 +236,7 @@ cairo_reference (cairo_t *cr) /** * cairo_destroy: * @cr: a #cairo_t - * + * * Decreases the reference count on @cr by one. If the result * is zero, then @cr and all associated resources are freed. * See cairo_reference(). @@ -271,7 +271,7 @@ cairo_destroy (cairo_t *cr) /** * cairo_save: * @cr: a #cairo_t - * + * * Makes a copy of the current state of @cr and saves it * on an internal stack of saved states for @cr. When * cairo_restore() is called, @cr will be restored to @@ -307,7 +307,7 @@ slim_hidden_def(cairo_save); /** * cairo_restore: * @cr: a #cairo_t - * + * * Restores @cr to the state saved by a preceding call to * cairo_save() and removes that state from the stack of * saved states. @@ -545,7 +545,7 @@ slim_hidden_def(cairo_pop_group_to_source); * cairo_set_operator: * @cr: a #cairo_t * @op: a compositing operator, specified as a #cairo_operator_t - * + * * Sets the compositing operator to be used for all drawing * operations. See #cairo_operator_t for details on the semantics of * each available compositing operator. @@ -571,7 +571,7 @@ cairo_set_operator (cairo_t *cr, cairo_operator_t op) * @red: red component of color * @green: green component of color * @blue: blue component of color - * + * * Sets the source pattern within @cr to an opaque color. This opaque * color will then be used for any subsequent drawing operation until * a new source pattern is set. @@ -600,7 +600,7 @@ cairo_set_source_rgb (cairo_t *cr, double red, double green, double blue) * @green: green component of color * @blue: blue component of color * @alpha: alpha component of color - * + * * Sets the source pattern within @cr to a translucent color. This * color will then be used for any subsequent drawing operation until * a new source pattern is set. @@ -630,7 +630,7 @@ cairo_set_source_rgba (cairo_t *cr, * @surface: a surface to be used to set the source pattern * @x: User-space X coordinate for surface origin * @y: User-space Y coordinate for surface origin - * + * * This is a convenience function for creating a pattern from @surface * and setting it as the source in @cr with cairo_set_source(). * @@ -673,7 +673,7 @@ cairo_set_source_surface (cairo_t *cr, * @cr: a cairo context * @source: a #cairo_pattern_t to be used as the source for * subsequent drawing operations. - * + * * Sets the source pattern within @cr to @source. This pattern * will then be used for any subsequent drawing operation until a new * source pattern is set. @@ -711,9 +711,9 @@ cairo_set_source (cairo_t *cr, cairo_pattern_t *source) /** * cairo_get_source: * @cr: a cairo context - * + * * Gets the current source pattern for @cr. - * + * * Return value: the current source pattern. This object is owned by * cairo. To keep a reference to it, you must call * cairo_pattern_reference(). @@ -731,7 +731,7 @@ cairo_get_source (cairo_t *cr) * cairo_set_tolerance: * @cr: a #cairo_t * @tolerance: the tolerance, in device units (typically pixels) - * + * * Sets the tolerance used when converting paths into trapezoids. * Curved segments of the path will be subdivided until the maximum * deviation between the original path and the polygonal approximation @@ -757,7 +757,7 @@ cairo_set_tolerance (cairo_t *cr, double tolerance) * cairo_set_antialias: * @cr: a #cairo_t * @antialias: the new antialiasing mode - * + * * Set the antialiasing mode of the rasterizer used for drawing shapes. * This value is a hint, and a particular backend may or may not support * a particular value. At the current time, no backend supports @@ -781,7 +781,7 @@ cairo_set_antialias (cairo_t *cr, cairo_antialias_t antialias) * cairo_set_fill_rule: * @cr: a #cairo_t * @fill_rule: a fill rule, specified as a #cairo_fill_rule_t - * + * * Set the current fill rule within the cairo context. The fill rule * is used to determine which regions are inside or outside a complex * (potentially self-intersecting) path. The current fill rule affects @@ -803,7 +803,7 @@ cairo_set_fill_rule (cairo_t *cr, cairo_fill_rule_t fill_rule) * cairo_set_line_width: * @cr: a #cairo_t * @width: a line width - * + * * Sets the current line width within the cairo context. The line * width value specifies the diameter of a pen that is circular in * user space, (though device-space pen may be an ellipse in general @@ -842,7 +842,7 @@ cairo_set_line_width (cairo_t *cr, double width) * cairo_set_line_cap: * @cr: a cairo context, as a #cairo_t * @line_cap: a line cap style, as a #cairo_line_cap_t - * + * * Sets the current line cap style within the cairo context. See * #cairo_line_cap_t for details about how the available line cap * styles are drawn. @@ -894,7 +894,7 @@ cairo_set_line_join (cairo_t *cr, cairo_line_join_t line_join) * @dashes: an array specifying alternate lengths of on and off stroke portions * @num_dashes: the length of the dashes array * @offset: an offset into the dash pattern at which the stroke should start - * + * * Sets the dash pattern to be used by cairo_stroke(). A dash pattern * is specified by @dashes, an array of positive values. Each value * provides the length of alternate "on" and "off" portions of the @@ -947,7 +947,7 @@ cairo_set_miter_limit (cairo_t *cr, double limit) * @cr: a cairo context * @tx: amount to translate in the X direction * @ty: amount to translate in the Y direction - * + * * Modifies the current transformation matrix (CTM) by translating the * user-space origin by (@tx, @ty). This offset is interpreted as a * user-space coordinate according to the CTM in place before the new @@ -970,7 +970,7 @@ cairo_translate (cairo_t *cr, double tx, double ty) * @cr: a cairo context * @sx: scale factor for the X dimension * @sy: scale factor for the Y dimension - * + * * Modifies the current transformation matrix (CTM) by scaling the X * and Y user-space axes by @sx and @sy respectively. The scaling of * the axes takes place after any existing transformation of user @@ -993,7 +993,7 @@ cairo_scale (cairo_t *cr, double sx, double sy) * @cr: a cairo context * @angle: angle (in radians) by which the user-space axes will be * rotated - * + * * Modifies the current transformation matrix (CTM) by rotating the * user-space axes by @angle radians. The rotation of the axes takes * places after any existing transformation of user space. The @@ -1015,7 +1015,7 @@ cairo_rotate (cairo_t *cr, double angle) * cairo_transform: * @cr: a cairo context * @matrix: a transformation to be applied to the user-space axes - * + * * Modifies the current transformation matrix (CTM) by applying * @matrix as an additional transformation. The new transformation of * user space takes place after any existing transformation. @@ -1036,7 +1036,7 @@ cairo_transform (cairo_t *cr, * cairo_set_matrix: * @cr: a cairo context * @matrix: a transformation matrix from user space to device space - * + * * Modifies the current transformation matrix (CTM) by setting it * equal to @matrix. **/ @@ -1055,7 +1055,7 @@ cairo_set_matrix (cairo_t *cr, /** * cairo_identity_matrix: * @cr: a cairo context - * + * * Resets the current transformation matrix (CTM) by setting it equal * to the identity matrix. That is, the user-space and device-space * axes will be aligned and one user-space unit will transform to one @@ -1077,7 +1077,7 @@ cairo_identity_matrix (cairo_t *cr) * @cr: a cairo context * @x: X value of coordinate (in/out parameter) * @y: Y value of coordinate (in/out parameter) - * + * * Transform a coordinate from user space to device space by * multiplying the given point by the current transformation matrix * (CTM). @@ -1098,7 +1098,7 @@ cairo_user_to_device (cairo_t *cr, double *x, double *y) * @cr: a cairo context * @dx: X component of a distance vector (in/out parameter) * @dy: Y component of a distance vector (in/out parameter) - * + * * Transform a distance vector from user space to device space. This * function is similar to cairo_user_to_device() except that the * translation components of the CTM will be ignored when transforming @@ -1120,7 +1120,7 @@ cairo_user_to_device_distance (cairo_t *cr, double *dx, double *dy) * @cr: a cairo * @x: X value of coordinate (in/out parameter) * @y: Y value of coordinate (in/out parameter) - * + * * Transform a coordinate from device space to user space by * multiplying the given point by the inverse of the current * transformation matrix (CTM). @@ -1141,7 +1141,7 @@ cairo_device_to_user (cairo_t *cr, double *x, double *y) * @cr: a cairo context * @dx: X component of a distance vector (in/out parameter) * @dy: Y component of a distance vector (in/out parameter) - * + * * Transform a distance vector from device space to user space. This * function is similar to cairo_device_to_user() except that the * translation components of the inverse CTM will be ignored when @@ -1205,7 +1205,7 @@ slim_hidden_def(cairo_move_to); /** * cairo_new_sub_path: * @cr: a cairo context - * + * * Begin a new subpath. Note that the existing path is not * affected. After this call there will be no current point. * @@ -1318,7 +1318,7 @@ cairo_curve_to (cairo_t *cr, * @radius: the radius of the arc * @angle1: the start angle, in radians * @angle2: the end angle, in radians - * + * * Adds a circular arc of the given @radius to the current path. The * arc is centered at (@xc, @yc), begins at @angle1 and proceeds in * the direction of increasing angles to end at @angle2. If @angle2 is @@ -1388,7 +1388,7 @@ cairo_arc (cairo_t *cr, * @radius: the radius of the arc * @angle1: the start angle, in radians * @angle2: the end angle, in radians - * + * * Adds a circular arc of the given @radius to the current path. The * arc is centered at (@xc, @yc), begins at @angle1 and proceeds in * the direction of decreasing angles to end at @angle2. If @angle2 is @@ -1619,7 +1619,7 @@ cairo_stroke_to_path (cairo_t *cr) /** * cairo_close_path: * @cr: a cairo context - * + * * Adds a line segment to the path from the current point to the * beginning of the current subpath, (the most recent point passed to * cairo_move_to()), and closes this subpath. After this call the @@ -1649,7 +1649,7 @@ slim_hidden_def(cairo_close_path); /** * cairo_paint: * @cr: a cairo context - * + * * A drawing operator that paints the current source everywhere within * the current clip region. **/ @@ -1668,7 +1668,7 @@ cairo_paint (cairo_t *cr) * cairo_paint_with_alpha: * @cr: a cairo context * @alpha: alpha value, between 0 (transparent) and 1 (opaque) - * + * * A drawing operator that paints the current source everywhere within * the current clip region using a mask of constant alpha value * @alpha. The effect is similar to cairo_paint(), but the drawing @@ -1745,7 +1745,7 @@ cairo_mask (cairo_t *cr, * A drawing operator that paints the current source * using the alpha channel of @surface as a mask. (Opaque * areas of @surface are painted with the source, transparent - * areas are not painted.) + * areas are not painted.) */ void cairo_mask_surface (cairo_t *cr, @@ -1772,7 +1772,7 @@ cairo_mask_surface (cairo_t *cr, /** * cairo_stroke: * @cr: a cairo context - * + * * A drawing operator that strokes the current path according to the * current line width, line join, line cap, and dash settings. After * cairo_stroke, the current path will be cleared from the cairo @@ -1791,7 +1791,7 @@ cairo_stroke (cairo_t *cr) /** * cairo_stroke_preserve: * @cr: a cairo context - * + * * A drawing operator that strokes the current path according to the * current line width, line join, line cap, and dash settings. Unlike * cairo_stroke(), cairo_stroke_preserve preserves the path within the @@ -1816,7 +1816,7 @@ slim_hidden_def(cairo_stroke_preserve); /** * cairo_fill: * @cr: a cairo context - * + * * A drawing operator that fills the current path according to the * current fill rule, (each sub-path is implicitly closed before being * filled). After cairo_fill, the current path will be cleared from @@ -1834,7 +1834,7 @@ cairo_fill (cairo_t *cr) /** * cairo_fill_preserve: * @cr: a cairo context - * + * * A drawing operator that fills the current path according to the * current fill rule, (each sub-path is implicitly closed before being * filled). Unlike cairo_fill(), cairo_fill_preserve preserves the @@ -1943,7 +1943,7 @@ cairo_fill_extents (cairo_t *cr, /** * cairo_clip: * @cr: a cairo context - * + * * Establishes a new clip region by intersecting the current clip * region with the current path as it would be filled by cairo_fill() * and according to the current fill rule (see cairo_set_fill_rule()). @@ -1973,7 +1973,7 @@ cairo_clip (cairo_t *cr) /** * cairo_clip_preserve: * @cr: a cairo context - * + * * Establishes a new clip region by intersecting the current clip * region with the current path as it would be filled by cairo_fill() * and according to the current fill rule (see cairo_set_fill_rule()). @@ -2007,7 +2007,7 @@ slim_hidden_def(cairo_clip_preserve); /** * cairo_reset_clip: * @cr: a cairo context - * + * * Reset the current clip region to its original, unrestricted * state. That is, set the clip region to an infinitely large shape * containing the target surface. Equivalently, if infinity is too @@ -2037,7 +2037,7 @@ cairo_reset_clip (cairo_t *cr) * @family: a font family name, encoded in UTF-8 * @slant: the slant for the font * @weight: the weight for the font - * + * * Selects a family and style of font from a simplified description as * a family name, slant and weight. This function is meant to be used * only for applications with simple font needs: Cairo doesn't provide @@ -2063,7 +2063,7 @@ cairo_select_font_face (cairo_t *cr, /** * cairo_get_font_face: * @cr: a #cairo_t - * + * * Gets the current font face for a #cairo_t. * * Return value: the current font object. Can return %NULL @@ -2093,7 +2093,7 @@ cairo_get_font_face (cairo_t *cr) * @cr: a #cairo_t * @extents: a #cairo_font_extents_t object into which the results * will be stored. - * + * * Gets the font extents for the currently selected font. **/ void @@ -2133,7 +2133,7 @@ cairo_set_font_face (cairo_t *cr, * cairo_set_font_size: * @cr: a #cairo_t * @size: the new font size, in user space units - * + * * Sets the current font matrix to a scale by a factor of @size, replacing * any font matrix previously set with cairo_set_font_size() or * cairo_set_font_matrix(). This results in a font size of @size user space @@ -2194,7 +2194,7 @@ cairo_get_font_matrix (cairo_t *cr, cairo_matrix_t *matrix) * cairo_set_font_options: * @cr: a #cairo_t * @options: font options to use - * + * * Sets a set of custom font rendering options for the #cairo_t. * Rendering options are derived by merging these options with the * options derived from underlying surface; if the value in @options @@ -2218,7 +2218,7 @@ cairo_set_font_options (cairo_t *cr, * @cr: a #cairo_t * @options: a #cairo_font_options_t object into which to store * the retrieved options. All existing values are overwritten - * + * * Retrieves font rendering options set via #cairo_set_font_options. * Note that the returned options do not include any options derived * from the underlying surface; they are literally the options @@ -2277,7 +2277,7 @@ BAIL: * @utf8: a string of text, encoded in UTF-8 * @extents: a #cairo_text_extents_t object into which the results * will be stored - * + * * Gets the extents for a string of text. The extents describe a * user-space rectangle that encloses the "inked" portion of the text, * (as it would be drawn by cairo_show_text()). Additionally, the @@ -2341,14 +2341,14 @@ cairo_text_extents (cairo_t *cr, * @num_glyphs: the number of elements in @glyphs * @extents: a #cairo_text_extents_t object into which the results * will be stored - * + * * Gets the extents for an array of glyphs. The extents describe a * user-space rectangle that encloses the "inked" portion of the * glyphs, (as they would be drawn by cairo_show_glyphs()). * Additionally, the x_advance and y_advance values indicate the * amount by which the current point would be advanced by * cairo_show_glyphs. - * + * * Note that whitespace glyphs do not contribute to the size of the * rectangle (extents.width and extents.height). **/ @@ -2371,7 +2371,7 @@ cairo_glyph_extents (cairo_t *cr, * cairo_show_text: * @cr: a cairo context * @utf8: a string of text encoded in UTF-8 - * + * * A drawing operator that generates the shape from a string of UTF-8 * characters, rendered according to the current font_face, font_size * (font_matrix), and font_options. @@ -2505,9 +2505,9 @@ cairo_glyph_path (cairo_t *cr, cairo_glyph_t *glyphs, int num_glyphs) /** * cairo_get_operator: * @cr: a cairo context - * + * * Gets the current compositing operator for a cairo context. - * + * * Return value: the current compositing operator. **/ cairo_operator_t @@ -2519,9 +2519,9 @@ cairo_get_operator (cairo_t *cr) /** * cairo_get_tolerance: * @cr: a cairo context - * + * * Gets the current tolerance value, as set by cairo_set_tolerance(). - * + * * Return value: the current tolerance value. **/ double @@ -2533,9 +2533,9 @@ cairo_get_tolerance (cairo_t *cr) /** * cairo_get_antialias: * @cr: a cairo context - * + * * Gets the current shape antialiasing mode, as set by cairo_set_shape_antialias(). - * + * * Return value: the current shape antialiasing mode. **/ cairo_antialias_t @@ -2549,7 +2549,7 @@ cairo_get_antialias (cairo_t *cr) * @cr: a cairo context * @x: return value for X coordinate of the current point * @y: return value for Y coordinate of the current point - * + * * Gets the current point of the current path, which is * conceptually the final point reached by the path so far. * @@ -2592,9 +2592,9 @@ slim_hidden_def(cairo_get_current_point); /** * cairo_get_fill_rule: * @cr: a cairo context - * + * * Gets the current fill rule, as set by cairo_set_fill_rule(). - * + * * Return value: the current fill rule. **/ cairo_fill_rule_t @@ -2606,7 +2606,7 @@ cairo_get_fill_rule (cairo_t *cr) /** * cairo_get_line_width: * @cr: a cairo context - * + * * Return value: the current line width value exactly as set by * cairo_set_line_width(). Note that the value is unchanged even if * the CTM has changed between the calls to cairo_set_line_width() and @@ -2621,9 +2621,9 @@ cairo_get_line_width (cairo_t *cr) /** * cairo_get_line_cap: * @cr: a cairo context - * + * * Gets the current line cap style, as set by cairo_set_line_cap(). - * + * * Return value: the current line cap style. **/ cairo_line_cap_t @@ -2635,9 +2635,9 @@ cairo_get_line_cap (cairo_t *cr) /** * cairo_get_line_join: * @cr: a cairo context - * + * * Gets the current line join style, as set by cairo_set_line_join(). - * + * * Return value: the current line join style. **/ cairo_line_join_t @@ -2649,9 +2649,9 @@ cairo_get_line_join (cairo_t *cr) /** * cairo_get_miter_limit: * @cr: a cairo context - * + * * Gets the current miter limit, as set by cairo_set_miter_limit(). - * + * * Return value: the current miter limit. **/ double @@ -2676,7 +2676,7 @@ cairo_get_matrix (cairo_t *cr, cairo_matrix_t *matrix) /** * cairo_get_target: * @cr: a cairo context - * + * * Gets the target surface for the cairo context as passed to * cairo_create(). * @@ -2685,7 +2685,7 @@ cairo_get_matrix (cairo_t *cr, cairo_matrix_t *matrix) * (ie. cairo_status() <literal>!=</literal> %CAIRO_STATUS_SUCCESS). * A nil surface is indicated by cairo_surface_status() * <literal>!=</literal> %CAIRO_STATUS_SUCCESS. - * + * * Return value: the target surface. This object is owned by cairo. To * keep a reference to it, you must call cairo_surface_reference(). **/ @@ -2726,11 +2726,11 @@ cairo_get_group_target (cairo_t *cr) /** * cairo_copy_path: * @cr: a cairo context - * + * * Creates a copy of the current path and returns it to the user as a * #cairo_path_t. See #cairo_path_data_t for hints on how to iterate * over the returned data structure. - * + * * This function will always return a valid pointer, but the result * will have no data (<literal>data==NULL</literal> and * <literal>num_data==0</literal>), if either of the following @@ -2761,7 +2761,7 @@ cairo_copy_path (cairo_t *cr) /** * cairo_copy_path_flat: * @cr: a cairo context - * + * * Gets a flattened copy of the current path and returns it to the * user as a #cairo_path_t. See #cairo_path_data_t for hints on * how to iterate over the returned data structure. @@ -2786,7 +2786,7 @@ cairo_copy_path (cairo_t *cr) * <literal>path->status</literal> will contain the same status that * would be returned by cairo_status().</listitem> * </orderedlist> - * + * * Return value: the copy of the current path. The caller owns the * returned object and should call cairo_path_destroy() when finished * with it. @@ -2804,7 +2804,7 @@ cairo_copy_path_flat (cairo_t *cr) * cairo_append_path: * @cr: a cairo context * @path: path to be appended - * + * * Append the @path onto the current path. The @path may be either the * return value from one of cairo_copy_path() or * cairo_copy_path_flat() or it may be constructed manually. See diff --git a/src/cairo.h b/src/cairo.h index 9fa44dc4..1edc88fe 100644 --- a/src/cairo.h +++ b/src/cairo.h @@ -341,7 +341,7 @@ cairo_set_tolerance (cairo_t *cr, double tolerance); * @CAIRO_ANTIALIAS_SUBPIXEL: Perform antialiasing by taking * advantage of the order of subpixel elements on devices * such as LCD panels - * + * * Specifies the type of antialiasing to do when rendering text or shapes. **/ typedef enum _cairo_antialias { @@ -693,7 +693,7 @@ typedef struct { * or <firstterm>external leading</firstterm>. When space * is at a premium, most fonts can be set with only * a distance of @ascent+@descent between lines. - * @max_x_advance: the maximum distance in the X direction that + * @max_x_advance: the maximum distance in the X direction that * the the origin is advanced for any glyph in the font. * @max_y_advance: the maximum distance in the Y direction that * the the origin is advanced for any glyph in the font. @@ -744,7 +744,7 @@ typedef enum _cairo_font_weight { * with red at the top * @CAIRO_SUBPIXEL_ORDER_VBGR: Subpixel elements are arranged vertically * with blue at the top - * + * * The subpixel order specifies the order of color elements within * each pixel on the display device when rendering with an * antialiasing mode of %CAIRO_ANTIALIAS_SUBPIXEL. diff --git a/src/cairoint.h b/src/cairoint.h index 4d691789..700e418e 100644 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -339,7 +339,7 @@ cairo_private void _cairo_rectangle_intersect (cairo_rectangle_fixed_t *dest, cairo_rectangle_fixed_t *src); -/* cairo_array.c structures and functions */ +/* cairo_array.c structures and functions */ typedef struct _cairo_array cairo_array_t; struct _cairo_array { @@ -751,11 +751,11 @@ struct _cairo_surface_backend { (*get_extents) (void *surface, cairo_rectangle_fixed_t *rectangle); - /* + /* * This is an optional entry to let the surface manage its own glyph * resources. If null, render against this surface, using image - * surfaces as glyphs. - */ + * surfaces as glyphs. + */ cairo_int_status_t (*old_show_glyphs) (cairo_scaled_font_t *font, cairo_operator_t op, diff --git a/test/buffer-diff.c b/test/buffer-diff.c index 89af811c..e0f42dae 100644 --- a/test/buffer-diff.c +++ b/test/buffer-diff.c @@ -12,7 +12,7 @@ * Richard Worth makes no representations about the suitability of this * software for any purpose. It is provided "as is" without express * or implied warranty. - * + * * RICHARD WORTH DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN * NO EVENT SHALL RICHARD WORTH BE LIABLE FOR ANY SPECIAL, INDIRECT OR diff --git a/test/buffer-diff.h b/test/buffer-diff.h index fd9662ea..7394a2fe 100644 --- a/test/buffer-diff.h +++ b/test/buffer-diff.h @@ -12,7 +12,7 @@ * Richard Worth makes no representations about the suitability of this * software for any purpose. It is provided "as is" without express * or implied warranty. - * + * * RICHARD WORTH DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN * NO EVENT SHALL RICHARD WORTH BE LIABLE FOR ANY SPECIAL, INDIRECT OR diff --git a/test/cairo-test.c b/test/cairo-test.c index fa9a0b0b..09e80121 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -1326,7 +1326,7 @@ cleanup_pdf (void *closure) #include "cairo-svg.h" static const char *svg_ignored_tests[] = { - /* rectangle-rounding-error uses CAIRO_ANTIALIAS_NONE, + /* rectangle-rounding-error uses CAIRO_ANTIALIAS_NONE, * which is not supported */ "rectangle-rounding-error", NULL @@ -1859,7 +1859,7 @@ cairo_test_create_surface_from_png (const char *filename) image = cairo_image_surface_create_from_png (filename); if (cairo_surface_status(image)) { - /* expect not found when running with srcdir != builddir + /* expect not found when running with srcdir != builddir * such as when 'make distcheck' is run */ if (srcdir) { diff --git a/test/cairo-test.h b/test/cairo-test.h index 73271822..c5e122d8 100644 --- a/test/cairo-test.h +++ b/test/cairo-test.h @@ -83,7 +83,7 @@ typedef cairo_test_status_t (*cairo_test_draw_function_t) (cairo_t *cr, int wid * * cairo_test() accepts a draw function which will be called once for * each testable backend. The following checks will be performed for - * each backend: + * each backend: * * 1) If draw() does not return CAIRO_TEST_SUCCESS then this backend * fails. diff --git a/test/imagediff.c b/test/imagediff.c index 41d065cc..90126ed2 100644 --- a/test/imagediff.c +++ b/test/imagediff.c @@ -12,7 +12,7 @@ * Richard Worth makes no representations about the suitability of this * software for any purpose. It is provided "as is" without express * or implied warranty. - * + * * RICHARD WORTH DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN * NO EVENT SHALL RICHARD WORTH BE LIABLE FOR ANY SPECIAL, INDIRECT OR diff --git a/test/rectangle-rounding-error.c b/test/rectangle-rounding-error.c index 7ce22d53..c1836342 100644 --- a/test/rectangle-rounding-error.c +++ b/test/rectangle-rounding-error.c @@ -25,10 +25,10 @@ #include "cairo-test.h" -/* Test case for: - * - * https://bugs.freedesktop.org/show_bug.cgi?id=4137 - */ +/* Test case for: + * + * https://bugs.freedesktop.org/show_bug.cgi?id=4137 + */ cairo_test_t test = { "rectangle-rounding-error", |