annotate src/glyphs-msw.h @ 283:fa3d41851a08

Added tag r21-0b39 for changeset c42ec1d1cded
author cvs
date Mon, 13 Aug 2007 10:33:19 +0200
parents c42ec1d1cded
children 57709be46d1b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
1 /* mswindows-specific glyphs and related.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
2 Copyright (C) 1993, 1994 Free Software Foundation, Inc.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
3 Copyright (C) 1995 Board of Trustees, University of Illinois.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
4 Copyright (C) 1995, 1996 Ben Wing
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
5 Copyright (C) 1995 Sun Microsystems, Inc.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
7 This file is part of XEmacs.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
8
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
9 XEmacs is free software; you can redistribute it and/or modify it
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
10 under the terms of the GNU General Public License as published by the
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
11 Free Software Foundation; either version 2, or (at your option) any
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
12 later version.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
13
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
14 XEmacs is distributed in the hope that it will be useful, but WITHOUT
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
17 for more details.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
18
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
19 You should have received a copy of the GNU General Public License
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
20 along with XEmacs; see the file COPYING. If not, write to
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
21 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
22 Boston, MA 02111-1307, USA. */
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
23
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
24 /* Synched up with: Not in FSF. */
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
25
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
26 #ifndef _XEMACS_GLYPHS_MSW_H_
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
27 #define _XEMACS_GLYPHS_MSW_H_
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
28
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
29 #ifdef HAVE_MS_WINDOWS
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
30
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
31 #include <windows.h>
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
32 #include "glyphs.h"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
33
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
34 /****************************************************************************
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
35 * Image-Instance Object *
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
36 ****************************************************************************/
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
37
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
38 struct mswindows_image_instance_data
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
39 {
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
40 HBITMAP bitmap;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
41 HBITMAP mask;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
42 HICON icon;
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
43 };
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
44
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
45 #define MSWINDOWS_IMAGE_INSTANCE_DATA(i) \
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
46 ((struct mswindows_image_instance_data *) (i)->data)
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
47
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
48 #define IMAGE_INSTANCE_MSWINDOWS_BITMAP(i) \
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
49 (MSWINDOWS_IMAGE_INSTANCE_DATA (i)->bitmap)
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
50 #define IMAGE_INSTANCE_MSWINDOWS_MASK(i) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
51 (MSWINDOWS_IMAGE_INSTANCE_DATA (i)->mask)
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
52 #define IMAGE_INSTANCE_MSWINDOWS_ICON(i) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
53 (MSWINDOWS_IMAGE_INSTANCE_DATA (i)->icon)
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
54
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
55 #define XIMAGE_INSTANCE_MSWINDOWS_BITMAP(i) \
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
56 IMAGE_INSTANCE_MSWINDOWS_BITMAP (XIMAGE_INSTANCE (i))
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
57 #define XIMAGE_INSTANCE_MSWINDOWS_MASK(i) \
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
58 IMAGE_INSTANCE_MSWINDOWS_MASK (XIMAGE_INSTANCE (i))
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
59 #define XIMAGE_INSTANCE_MSWINDOWS_ICON(i) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
60 IMAGE_INSTANCE_MSWINDOWS_ICON (XIMAGE_INSTANCE (i))
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
61
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
62 int
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
63 mswindows_resize_dibitmap_instance (struct Lisp_Image_Instance* ii,
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
64 struct frame* f,
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
65 int newx, int newy);
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
66 void
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 278
diff changeset
67 mswindows_initialize_image_instance_icon (struct Lisp_Image_Instance* image,
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 278
diff changeset
68 int cursor);
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
69
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
70 #endif /* HAVE_MS_WINDOWS */
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
71 #endif /* _XEMACS_GLYPHS_MSW_H_ */