Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
/* Copyright (C) 1993, 1996, 1998, 1999 Aladdin Enterprises.  All rights reserved.
2
 
3
  This software is provided AS-IS with no warranty, either express or
4
  implied.
5
 
6
  This software is distributed under license and may not be copied,
7
  modified or distributed except as expressly authorized under the terms
8
  of the license contained in the file LICENSE in this distribution.
9
 
10
  For more information about licensing, please refer to
11
  http://www.ghostscript.com/licensing/. For information on
12
  commercial licensing, go to http://www.artifex.com/licensing/ or
13
  contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14
  San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15
*/
16
 
17
/* $Id: gxclip2.h,v 1.5 2002/06/16 08:45:43 lpd Exp $ */
18
/* Tiled mask clipping device and interface */
19
 
20
#ifndef gxclip2_INCLUDED
21
#  define gxclip2_INCLUDED
22
 
23
#include "gxmclip.h"
24
 
25
/* The structure for tile clipping is the same as for simple mask clipping. */
26
typedef gx_device_mask_clip gx_device_tile_clip;
27
#define st_device_tile_clip st_device_mask_clip
28
/*
29
 * We can't just make this macro empty, since it is processed as a top-level
30
 * declaration and would lead to an extraneous semicolon.  The least damage
31
 * we can do is make it declare a constant (and not static, since static
32
 * would lead to a compiler warning about an unreferenced variable).
33
 */
34
#define private_st_device_tile_clip() /* in gxclip2.c */\
35
  const byte gxclip2_dummy = 0
36
 
37
/*
38
 * Initialize a tile clipping device from a mask.
39
 * We supply an explicit phase.
40
 */
41
int tile_clip_initialize(gx_device_tile_clip * cdev,
42
			 const gx_strip_bitmap * tiles,
43
			 gx_device * tdev, int px, int py,
44
			 gs_memory_t *mem);
45
 
46
/*
47
 * Set the phase of the tile -- used in the tiling loop when
48
 * the tile doesn't simply fill the plane.
49
 */
50
void tile_clip_set_phase(gx_device_tile_clip * cdev, int px, int py);
51
 
52
#endif /* gxclip2_INCLUDED */