Back to index

lightning-sunbird  0.9+nobinonly
cairo-os2-private.h
Go to the documentation of this file.
00001 /* cairo - a vector graphics library with display and print output
00002  *
00003  * Copyright © 2005 Red Hat, Inc
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it either under the terms of the GNU Lesser General Public
00007  * License version 2.1 as published by the Free Software Foundation
00008  * (the "LGPL") or, at your option, under the terms of the Mozilla
00009  * Public License Version 1.1 (the "MPL"). If you do not alter this
00010  * notice, a recipient may use your version of this file under either
00011  * the MPL or the LGPL.
00012  *
00013  * You should have received a copy of the LGPL along with this library
00014  * in the file COPYING-LGPL-2.1; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00016  * You should have received a copy of the MPL along with this library
00017  * in the file COPYING-MPL-1.1
00018  *
00019  * The contents of this file are subject to the Mozilla Public License
00020  * Version 1.1 (the "License"); you may not use this file except in
00021  * compliance with the License. You may obtain a copy of the License at
00022  * http://www.mozilla.org/MPL/
00023  *
00024  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
00025  * OF ANY KIND, either express or implied. See the LGPL or the MPL for
00026  * the specific language governing rights and limitations.
00027  *
00028  * The Original Code is the cairo graphics library.
00029  *
00030  * The Initial Developer of the Original Code is Red Hat, Inc.
00031  *
00032  * Contributor(s):
00033  *     Doodle <doodle@scenergy.dfmk.hu>
00034  */
00035 
00036 #ifndef CAIRO_OS2_PRIVATE_H
00037 #define CAIRO_OS2_PRIVATE_H
00038 
00039 #define INCL_DOS
00040 #define INCL_DOSSEMAPHORES
00041 #define INCL_DOSERRORS
00042 #define INCL_WIN
00043 #define INCL_GPI
00044 #ifdef __WATCOMC__
00045 #include <os2.h>
00046 #else
00047 #include <os2emx.h>
00048 #endif
00049 
00050 #include <cairo-os2.h>
00051 #include <cairoint.h>
00052 
00053 typedef struct _cairo_os2_surface
00054 {
00055   cairo_surface_t        base;
00056 
00057   /* Mutex semaphore to protect private fields from concurrent access */
00058   HMTX                   hmtxUsePrivateFields;
00059   /* Private fields: */
00060   HPS                    hpsClientWindow;
00061   HWND                   hwndClientWindow;
00062   BITMAPINFO2            bmi2BitmapInfo;
00063   unsigned char         *pchPixels;
00064   cairo_image_surface_t *pImageSurface;
00065   int                    iPixelArrayLendCounter;
00066   HEV                    hevPixelArrayCameBack;
00067 
00068   RECTL                  rclDirtyArea;
00069   int                    bDirtyAreaPresent;
00070 
00071   /* General flags: */
00072   int                    bBlitAsChanges;
00073 
00074 } cairo_os2_surface_t;
00075 
00076 #endif /* CAIRO_OS2_PRIVATE_H */