1 /* Copyright (C) 1993, 1996, 1998, 1999 artofcode LLC. All rights reserved. 2 3 This program is free software; you can redistribute it and/or modify it 4 under the terms of the GNU General Public License as published by the 5 Free Software Foundation; either version 2 of the License, or (at your 6 option) any later version. 7 8 This program is distributed in the hope that it will be useful, but 9 WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 General Public License for more details. 12 13 You should have received a copy of the GNU General Public License along 14 with this program; if not, write to the Free Software Foundation, Inc., 15 59 Temple Place, Suite 330, Boston, MA, 02111-1307. 16 17 */ 18 19 /*$Id: gxclip2.h,v 1.2.6.1.2.1 2003/01/17 00:49:03 giles Exp $ */ 20 /* Tiled mask clipping device and interface */ 21 22 #ifndef gxclip2_INCLUDED 23 # define gxclip2_INCLUDED 24 25 #include "gxmclip.h" 26 27 /* The structure for tile clipping is the same as for simple mask clipping. */ 28 typedef gx_device_mask_clip gx_device_tile_clip; 29 #define st_device_tile_clip st_device_mask_clip 30 /* 31 * We can't just make this macro empty, since it is processed as a top-level 32 * declaration and would lead to an extraneous semicolon. The least damage 33 * we can do is make it declare a constant (and not static, since static 34 * would lead to a compiler warning about an unreferenced variable). 35 */ 36 #define private_st_device_tile_clip() /* in gxclip2.c */\ 37 const byte gxclip2_dummy = 0 38 39 /* 40 * Initialize a tile clipping device from a mask. 41 * We supply an explicit phase. 42 */ 43 int tile_clip_initialize(P6(gx_device_tile_clip * cdev, 44 const gx_strip_bitmap * tiles, 45 gx_device * tdev, int px, int py, 46 gs_memory_t *mem)); 47 48 /* 49 * Set the phase of the tile -- used in the tiling loop when 50 * the tile doesn't simply fill the plane. 51 */ 52 void tile_clip_set_phase(P3(gx_device_tile_clip * cdev, int px, int py)); 53 54 #endif /* gxclip2_INCLUDED */ 55