home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 February / PCWK0296.iso / sharewar / dos / program / gs300sr1 / gs300sr1.exe / GSDEVICE.H < prev    next >
C/C++ Source or Header  |  1994-07-27  |  2KB  |  57 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. /* gsdevice.h */
  20. /* Device and page control API */
  21.  
  22. #ifndef gsdevice_INCLUDED
  23. #  define gsdevice_INCLUDED
  24.  
  25. #ifndef gx_device_DEFINED
  26. #  define gx_device_DEFINED
  27. typedef struct gx_device_s gx_device;
  28. #endif
  29. #ifndef gs_param_list_DEFINED
  30. #  define gs_param_list_DEFINED
  31. typedef struct gs_param_list_s gs_param_list;
  32. #endif
  33. int gs_flushpage(P1(gs_state *));
  34. int gs_copypage(P1(gs_state *));
  35. int gs_output_page(P3(gs_state *, int, int));
  36. int gs_copyscanlines(P6(gx_device *, int, byte *, uint, int *, uint *));
  37. gx_device *gs_getdevice(P1(int));
  38. int gs_copydevice(P3(gx_device **, const gx_device *, gs_memory_t *));
  39. int gs_makeimagedevice(P7(gx_device **, const gs_matrix *, uint, uint,
  40.               const byte *, int, gs_memory_t *));
  41. void gs_nulldevice(P1(gs_state *));
  42. int gs_setdevice(P2(gs_state *, gx_device *));
  43. int gs_setdevice_no_erase(P2(gs_state *, gx_device *)); /* returns 1 */
  44.                         /* if erasepage required */
  45. gx_device *gs_currentdevice(P1(const gs_state *));
  46. /* gzstate.h redefines the following: */
  47. #ifndef gs_currentdevice_inline
  48. #  define gs_currentdevice_inline(pgs) gs_currentdevice(pgs)
  49. #endif
  50. const char *gs_devicename(P1(const gx_device *));
  51. void gs_deviceinitialmatrix(P2(gx_device *, gs_matrix *));
  52. int gs_getdeviceparams(P2(gx_device *, gs_param_list *));
  53. int gs_putdeviceparams(P2(gx_device *, gs_param_list *));
  54. int gs_closedevice(P1(gx_device *));
  55.  
  56. #endif                    /* gsdevice_INCLUDED */
  57.