comparison src/glyphs-x.h @ 384:bbff43aa5eb7 r21-2-7

Import from CVS: tag r21-2-7
author cvs
date Mon, 13 Aug 2007 11:08:24 +0200
parents b2472a1930f2
children 74fd4e045ea6
comparison
equal deleted inserted replaced
383:6a50c6a581a5 384:bbff43aa5eb7
72 #define XIMAGE_INSTANCE_X_PIXELS(i) \ 72 #define XIMAGE_INSTANCE_X_PIXELS(i) \
73 IMAGE_INSTANCE_X_PIXELS (XIMAGE_INSTANCE (i)) 73 IMAGE_INSTANCE_X_PIXELS (XIMAGE_INSTANCE (i))
74 #define XIMAGE_INSTANCE_X_NPIXELS(i) \ 74 #define XIMAGE_INSTANCE_X_NPIXELS(i) \
75 IMAGE_INSTANCE_X_NPIXELS (XIMAGE_INSTANCE (i)) 75 IMAGE_INSTANCE_X_NPIXELS (XIMAGE_INSTANCE (i))
76 76
77 /* Set to 1 if you wish to implement this feature */
78 # define HAVE_SUBWINDOWS 0
79 # if HAVE_SUBWINDOWS
80 /**************************************************************************** 77 /****************************************************************************
81 * Subwindow Object * 78 * Subwindow Object *
82 ****************************************************************************/ 79 ****************************************************************************/
83 80
84 DECLARE_LRECORD (subwindow, struct Lisp_Subwindow); 81 struct x_subwindow_data
85 #define XSUBWINDOW(x) XRECORD (x, subwindow, struct Lisp_Subwindow)
86 #define XSETSUBWINDOW(x, p) XSETRECORD (x, p, subwindow)
87 #define SUBWINDOWP(x) RECORDP (x, subwindow)
88 #define GC_SUBWINDOWP(x) GC_RECORDP (x, subwindow)
89 #define CHECK_SUBWINDOW(x) CHECK_RECORD (x, subwindow)
90
91 struct Lisp_Subwindow
92 { 82 {
93 struct lcrecord_header header;
94 Lisp_Object frame;
95 Screen *xscreen; 83 Screen *xscreen;
96 Window parent_window; 84 Window parent_window;
85 };
97 86
98 unsigned int width, height; 87 #define X_SUBWINDOW_INSTANCE_DATA(i) ((struct x_subwindow_data *) (i)->data)
99 Window subwindow;
100 88
101 int being_displayed; /* used to detect when needs to be unmapped */ 89 #define IMAGE_INSTANCE_X_SUBWINDOW_SCREEN(i) \
102 }; 90 (X_SUBWINDOW_INSTANCE_DATA (i)->xscreen)
103 # endif 91 #define IMAGE_INSTANCE_X_SUBWINDOW_PARENT(i) \
92 (X_SUBWINDOW_INSTANCE_DATA (i)->parent_window)
93 #define XIMAGE_INSTANCE_X_SUBWINDOW_PARENT(i) \
94 IMAGE_INSTANCE_X_SUBWINDOW_PARENT (XIMAGE_INSTANCE (i))
95 #define XIMAGE_INSTANCE_X_SUBWINDOW_SCREEN(i) \
96 IMAGE_INSTANCE_X_SUBWINDOW_SCREEN (XIMAGE_INSTANCE (i))
97 #define IMAGE_INSTANCE_X_SUBWINDOW_ID(i) \
98 ((Window) IMAGE_INSTANCE_SUBWINDOW_ID (i))
104 99
105 #endif /* HAVE_X_WINDOWS */ 100 #endif /* HAVE_X_WINDOWS */
106 #endif /* _XEMACS_GLYPHS_X_H_ */ 101 #endif /* _XEMACS_GLYPHS_X_H_ */