"Fossies" - the Fresh Open Source Software Archive 
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /* Copyright (C) 2001-2002 Ghostgum Software Pty Ltd. 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 licence and may not be copied,
7 modified or distributed except as expressly authorised under the terms
8 of the licence contained in the file LICENCE in this distribution.
9
10 For more information about licensing, please refer to
11 http://www.ghostgum.com.au/ or contact Ghostsgum Software Pty Ltd,
12 218 Gallaghers Rd, Glen Waverley VIC 3150, AUSTRALIA,
13 Fax +61 3 9886 6616.
14 */
15
16 /* $Id: cpagec.h,v 1.1 2002/04/17 11:39:07 ghostgum Exp $ */
17 /* Page cache header */
18
19 /* Public */
20 void pt_to_pixel(PAGESPEC *ps, double *x, double *y);
21 void pixel_to_pt(PAGESPEC *ps, double *x, double *y);
22
23 PAGECACHE *pagecache_new(GSview *app, GSREQ *req, IMAGE *img, PDFLINK *pdflinks);
24 PAGECACHE * pagecache_find(GSview *app, PAGESPEC *ps);
25 int pagecache_unref(GSview *app, PAGECACHE *page);
26 int pagecache_unref_all(GSview *app) ;
27
28
29 /****************************************************/
30 /* Private */
31 #ifdef DEFINE_CPAGEC
32
33 /* page cache */
34 struct PAGECACHE_s {
35 PAGECACHE *next; /* linked list */
36 int refcount; /* number of views using this image */
37 PAGESPEC pagespec;
38 /* changes to img must be protected by app_lock */
39 IMAGE img;
40 PDFLINK *pdflink;
41 };
42
43
44 #endif /* DEFINE_CPAGEC */