gscoord.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* Copyright (C) 1989, 1996 Aladdin Enterprises. All rights reserved.
  2. This software is provided AS-IS with no warranty, either express or
  3. implied.
  4. This software is distributed under license and may not be copied,
  5. modified or distributed except as expressly authorized under the terms
  6. of the license contained in the file LICENSE in this distribution.
  7. For more information about licensing, please refer to
  8. http://www.ghostscript.com/licensing/. For information on
  9. commercial licensing, go to http://www.artifex.com/licensing/ or
  10. contact Artifex Software, Inc., 101 Lucas Valley Road #110,
  11. San Rafael, CA 94903, U.S.A., +1(415)492-9861.
  12. */
  13. /* $Id: gscoord.h,v 1.5 2002/06/16 08:45:42 lpd Exp $ */
  14. /* Interface to graphics state CTM procedures */
  15. /* Requires gsmatrix.h and gsstate.h */
  16. #ifndef gscoord_INCLUDED
  17. # define gscoord_INCLUDED
  18. /* Coordinate system modification */
  19. int gs_initmatrix(gs_state *),
  20. gs_defaultmatrix(const gs_state *, gs_matrix *),
  21. gs_currentmatrix(const gs_state *, gs_matrix *),
  22. gs_setmatrix(gs_state *, const gs_matrix *),
  23. gs_translate(gs_state *, floatp, floatp),
  24. gs_scale(gs_state *, floatp, floatp),
  25. gs_rotate(gs_state *, floatp),
  26. gs_concat(gs_state *, const gs_matrix *);
  27. /* Extensions */
  28. int gs_setdefaultmatrix(gs_state *, const gs_matrix *),
  29. gs_currentcharmatrix(gs_state *, gs_matrix *, bool),
  30. gs_setcharmatrix(gs_state *, const gs_matrix *),
  31. gs_settocharmatrix(gs_state *);
  32. /* Coordinate transformation */
  33. int gs_transform(gs_state *, floatp, floatp, gs_point *),
  34. gs_dtransform(gs_state *, floatp, floatp, gs_point *),
  35. gs_itransform(gs_state *, floatp, floatp, gs_point *),
  36. gs_idtransform(gs_state *, floatp, floatp, gs_point *);
  37. #ifndef gs_imager_state_DEFINED
  38. # define gs_imager_state_DEFINED
  39. typedef struct gs_imager_state_s gs_imager_state;
  40. #endif
  41. int gs_imager_setmatrix(gs_imager_state *, const gs_matrix *);
  42. int gs_imager_idtransform(const gs_imager_state *, floatp, floatp, gs_point *);
  43. #endif /* gscoord_INCLUDED */