home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 February / PCWK0296.iso / sharewar / dos / program / gs300sr1 / gs300sr1.exe / GSLINE.H < prev    next >
C/C++ Source or Header  |  1994-07-27  |  2KB  |  61 lines

  1. /* Copyright (C) 1994 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of Aladdin Ghostscript.
  4.   
  5.   Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  6.   or distributor accepts any responsibility for the consequences of using it,
  7.   or for whether it serves any particular purpose or works at all, unless he
  8.   or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  9.   License (the "License") for full details.
  10.   
  11.   Every copy of Aladdin Ghostscript must include a copy of the License,
  12.   normally in a plain ASCII text file named PUBLIC.  The License grants you
  13.   the right to copy, modify and redistribute Aladdin Ghostscript, but only
  14.   under certain conditions described in the License.  Among other things, the
  15.   License requires that the copyright notice and this notice be preserved on
  16.   all copies.
  17. */
  18.  
  19. /* gsline.h */
  20. /* Line parameter and quality definitions */
  21.  
  22. #ifndef gsline_INCLUDED
  23. #  define gsline_INCLUDED
  24.  
  25. /* Line cap values */
  26. typedef enum {
  27.     gs_cap_butt = 0,
  28.     gs_cap_round = 1,
  29.     gs_cap_square = 2
  30. } gs_line_cap;
  31.  
  32. /* Line join values */
  33. typedef enum {
  34.     gs_join_miter = 0,
  35.     gs_join_round = 1,
  36.     gs_join_bevel = 2
  37. } gs_line_join;
  38.  
  39. /* Procedures */
  40. int    gs_setlinewidth(P2(gs_state *, floatp));
  41. float    gs_currentlinewidth(P1(const gs_state *));
  42. int    gs_setlinecap(P2(gs_state *, gs_line_cap));
  43. gs_line_cap
  44.     gs_currentlinecap(P1(const gs_state *));
  45. int    gs_setlinejoin(P2(gs_state *, gs_line_join));
  46. gs_line_join
  47.     gs_currentlinejoin(P1(const gs_state *));
  48. int    gs_setmiterlimit(P2(gs_state *, floatp));
  49. float    gs_currentmiterlimit(P1(const gs_state *));
  50. int    gs_setdash(P4(gs_state *, const float *, uint, floatp));
  51. uint    gs_currentdash_length(P1(const gs_state *));
  52. const float *
  53.     gs_currentdash_pattern(P1(const gs_state *));
  54. float    gs_currentdash_offset(P1(const gs_state *));
  55. int    gs_setflat(P2(gs_state *, floatp));
  56. float    gs_currentflat(P1(const gs_state *));
  57. int    gs_setstrokeadjust(P2(gs_state *, int));
  58. int    gs_currentstrokeadjust(P1(const gs_state *));
  59.  
  60. #endif                    /* gsline_INCLUDED */
  61.