comparison src/glyphs-msw.h @ 267:966663fcf606 r20-5b32

Import from CVS: tag r20-5b32
author cvs
date Mon, 13 Aug 2007 10:26:29 +0200
parents
children b2472a1930f2
comparison
equal deleted inserted replaced
266:18d185df8c54 267:966663fcf606
1 /* mswindows-specific glyphs and related.
2 Copyright (C) 1993, 1994 Free Software Foundation, Inc.
3 Copyright (C) 1995 Board of Trustees, University of Illinois.
4 Copyright (C) 1995, 1996 Ben Wing
5 Copyright (C) 1995 Sun Microsystems, Inc.
6
7 This file is part of XEmacs.
8
9 XEmacs is free software; you can redistribute it and/or modify it
10 under the terms of the GNU General Public License as published by the
11 Free Software Foundation; either version 2, or (at your option) any
12 later version.
13
14 XEmacs is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with XEmacs; see the file COPYING. If not, write to
21 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA. */
23
24 /* Synched up with: Not in FSF. */
25
26 #ifndef _XEMACS_GLYPHS_MSW_H_
27 #define _XEMACS_GLYPHS_MSW_H_
28
29 #ifdef HAVE_MS_WINDOWS
30
31 #include <windows.h>
32 #include "glyphs.h"
33
34 /****************************************************************************
35 * Image-Instance Object *
36 ****************************************************************************/
37
38 struct mswindows_image_instance_data
39 {
40 HBITMAP bitmap;
41 HDC dc;
42 };
43
44 #define MSWINDOWS_IMAGE_INSTANCE_DATA(i) \
45 ((struct mswindows_image_instance_data *) (i)->data)
46
47 #define IMAGE_INSTANCE_MSWINDOWS_BITMAP(i) \
48 (MSWINDOWS_IMAGE_INSTANCE_DATA (i)->bitmap)
49 #define IMAGE_INSTANCE_MSWINDOWS_DC(i) \
50 (MSWINDOWS_IMAGE_INSTANCE_DATA (i)->dc)
51 #define IMAGE_INSTANCE_MSWINDOWS_MASK(i) 0
52
53 #define XIMAGE_INSTANCE_MSWINDOWS_BITMAP(i) \
54 IMAGE_INSTANCE_MSWINDOWS_BITMAP (XIMAGE_INSTANCE (i))
55 #define XIMAGE_INSTANCE_MSWINDOWS_DC(i) \
56 IMAGE_INSTANCE_MSWINDOWS_DC (XIMAGE_INSTANCE (i))
57 #define XIMAGE_INSTANCE_MSWINDOWS_MASK(i) \
58 IMAGE_INSTANCE_MSWINDOWS_MASK (XIMAGE_INSTANCE (i))
59
60 #endif /* HAVE_MS_WINDOWS */
61 #endif /* _XEMACS_GLYPHS_MSW_H_ */