summaryrefslogtreecommitdiff
path: root/src/cairo-path.c
AgeCommit message (Collapse)AuthorFilesLines
2005-05-03Fills as paths patch originally by Owen Taylor.Kristian Høgsberg1-0/+9
Make sure we have a current point for the relative path operators. Add fill_path backend method. Implement fill_path in the PDF backend.
2005-05-02Use correct arguments to compute absolute positions.Keith Packard1-4/+4
Test cairo_rel_move_to, cairo_rel_line_to and cairo_rel_curve_to reviewed by: cworth
2005-04-26Originally: 2005-04-19 Carl Worth <cworth@cworth.org>Carl Worth1-37/+56
Add cairo_stroke_preserve, cairo_fill_preserve, and cairo_clip_preserve. Rip the path out of cairo_gstate_t. Add path to cairo_t. Bring in most of the path code that used to live in cairo-gstate.c Move arc generation code into its own file. Accept path+ctm_inverse+tolerance instead of gstate. Absorb flattening and device space->user space conversion that used to be in _cairo_gstate_intepret_path. Prefer cairo_fixed_t parameters over ciaro_point_t for cross-file interfaces. Track changes in _cairo_path_fixed interfaces. Port to use cairo_fill_preserve rather than cairo_save/cairo_restore which no longer work for saving the path. Remove get and set of current point since it is no longer affected by cairo_save and cairo_restore. Add get and set testing for cairo_matrix_t.
2005-03-23Clean up names of cairo_path internals.Carl Worth1-147/+146
2005-03-23Rename cairo_path_real_t to cairo_path_fixed_t and fix all _cairo_path ↵Carl Worth1-37/+37
functions to be named as _cairo_path_fixed functions. Track name change of cairo_path_real_t and _cairo_path_fixed functions.
2005-03-23Begin the process of breaking up cairoint.h, moving structure definitions of ↵Carl Worth1-0/+2
cairo_t, cairo_gstate_t, and cairo_path_real_t into their own header files. Track changes to header files, reaching into the new private headers where necessary.
2005-03-18* src/cairo.c: (cairo_copy_path), (cairo_copy_path_flat), ↵Carl Worth1-27/+35
(cairo_append_path): Rename cairo_copy_path_data, cairop_copy_path_data_flat, and cairo_append_path_data to cairo_copy_path, cairo_copy_path_flat, and cairo_append_path. Add new cairo_path_t, containing a cairo_path_data_t array and an explicit length. Remove CAIRO_PATH_END_PATH terminator from cairo_path_data_t. Rename the internal path object from cairo_path_t to cairo_path_real_t.
2005-03-09Rename all the cairo_current functions to cairo_get functions instead. Add ↵Carl Worth1-1/+1
documentation for all of these functions (and a few others as well). Add support so that old binarys should still run and old source should still compile, (though we'll rip that out again on the API Shakeup flag day).
2005-02-22Switch from broken cworth@isi.edu address to canonical cworth@cworth.org ↵Carl Worth1-1/+1
address.
2005-02-16Patches from Mike Owens <etc@filespanker.com>:Kristian Høgsberg1-0/+2
Free rows if we fail early in this function. Clean up path if we run out of memory.
2004-10-21Convert all files to utf-8. Add copyright information to cairo_png_surface.c.Carl Worth1-1/+1
2004-09-04Add the MPL as a new license option, in addition to the LGPL.Carl Worth1-10/+27
2004-08-02Fix to explicitly refer to GNU Lesser Public License 2.1 rather than the ↵Carl Worth1-7/+5
Library Public License version 2 or 'any later version'
2004-08-02Change from MIT license to LGPL.Carl Worth1-20/+14
2004-02-12Add typedefs for new callbacks to be used by cairo_current_path: ↵Carl Worth1-61/+50
cairo_move_to_func, cairo_line_to_func, cairo_curve_to_func, and cairo_close_path_func. cairo_path.last_move_point and cairo_path.current_point are now fixed-point not doubles for consistency. Now accept 4 explicit function pointers rather than a structure. Eliminate unnecessary done_path callback. Track change in _cairo_path_interpret. Code previously in done_path callback is now here immediately after call to _cairo_path_interpret. Internal _cairo_path API modified to accept fixed-point data everywhere. Much cleaner this way. Have to convert doubles to fixed-point to track changes in _cairo_path API. Keep data in fixed-point rather than going through intermediate doubles. Track changes in _cairo_path API. New function to help when working with freetype.
2003-12-16Move all current_point state fields from cairo_gstate_t to cairo_path_t.Carl Worth1-4/+106
Add current_point state. (_cairo_path_current_point): New function. (_cairo_path_rel_move_to): (_cairo_path_rel_line_to): (_cairo_path_rel_curve_to): New functions. Eliminate current_point state. (_cairo_gstate_show_text): (_cairo_gstate_text_path): Use new _cairo_path_current_point.
2003-12-08Clean up cairo_path_callbacks to have move_to, line_to, curve_to, abd ↵Carl Worth1-49/+7
close_path instead of add_edge, add_spline, and done_sub_path. Much, much nicer. Provide cairo_polygon_move_to and cairo_polygon_line_to instead of cairo_polygon_add_point. Track change in cairo_polygon interface.
2003-11-06Bumped version to 0.1.12 for new cairo_in_stroke and cairo_in_fill functions.Carl Worth1-10/+10
Added new cairo_in_stroke and cairo_in_fill. * src/cairo_gstate.c (_cairo_gstate_in_stroke): (_cairo_gstate_in_fill): New functions to support for cairo_in_stroke and cairo_in_fill. Many thanks to Thomas Hunger <info@teh-web.de> for the initial implementation which demonstrated how easy this would be and pushed me to go and write it already. Fixed to use _cairo_fixed_from_double instead of XDoubleToFixed.
2003-10-23Fixed copyright attribution to refer to "University of Southern CaliforniaCarl Worth1-1/+1
2003-10-04Remove abbreviation of "point" as "pt". Fix cairo_destrot, ↵Carl Worth1-39/+39
cairo_set_target_surface, and cairo_set_target_image to act appropriately in the face of non-zero status.
2003-09-27Fixed some internal enums that had been mistakenly converted to lowercase at ↵Carl Worth1-19/+18
some point.
2003-09-25Removed support for cairo_path_t and related functions. Bumped version to 0.1.5Carl Worth1-177/+11
2003-09-25Expose a cairo_path_t object with related functions: cairo_set_path, ↵Carl Worth1-11/+177
cairo_current_path, cairo_path_move_to, cairo_path_line_to, etc.
2003-07-31Mark const.Richard Henderson1-1/+1
Likewise. Likewise. Likewise for cb.
2003-07-30Made all changes necessary to abandon the Xc library, (sucking the ↵Carl Worth1-17/+17
functionality up into cairo_surface_t instead). Eliminated most of the remaining X datatypes (XFixed, XPointFixed, XLineFixed, XTrapezoid). Fixed some numerical problems relating to pen initialization and intersection calculation.
2003-07-18Fixed some inconsistent tag/typedef names I missed the first time.Carl Worth1-6/+6
2003-07-18Renamed everything from Xr* to cairo_*Carl Worth1-0/+436