comparison src/console-x.h @ 272:c5d627a313b1 r21-0b34

Import from CVS: tag r21-0b34
author cvs
date Mon, 13 Aug 2007 10:28:48 +0200
parents 262b8bb4a523
children 7df0dd720c89
comparison
equal deleted inserted replaced
271:c7b7086b0a39 272:c5d627a313b1
236 #define DEVICE_XATOM_SPACING(d) (DEVICE_X_DATA (d)->Xatom_SPACING) 236 #define DEVICE_XATOM_SPACING(d) (DEVICE_X_DATA (d)->Xatom_SPACING)
237 #define DEVICE_XATOM_AVERAGE_WIDTH(d) (DEVICE_X_DATA (d)->Xatom_AVERAGE_WIDTH) 237 #define DEVICE_XATOM_AVERAGE_WIDTH(d) (DEVICE_X_DATA (d)->Xatom_AVERAGE_WIDTH)
238 #define DEVICE_XATOM_CHARSET_REGISTRY(d) (DEVICE_X_DATA (d)->Xatom_CHARSET_REGISTRY) 238 #define DEVICE_XATOM_CHARSET_REGISTRY(d) (DEVICE_X_DATA (d)->Xatom_CHARSET_REGISTRY)
239 #define DEVICE_XATOM_CHARSET_ENCODING(d) (DEVICE_X_DATA (d)->Xatom_CHARSET_ENCODING) 239 #define DEVICE_XATOM_CHARSET_ENCODING(d) (DEVICE_X_DATA (d)->Xatom_CHARSET_ENCODING)
240 240
241 #define Xt_SET_VALUE(widget, resource, value) do { \
242 Arg al; \
243 XtSetArg (al, resource, value); \
244 XtSetValues (widget, &al, 1); \
245 } while (0)
246
247 #define Xt_GET_VALUE(widget, resource, location) do { \
248 Arg al; \
249 XtSetArg (al, resource, location); \
250 XtGetValues (widget, &al, 1); \
251 } while (0)
252
241 /* The maximum number of widgets that can be displayed above the text 253 /* The maximum number of widgets that can be displayed above the text
242 area at one time. Currently no more than 3 will ever actually be 254 area at one time. Currently no more than 3 will ever actually be
243 displayed (menubar, psheet, debugger panel). */ 255 displayed (menubar, psheet, debugger panel). */
244 #define MAX_CONCURRENT_TOP_WIDGETS 8 256 #define MAX_CONCURRENT_TOP_WIDGETS 8
245 257
371 383
372 struct frame *x_any_window_to_frame (struct device *d, Window); 384 struct frame *x_any_window_to_frame (struct device *d, Window);
373 struct frame *x_any_widget_or_parent_to_frame (struct device *d, 385 struct frame *x_any_widget_or_parent_to_frame (struct device *d,
374 Widget widget); 386 Widget widget);
375 struct frame *decode_x_frame (Lisp_Object); 387 struct frame *decode_x_frame (Lisp_Object);
376 Display *get_x_display (Lisp_Object);
377 struct frame *x_window_to_frame (struct device *d, Window); 388 struct frame *x_window_to_frame (struct device *d, Window);
378 struct device *get_device_from_display (Display *dpy); 389 struct device *get_device_from_display (Display *dpy);
379 struct device *decode_x_device (Lisp_Object); 390 struct device *decode_x_device (Lisp_Object);
380 391
381 void x_handle_selection_notify (XSelectionEvent *event); 392 void x_handle_selection_notify (XSelectionEvent *event);
427 (expect_x_error ((dpy)), (body), x_error_occurred_p (dpy)) 438 (expect_x_error ((dpy)), (body), x_error_occurred_p (dpy))
428 439
429 #define HANDLING_X_ERROR(dpy, body) \ 440 #define HANDLING_X_ERROR(dpy, body) \
430 ( expect_x_error ((dpy)), (body), signal_if_x_error ((dpy), 0)) 441 ( expect_x_error ((dpy)), (body), signal_if_x_error ((dpy), 0))
431 442
432 Lisp_Object x_atom_to_symbol (struct device *d, Atom atom);
433 Atom symbol_to_x_atom (struct device *d, Lisp_Object sym,
434 int only_if_exists);
435
436 #ifdef HAVE_XIM 443 #ifdef HAVE_XIM
437 /* Locale */ 444 /* Locale */
438 void Initialize_Locale (void); 445 void Initialize_Locale (void);
439 446
440 /* X Input Method `methods' */ 447 /* X Input Method `methods' */