home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (C) 1989, 1992 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
- */
-
- /* gspath.h */
- /* Client interface to path manipulation facilities */
- /* Requires gsstate.h */
-
- /* Path constructors */
- int gs_newpath(P1(gs_state *)),
- gs_moveto(P3(gs_state *, floatp, floatp)),
- gs_rmoveto(P3(gs_state *, floatp, floatp)),
- gs_lineto(P3(gs_state *, floatp, floatp)),
- gs_rlineto(P3(gs_state *, floatp, floatp)),
- gs_arc(P6(gs_state *, floatp, floatp, floatp, floatp, floatp)),
- gs_arcn(P6(gs_state *, floatp, floatp, floatp, floatp, floatp)),
- gs_arcto(P7(gs_state *, floatp, floatp, floatp, floatp, floatp, float [4])),
- gs_curveto(P7(gs_state *, floatp, floatp, floatp, floatp, floatp, floatp)),
- gs_rcurveto(P7(gs_state *, floatp, floatp, floatp, floatp, floatp, floatp)),
- gs_closepath(P1(gs_state *));
-
- /* Add the current path to the path in the previous graphics state. */
- int gs_upmergepath(P1(gs_state *));
-
- /* Path accessors and transformers */
- int gs_currentpoint(P2(const gs_state *, gs_point *)),
- gs_pathbbox(P2(gs_state *, gs_rect *)),
- gs_flattenpath(P1(gs_state *)),
- gs_reversepath(P1(gs_state *)),
- gs_strokepath(P1(gs_state *));
-
- /* Path enumeration */
- #define gs_pe_moveto 1
- #define gs_pe_lineto 2
- #define gs_pe_curveto 3
- #define gs_pe_closepath 4
- typedef struct gs_path_enum_s gs_path_enum;
- gs_path_enum * gs_path_enum_alloc(P2(gs_memory_t *, client_name_t));
- int gs_path_enum_init(P2(gs_path_enum *, const gs_state *));
- int gs_path_enum_next(P2(gs_path_enum *, gs_point [3])); /* 0 when done */
- void gs_path_enum_cleanup(P1(gs_path_enum *));
-
- /* Clipping */
- int gs_clippath(P1(gs_state *)),
- gs_initclip(P1(gs_state *)),
- gs_clip(P1(gs_state *)),
- gs_eoclip(P1(gs_state *));
-