1 /* Copyright (C) 2001-2006 Artifex Software, Inc. 2 All Rights Reserved. 3 4 This software is provided AS-IS with no warranty, either express or 5 implied. 6 7 This software is distributed under license and may not be copied, modified 8 or distributed except as expressly authorized under the terms of that 9 license. Refer to licensing information at http://www.artifex.com/ 10 or contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, 11 San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information. 12 */ 13 14 /* $Id: gxclip2.h 8022 2007-06-05 22:23:38Z giles $ */ 15 /* Tiled mask clipping device and interface */ 16 17 #ifndef gxclip2_INCLUDED 18 # define gxclip2_INCLUDED 19 20 #include "gxmclip.h" 21 22 /* The structure for tile clipping is the same as for simple mask clipping. */ 23 typedef gx_device_mask_clip gx_device_tile_clip; 24 #define st_device_tile_clip st_device_mask_clip 25 /* 26 * We can't just make this macro empty, since it is processed as a top-level 27 * declaration and would lead to an extraneous semicolon. The least damage 28 * we can do is make it declare a constant (and not static, since static 29 * would lead to a compiler warning about an unreferenced variable). 30 */ 31 #define private_st_device_tile_clip() /* in gxclip2.c */\ 32 const byte gxclip2_dummy = 0 33 34 /* 35 * Initialize a tile clipping device from a mask. 36 * We supply an explicit phase. 37 */ 38 int tile_clip_initialize(gx_device_tile_clip * cdev, 39 const gx_strip_bitmap * tiles, 40 gx_device * tdev, int px, int py, 41 gs_memory_t *mem); 42 43 /* 44 * Set the phase of the tile -- used in the tiling loop when 45 * the tile doesn't simply fill the plane. 46 */ 47 void tile_clip_set_phase(gx_device_tile_clip * cdev, int px, int py); 48 49 #endif /* gxclip2_INCLUDED */ 50