annotate src/glyphs-msw.h @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents bbff43aa5eb7
children a86b2b5e0111
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.
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 286
diff changeset
2 Copyright (C) 1998 Andy Piper
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
3
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
4 This file is part of XEmacs.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
6 XEmacs is free software; you can redistribute it and/or modify it
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
7 under the terms of the GNU General Public License as published by the
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
8 Free Software Foundation; either version 2, or (at your option) any
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
9 later version.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
10
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
14 for more details.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
15
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
20
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
21 /* Synched up with: Not in FSF. */
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
22
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
23 #ifndef INCLUDED_glyphs_msw_h_
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
24 #define INCLUDED_glyphs_msw_h_
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
25
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
26 #ifdef HAVE_MS_WINDOWS
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
27
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
28 #include <windows.h>
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
29 #include "glyphs.h"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
30
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
31 /****************************************************************************
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
32 * Image-Instance Object *
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 struct mswindows_image_instance_data
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
36 {
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
37 HBITMAP* bitmaps;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
38 HICON icon;
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
39 };
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
40
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
41 #define MSWINDOWS_IMAGE_INSTANCE_DATA(i) \
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
42 ((struct mswindows_image_instance_data *) (i)->data)
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
43
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
44 #define IMAGE_INSTANCE_MSWINDOWS_BITMAP(i) \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
45 (MSWINDOWS_IMAGE_INSTANCE_DATA (i)->bitmaps[0])
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
46 #define IMAGE_INSTANCE_MSWINDOWS_BITMAP_SLICE(i,slice) \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
47 (MSWINDOWS_IMAGE_INSTANCE_DATA (i)->bitmaps[slice])
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
48 #define IMAGE_INSTANCE_MSWINDOWS_BITMAP_SLICES(i) \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
49 (MSWINDOWS_IMAGE_INSTANCE_DATA (i)->bitmaps)
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
50 #define IMAGE_INSTANCE_MSWINDOWS_MASK(i) \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
51 (HBITMAP)(IMAGE_INSTANCE_PIXMAP_MASK (i))
272
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))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
57 #define XIMAGE_INSTANCE_MSWINDOWS_BITMAP_SLICE(i,slice) \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
58 IMAGE_INSTANCE_MSWINDOWS_BITMAP_SLICE (XIMAGE_INSTANCE (i,slice))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
59 #define XIMAGE_INSTANCE_MSWINDOWS_BITMAP_SLICES(i) \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
60 IMAGE_INSTANCE_MSWINDOWS_BITMAP_SLICES (XIMAGE_INSTANCE (i))
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
61 #define XIMAGE_INSTANCE_MSWINDOWS_MASK(i) \
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
62 IMAGE_INSTANCE_MSWINDOWS_MASK (XIMAGE_INSTANCE (i))
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
63 #define XIMAGE_INSTANCE_MSWINDOWS_ICON(i) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
64 IMAGE_INSTANCE_MSWINDOWS_ICON (XIMAGE_INSTANCE (i))
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
65
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
66 int
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
67 mswindows_resize_dibitmap_instance (Lisp_Image_Instance* ii,
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
68 struct frame* f,
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
69 int newx, int newy);
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
70 HBITMAP
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
71 mswindows_create_resized_bitmap (Lisp_Image_Instance* ii,
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
72 struct frame* f,
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
73 int newx, int newy);
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
74 HBITMAP
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
75 mswindows_create_resized_mask (Lisp_Image_Instance* ii,
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
76 struct frame* f,
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
77 int newx, int newy);
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
78 void
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
79 mswindows_initialize_image_instance_icon (Lisp_Image_Instance* image,
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 278
diff changeset
80 int cursor);
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
81
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 286
diff changeset
82 #define WIDGET_INSTANCE_MSWINDOWS_HANDLE(i) \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 286
diff changeset
83 (HWND) (IMAGE_INSTANCE_SUBWINDOW_ID (i))
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 286
diff changeset
84
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 286
diff changeset
85 #define XWIDGET_INSTANCE_MSWINDOWS_HANDLE(i) \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 286
diff changeset
86 WIDGET_INSTANCE_MSWINDOWS_HANDLE (XIMAGE_INSTANCE (i))
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 286
diff changeset
87
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
88 struct mswindows_subwindow_data
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
89 {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
90 HWND clip_window;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
91 };
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
92
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
93 #define MSWINDOWS_SUBWINDOW_DATA(i) \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
94 ((struct mswindows_subwindow_data *) (i)->data)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
95
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
96 #define IMAGE_INSTANCE_MSWINDOWS_CLIPWINDOW(i) \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
97 (MSWINDOWS_SUBWINDOW_DATA (i)->clip_window)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
98
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
99 #define XIMAGE_INSTANCE_MSWINDOWS_CLIPWINDOW(i) \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
100 IMAGE_INSTANCE_MSWINDOWS_CLIPWINDOW (XIMAGE_INSTANCE (i))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
101
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
102 #endif /* HAVE_MS_WINDOWS */
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
103
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 384
diff changeset
104 #endif /* INCLUDED_glyphs_msw_h_ */