annotate src/glyphs-msw.h @ 388:aabb7f5b1c81 r21-2-9

Import from CVS: tag r21-2-9
author cvs
date Mon, 13 Aug 2007 11:09:42 +0200
parents bbff43aa5eb7
children 74fd4e045ea6
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
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
23 #ifndef _XEMACS_GLYPHS_MSW_H_
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
24 #define _XEMACS_GLYPHS_MSW_H_
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 {
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
37 HBITMAP bitmap;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
38 HBITMAP mask;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
39 HICON icon;
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
40 };
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
41
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
42 #define MSWINDOWS_IMAGE_INSTANCE_DATA(i) \
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
43 ((struct mswindows_image_instance_data *) (i)->data)
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 IMAGE_INSTANCE_MSWINDOWS_BITMAP(i) \
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
46 (MSWINDOWS_IMAGE_INSTANCE_DATA (i)->bitmap)
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
47 #define IMAGE_INSTANCE_MSWINDOWS_MASK(i) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
48 (MSWINDOWS_IMAGE_INSTANCE_DATA (i)->mask)
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
49 #define IMAGE_INSTANCE_MSWINDOWS_ICON(i) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
50 (MSWINDOWS_IMAGE_INSTANCE_DATA (i)->icon)
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
51
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
52 #define XIMAGE_INSTANCE_MSWINDOWS_BITMAP(i) \
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
53 IMAGE_INSTANCE_MSWINDOWS_BITMAP (XIMAGE_INSTANCE (i))
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
54 #define XIMAGE_INSTANCE_MSWINDOWS_MASK(i) \
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
55 IMAGE_INSTANCE_MSWINDOWS_MASK (XIMAGE_INSTANCE (i))
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
56 #define XIMAGE_INSTANCE_MSWINDOWS_ICON(i) \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
57 IMAGE_INSTANCE_MSWINDOWS_ICON (XIMAGE_INSTANCE (i))
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
58
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
59 int
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
60 mswindows_resize_dibitmap_instance (struct Lisp_Image_Instance* ii,
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
61 struct frame* f,
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
62 int newx, int newy);
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
63 HBITMAP
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
64 mswindows_create_resized_bitmap (struct Lisp_Image_Instance* ii,
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
65 struct frame* f,
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
66 int newx, int newy);
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
67 HBITMAP
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
68 mswindows_create_resized_mask (struct Lisp_Image_Instance* ii,
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
69 struct frame* f,
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
70 int newx, int newy);
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
71 void
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 278
diff changeset
72 mswindows_initialize_image_instance_icon (struct Lisp_Image_Instance* image,
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 278
diff changeset
73 int cursor);
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
74
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 286
diff changeset
75 #define WIDGET_INSTANCE_MSWINDOWS_HANDLE(i) \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 286
diff changeset
76 (HWND) (IMAGE_INSTANCE_SUBWINDOW_ID (i))
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 286
diff changeset
77
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 286
diff changeset
78 #define XWIDGET_INSTANCE_MSWINDOWS_HANDLE(i) \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 286
diff changeset
79 WIDGET_INSTANCE_MSWINDOWS_HANDLE (XIMAGE_INSTANCE (i))
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 286
diff changeset
80
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
81 #endif /* HAVE_MS_WINDOWS */
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
82 #endif /* _XEMACS_GLYPHS_MSW_H_ */