comparison src/glyphs-x.h @ 420:41dbb7a9d5f2 r21-2-18

Import from CVS: tag r21-2-18
author cvs
date Mon, 13 Aug 2007 11:24:09 +0200
parents 697ef44129c6
children 11054d720c21
comparison
equal deleted inserted replaced
419:66615b78f1a5 420:41dbb7a9d5f2
78 * Subwindow Object * 78 * Subwindow Object *
79 ****************************************************************************/ 79 ****************************************************************************/
80 80
81 struct x_subwindow_data 81 struct x_subwindow_data
82 { 82 {
83 Screen *xscreen; 83 union
84 Window parent_window; 84 {
85 struct
86 {
87 Screen *xscreen;
88 Window parent_window;
89 } sub;
90 struct
91 {
92 Position x_offset;
93 Position y_offset;
94 LWLIB_ID id;
95 } wid;
96 } data;
85 }; 97 };
86 98
87 #define X_SUBWINDOW_INSTANCE_DATA(i) ((struct x_subwindow_data *) (i)->data) 99 #define X_SUBWINDOW_INSTANCE_DATA(i) ((struct x_subwindow_data *) (i)->data)
88 100
89 #define IMAGE_INSTANCE_X_SUBWINDOW_SCREEN(i) \ 101 #define IMAGE_INSTANCE_X_SUBWINDOW_SCREEN(i) \
90 (X_SUBWINDOW_INSTANCE_DATA (i)->xscreen) 102 (X_SUBWINDOW_INSTANCE_DATA (i)->data.sub.xscreen)
91 #define IMAGE_INSTANCE_X_SUBWINDOW_PARENT(i) \ 103 #define IMAGE_INSTANCE_X_SUBWINDOW_PARENT(i) \
92 (X_SUBWINDOW_INSTANCE_DATA (i)->parent_window) 104 (X_SUBWINDOW_INSTANCE_DATA (i)->data.sub.parent_window)
105 #define IMAGE_INSTANCE_X_WIDGET_XOFFSET(i) \
106 (X_SUBWINDOW_INSTANCE_DATA (i)->data.wid.x_offset)
107 #define IMAGE_INSTANCE_X_WIDGET_YOFFSET(i) \
108 (X_SUBWINDOW_INSTANCE_DATA (i)->data.wid.y_offset)
109 #define IMAGE_INSTANCE_X_WIDGET_LWID(i) \
110 (X_SUBWINDOW_INSTANCE_DATA (i)->data.wid.id)
93 #define XIMAGE_INSTANCE_X_SUBWINDOW_PARENT(i) \ 111 #define XIMAGE_INSTANCE_X_SUBWINDOW_PARENT(i) \
94 IMAGE_INSTANCE_X_SUBWINDOW_PARENT (XIMAGE_INSTANCE (i)) 112 IMAGE_INSTANCE_X_SUBWINDOW_PARENT (XIMAGE_INSTANCE (i))
95 #define XIMAGE_INSTANCE_X_SUBWINDOW_SCREEN(i) \ 113 #define XIMAGE_INSTANCE_X_SUBWINDOW_SCREEN(i) \
96 IMAGE_INSTANCE_X_SUBWINDOW_SCREEN (XIMAGE_INSTANCE (i)) 114 IMAGE_INSTANCE_X_SUBWINDOW_SCREEN (XIMAGE_INSTANCE (i))
115 #define XIMAGE_INSTANCE_X_WIDGET_XOFFSET(i) \
116 IMAGE_INSTANCE_X_WIDGET_XOFFSET (XIMAGE_INSTANCE (i))
117 #define XIMAGE_INSTANCE_X_WIDGET_YOFFSET(i) \
118 IMAGE_INSTANCE_X_WIDGET_YOFFSET (XIMAGE_INSTANCE (i))
119 #define XIMAGE_INSTANCE_X_WIDGET_LWID(i) \
120 IMAGE_INSTANCE_X_WIDGET_LWID (XIMAGE_INSTANCE (i))
97 #define IMAGE_INSTANCE_X_SUBWINDOW_ID(i) \ 121 #define IMAGE_INSTANCE_X_SUBWINDOW_ID(i) \
98 ((Window) IMAGE_INSTANCE_SUBWINDOW_ID (i)) 122 ((Window) IMAGE_INSTANCE_SUBWINDOW_ID (i))
123 #define IMAGE_INSTANCE_X_WIDGET_ID(i) \
124 ((Widget) IMAGE_INSTANCE_SUBWINDOW_ID (i))
99 125
100 #endif /* HAVE_X_WINDOWS */ 126 #endif /* HAVE_X_WINDOWS */
101 #endif /* _XEMACS_GLYPHS_X_H_ */ 127 #endif /* _XEMACS_GLYPHS_X_H_ */