~ubuntu-branches/ubuntu/oneiric/ghostscript/oneiric

« back to all changes in this revision

Viewing changes to base/gdevx.h

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2011-07-15 16:49:55 UTC
  • mfrom: (1.1.23 upstream)
  • Revision ID: james.westby@ubuntu.com-20110715164955-uga6qibao6kez05c
Tags: 9.04~dfsg~20110715-0ubuntu1
* New upstream release
   - GIT snapshot from Jult, 12 2011.
* debian/patches/020110406~a54df2d.patch,
  debian/patches/020110408~0791cc8.patch,
  debian/patches/020110408~507cbee.patch,
  debian/patches/020110411~4509a49.patch,
  debian/patches/020110412~78bb9a6.patch,
  debian/patches/020110418~a05ab8a.patch,
  debian/patches/020110420~20b6c78.patch,
  debian/patches/020110420~4ddefa2.patch: Removed upstream patches.
* debian/rules: Generate ABI version number (variable "abi") correctly,
  cutting off repackaging and pre-release parts.
* debian/rules: Added ./lcms2/ directory to DEB_UPSTREAM_REPACKAGE_EXCLUDES.
* debian/copyright: Added lcms2/* to the list of excluded files.
* debian/symbols.common: Updated for new upstream source. Applied patch
  which dpkg-gensymbols generated for debian/libgs9.symbols to this file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Copyright (C) 2001-2006 Artifex Software, Inc.
2
2
   All Rights Reserved.
3
 
  
 
3
 
4
4
   This software is provided AS-IS with no warranty, either express or
5
5
   implied.
6
6
 
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
14
 
/* $Id: gdevx.h 8022 2007-06-05 22:23:38Z giles $ */
 
14
/* $Id$ */
15
15
/* Definitions for X Windows drivers */
16
16
/* Requires gxdevice.h and x_.h */
17
17
 
79
79
 
80
80
    /* A backing pixmap so X will handle exposure automatically */
81
81
    Pixmap bpixmap;             /* 0 if useBackingPixmap is false, */
82
 
                                /* or if it can't be allocated */
 
82
                                /* or if it can't be allocated */
83
83
    int ghostview;              /* flag to tell if ghostview is in control */
84
84
    Window mwin;                /* window to receive ghostview messages */
85
85
    gs_matrix initial_matrix;   /* the initial transformation */
86
86
    Atom NEXT, PAGE, DONE;      /* Atoms used to talk to ghostview */
87
87
    struct {
88
 
        gs_int_rect box;        /* region needing updating */
89
 
        long area;              /* total area of update */
90
 
        long total;             /* total of individual area updates */
91
 
        int count;              /* # of updates since flush */
 
88
        gs_int_rect box;        /* region needing updating */
 
89
        long area;              /* total area of update */
 
90
        long total;             /* total of individual area updates */
 
91
        int count;              /* # of updates since flush */
92
92
    } update;
93
93
    Pixmap dest;                /* bpixmap if non-0, else use win */
94
94
    x_pixel colors_or;          /* 'or' of all device colors used so far */
96
96
 
97
97
    /* An intermediate pixmap for the stencil case of copy_mono */
98
98
    struct {
99
 
        Pixmap pixmap;
100
 
        GC gc;
101
 
        int raster, height;
 
99
        Pixmap pixmap;
 
100
        GC gc;
 
101
        int raster, height;
102
102
    } cp;
103
103
 
104
104
    /* Structure for dealing with the halftone tile. */
105
105
    /* Later this might become a multi-element cache. */
106
106
    struct {
107
 
        Pixmap pixmap;
108
 
        Pixmap no_pixmap;       /* kludge to get around X bug */
109
 
        gx_bitmap_id id;
110
 
        int width, height, raster;
111
 
        x_pixel fore_c, back_c;
 
107
        Pixmap pixmap;
 
108
        Pixmap no_pixmap;       /* kludge to get around X bug */
 
109
        gx_bitmap_id id;
 
110
        int width, height, raster;
 
111
        x_pixel fore_c, back_c;
112
112
    } ht;
113
113
 
114
114
    /* Cache the function and fill style from the GC */
213
213
     * Buffered text awaiting display.
214
214
     */
215
215
    struct {
216
 
        int item_count;
 
216
        int item_count;
217
217
#define IN_TEXT(xdev) ((xdev)->text.item_count != 0)
218
 
        int char_count;
219
 
        gs_int_point origin;
220
 
        int x;                  /* after last buffered char */
 
218
        int char_count;
 
219
        gs_int_point origin;
 
220
        int x;                  /* after last buffered char */
221
221
#define MAX_TEXT_ITEMS 12
222
 
        XTextItem items[MAX_TEXT_ITEMS];
 
222
        XTextItem items[MAX_TEXT_ITEMS];
223
223
#define MAX_TEXT_CHARS 25
224
 
        char chars[MAX_TEXT_CHARS];
 
224
        char chars[MAX_TEXT_CHARS];
225
225
    } text;
226
226
/*
227
227
 * All the GC parameters are set correctly when we buffer the first
230
230
 */
231
231
#define DRAW_TEXT(xdev)\
232
232
   XDrawText(xdev->dpy, xdev->dest, xdev->gc, xdev->text.origin.x,\
233
 
             xdev->text.origin.y, xdev->text.items, xdev->text.item_count)
 
233
             xdev->text.origin.y, xdev->text.items, xdev->text.item_count)
234
234
 
235
235
} gx_device_X;
236
236
#define private_st_device_X()   /* in gdevx.c */\