]> git.ipfire.org Git - thirdparty/cups.git/blob - pstoraster/gsline.h
Import cups.org releases
[thirdparty/cups.git] / pstoraster / gsline.h
1 /* Copyright (C) 1994, 1995, 1996, 1997 Aladdin Enterprises. All rights reserved.
2
3 This file is part of GNU Ghostscript.
4
5 GNU Ghostscript is distributed in the hope that it will be useful, but
6 WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
7 to anyone for the consequences of using it or for whether it serves any
8 particular purpose or works at all, unless he says so in writing. Refer
9 to the GNU General Public License for full details.
10
11 Everyone is granted permission to copy, modify and redistribute GNU
12 Ghostscript, but only under the conditions described in the GNU General
13 Public License. A copy of this license is supposed to have been given
14 to you along with GNU Ghostscript so you can know your rights and
15 responsibilities. It should be in a file named COPYING. Among other
16 things, the copyright notice and this notice must be preserved on all
17 copies.
18
19 Aladdin Enterprises supports the work of the GNU Project, but is not
20 affiliated with the Free Software Foundation or the GNU Project. GNU
21 Ghostscript, as distributed by Aladdin Enterprises, does not require any
22 GNU software to build or run it.
23 */
24
25 /*$Id$ */
26 /* Line parameter and quality definitions */
27
28 #ifndef gsline_INCLUDED
29 # define gsline_INCLUDED
30
31 #include "gslparam.h"
32
33 /* Procedures */
34 int gs_setlinewidth(P2(gs_state *, floatp));
35 float gs_currentlinewidth(P1(const gs_state *));
36 int gs_setlinecap(P2(gs_state *, gs_line_cap));
37
38 gs_line_cap
39 gs_currentlinecap(P1(const gs_state *));
40 int gs_setlinejoin(P2(gs_state *, gs_line_join));
41
42 gs_line_join
43 gs_currentlinejoin(P1(const gs_state *));
44 int gs_setmiterlimit(P2(gs_state *, floatp));
45 float gs_currentmiterlimit(P1(const gs_state *));
46 int gs_setdash(P4(gs_state *, const float *, uint, floatp));
47 uint gs_currentdash_length(P1(const gs_state *));
48 const float *
49 gs_currentdash_pattern(P1(const gs_state *));
50 float gs_currentdash_offset(P1(const gs_state *));
51 int gs_setflat(P2(gs_state *, floatp));
52 float gs_currentflat(P1(const gs_state *));
53 int gs_setstrokeadjust(P2(gs_state *, bool));
54 bool gs_currentstrokeadjust(P1(const gs_state *));
55
56 /* Extensions */
57 void gs_setaccuratecurves(P2(gs_state *, bool));
58 bool gs_currentaccuratecurves(P1(const gs_state *));
59 void gs_setdashadapt(P2(gs_state *, bool));
60 bool gs_currentdashadapt(P1(const gs_state *));
61 int gs_setdotlength(P3(gs_state *, floatp, bool));
62 float gs_currentdotlength(P1(const gs_state *));
63 bool gs_currentdotlength_absolute(P1(const gs_state *));
64
65 /* Imager-level procedures */
66 #ifndef gs_imager_state_DEFINED
67 # define gs_imager_state_DEFINED
68 typedef struct gs_imager_state_s gs_imager_state;
69
70 #endif
71 int gs_imager_setflat(P2(gs_imager_state *, floatp));
72 bool gs_imager_currentdashadapt(P1(const gs_imager_state *));
73 bool gs_imager_currentaccuratecurves(P1(const gs_imager_state *));
74
75 #endif /* gsline_INCLUDED */