annotate src/glyphs-x.h @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents 501cfd01ee6d
children 41dbb7a9d5f2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* X-specific glyphs and related.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1993, 1994 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 Copyright (C) 1995 Board of Trustees, University of Illinois.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 Copyright (C) 1995, 1996 Ben Wing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 Copyright (C) 1995 Sun Microsystems, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 under the terms of the GNU General Public License as published by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 Free Software Foundation; either version 2, or (at your option) any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 XEmacs is distributed in the hope that it will be useful, but WITHOUT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 /* Synched up with: Not in FSF. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
26 #ifndef _XEMACS_GLYPHS_X_H_
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
27 #define _XEMACS_GLYPHS_X_H_
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 #include "glyphs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 #ifdef HAVE_X_WINDOWS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 #include "xintrinsic.h"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 114
diff changeset
34 #include "../lwlib/lwlib.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 /****************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 * Image-Instance Object *
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ****************************************************************************/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 struct x_image_instance_data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 {
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
42 Pixmap pixmap;
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
43 Pixmap mask;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 Cursor cursor;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 /* If depth>0, then that means that other colors were allocated when
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 this pixmap was loaded. These are they; we need to free them when
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 finalizing the image instance. */
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 157
diff changeset
49 Colormap colormap;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 unsigned long *pixels;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 int npixels;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 /* Should we hang on to the extra info from the XpmAttributes, like
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 the textual color table and the comments? Is that useful? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 #define X_IMAGE_INSTANCE_DATA(i) ((struct x_image_instance_data *) (i)->data)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
59 #define IMAGE_INSTANCE_X_PIXMAP(i) (X_IMAGE_INSTANCE_DATA (i)->pixmap)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
60 #define IMAGE_INSTANCE_X_MASK(i) (X_IMAGE_INSTANCE_DATA (i)->mask)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 #define IMAGE_INSTANCE_X_CURSOR(i) (X_IMAGE_INSTANCE_DATA (i)->cursor)
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 157
diff changeset
62 #define IMAGE_INSTANCE_X_COLORMAP(i) (X_IMAGE_INSTANCE_DATA (i)->colormap)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 #define IMAGE_INSTANCE_X_PIXELS(i) (X_IMAGE_INSTANCE_DATA (i)->pixels)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 #define IMAGE_INSTANCE_X_NPIXELS(i) (X_IMAGE_INSTANCE_DATA (i)->npixels)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 #define XIMAGE_INSTANCE_X_PIXMAP(i) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 IMAGE_INSTANCE_X_PIXMAP (XIMAGE_INSTANCE (i))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 #define XIMAGE_INSTANCE_X_MASK(i) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 IMAGE_INSTANCE_X_MASK (XIMAGE_INSTANCE (i))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 #define XIMAGE_INSTANCE_X_CURSOR(i) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 IMAGE_INSTANCE_X_CURSOR (XIMAGE_INSTANCE (i))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 #define XIMAGE_INSTANCE_X_PIXELS(i) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 IMAGE_INSTANCE_X_PIXELS (XIMAGE_INSTANCE (i))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 #define XIMAGE_INSTANCE_X_NPIXELS(i) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 IMAGE_INSTANCE_X_NPIXELS (XIMAGE_INSTANCE (i))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 /****************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 * Subwindow Object *
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 ****************************************************************************/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 269
diff changeset
81 struct x_subwindow_data
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 {
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
83 Screen *xscreen;
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
84 Window parent_window;
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 269
diff changeset
85 };
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 269
diff changeset
87 #define X_SUBWINDOW_INSTANCE_DATA(i) ((struct x_subwindow_data *) (i)->data)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
89 #define IMAGE_INSTANCE_X_SUBWINDOW_SCREEN(i) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
90 (X_SUBWINDOW_INSTANCE_DATA (i)->xscreen)
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 269
diff changeset
91 #define IMAGE_INSTANCE_X_SUBWINDOW_PARENT(i) \
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
92 (X_SUBWINDOW_INSTANCE_DATA (i)->parent_window)
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 269
diff changeset
93 #define XIMAGE_INSTANCE_X_SUBWINDOW_PARENT(i) \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 269
diff changeset
94 IMAGE_INSTANCE_X_SUBWINDOW_PARENT (XIMAGE_INSTANCE (i))
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
95 #define XIMAGE_INSTANCE_X_SUBWINDOW_SCREEN(i) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
96 IMAGE_INSTANCE_X_SUBWINDOW_SCREEN (XIMAGE_INSTANCE (i))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
97 #define IMAGE_INSTANCE_X_SUBWINDOW_ID(i) \
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
98 ((Window) IMAGE_INSTANCE_SUBWINDOW_ID (i))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 #endif /* HAVE_X_WINDOWS */
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
101 #endif /* _XEMACS_GLYPHS_X_H_ */