annotate src/objects-w32.h @ 209:41ff10fd062f r20-4b3

Import from CVS: tag r20-4b3
author cvs
date Mon, 13 Aug 2007 10:04:58 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
1 /* win32-specific Lisp objects.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
2 Copyright (C) 1993, 1994 Free Software Foundation, Inc.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
3 Copyright (C) 1995 Board of Trustees, University of Illinois.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
4 Copyright (C) 1995, 1996 Ben Wing.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
5 Copyright (C) 1997, Jonathan Harris.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
6
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
7 This file is part of XEmacs.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
8
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
9 XEmacs is free software; you can redistribute it and/or modify it
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
10 under the terms of the GNU General Public License as published by the
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
11 Free Software Foundation; either version 2, or (at your option) any
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
12 later version.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
13
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
14 XEmacs is distributed in the hope that it will be useful, but WITHOUT
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
17 for more details.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
18
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
19 You should have received a copy of the GNU General Public License
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
20 along with XEmacs; see the file COPYING. If not, write to
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
21 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
22 Boston, MA 02111-1307, USA. */
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
23
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
24 /* Synched up with: Not in FSF. */
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
25
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
26 /* Authorship:
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
27
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
28 Ultimately based on FSF.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
29 Rewritten by Ben Wing.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
30 Rewritten for win32 by Jonathan Harris, November 1997 for 20.4.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
31 */
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
32
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
33
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
34 #ifndef _XEMACS_OBJECTS_W32_H_
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
35 #define _XEMACS_OBJECTS_W32_H_
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
36
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
37 #include "objects.h"
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
38
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
39 struct w32_color_instance_data
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
40 {
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
41 COLORREF color;
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
42 HBRUSH brush;
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
43 };
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
44
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
45 #define W32_COLOR_INSTANCE_DATA(c) ((struct w32_color_instance_data *) (c)->data)
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
46 #define COLOR_INSTANCE_W32_COLOR(c) (W32_COLOR_INSTANCE_DATA (c)->color)
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
47 #define COLOR_INSTANCE_W32_BRUSH(c) (W32_COLOR_INSTANCE_DATA (c)->brush)
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
48
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
49
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
50 #define FONT_INSTANCE_W32_HFONT(c) ((HFONT) (c)->data)
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
51
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
52 #endif /* _XEMACS_OBJECTS_W32_H_ */