aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-01-29 23:17:15 +0000
committerGerd Moellmann2000-01-29 23:17:15 +0000
commit1c815a24655db3419cc1cb45f9279ea8d194acbd (patch)
treed6cba19e17f4d85741c5acabd7d39445a1e109d4 /src
parentf5d11644696d1ae7add77ba3ffb3618249b76dbe (diff)
downloademacs-1c815a24655db3419cc1cb45f9279ea8d194acbd.tar.gz
emacs-1c815a24655db3419cc1cb45f9279ea8d194acbd.zip
(struct x_display_info) [HAVE_X_I18N]: Add members `xim'
and `xim_styles'. (struct x_output) [HAVE_X_I18N]: Remove member `xim', add `xic_style' and `xic_xfs'. (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES) (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros. (FRAME_XIM): Removed.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/xterm.h b/src/xterm.h
index 9ef78981c13..df44b856068 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -344,6 +344,12 @@ struct x_display_info
344 344
345 /* Cache of images. */ 345 /* Cache of images. */
346 struct image_cache *image_cache; 346 struct image_cache *image_cache;
347
348#ifdef HAVE_X_I18N
349 /* XIM (X Input method). */
350 XIM xim;
351 XIMStyles *xim_styles;
352#endif
347}; 353};
348 354
349/* This is a chain of structures for all the X displays currently in use. */ 355/* This is a chain of structures for all the X displays currently in use. */
@@ -547,10 +553,10 @@ struct x_output
547 char has_been_visible; 553 char has_been_visible;
548 554
549#ifdef HAVE_X_I18N 555#ifdef HAVE_X_I18N
550 /* Input method. */
551 XIM xim;
552 /* Input context (currently, this means Compose key handler setup). */ 556 /* Input context (currently, this means Compose key handler setup). */
553 XIC xic; 557 XIC xic;
558 XIMStyle xic_style;
559 XFontSet xic_xfs;
554#endif 560#endif
555 561
556 /* Relief GCs, colors etc. */ 562 /* Relief GCs, colors etc. */
@@ -580,6 +586,7 @@ struct x_output
580#define FRAME_FONT(f) ((f)->output_data.x->font) 586#define FRAME_FONT(f) ((f)->output_data.x->font)
581#define FRAME_FONTSET(f) ((f)->output_data.x->fontset) 587#define FRAME_FONTSET(f) ((f)->output_data.x->fontset)
582#define FRAME_INTERNAL_BORDER_WIDTH(f) ((f)->output_data.x->internal_border_width) 588#define FRAME_INTERNAL_BORDER_WIDTH(f) ((f)->output_data.x->internal_border_width)
589#define FRAME_MENUBAR_HEIGHT(f) ((f)->output_data.x->menubar_height)
583#define FRAME_LINE_HEIGHT(f) ((f)->output_data.x->line_height) 590#define FRAME_LINE_HEIGHT(f) ((f)->output_data.x->line_height)
584 591
585/* Width of the default font of frame F. Must be defined by each 592/* Width of the default font of frame F. Must be defined by each
@@ -604,8 +611,11 @@ struct x_output
604 611
605#define FRAME_DESIRED_CURSOR(f) ((f)->output_data.x->desired_cursor) 612#define FRAME_DESIRED_CURSOR(f) ((f)->output_data.x->desired_cursor)
606 613
607#define FRAME_XIM(f) ((f)->output_data.x->xim)
608#define FRAME_XIC(f) ((f)->output_data.x->xic) 614#define FRAME_XIC(f) ((f)->output_data.x->xic)
615#define FRAME_X_XIM(f) (FRAME_X_DISPLAY_INFO (f)->xim)
616#define FRAME_X_XIM_STYLES(f) (FRAME_X_DISPLAY_INFO (f)->xim_styles)
617#define FRAME_XIC_STYLE(f) ((f)->output_data.x->xic_style)
618#define FRAME_XIC_FONTSET(f) ((f)->output_data.x->xic_xfs)
609 619
610/* Value is the smallest width of any character in any font on frame F. */ 620/* Value is the smallest width of any character in any font on frame F. */
611 621
@@ -992,6 +1002,11 @@ extern int defined_color P_ ((struct frame *, char *, XColor *, int));
992extern void x_set_border_pixel P_ ((struct frame *, int)); 1002extern void x_set_border_pixel P_ ((struct frame *, int));
993extern void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); 1003extern void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object));
994extern void x_implicitly_set_name P_ ((struct frame *, Lisp_Object, Lisp_Object)); 1004extern void x_implicitly_set_name P_ ((struct frame *, Lisp_Object, Lisp_Object));
1005extern void create_frame_xic P_ ((struct frame *));
1006extern void destroy_frame_xic P_ ((struct frame *));
1007extern void xic_set_preeditarea P_ ((struct window *, int, int));
1008extern void xic_set_statusarea P_ ((struct frame *));
1009extern void xic_set_xfontset P_ ((struct frame *, char *));
995extern int x_pixel_width P_ ((struct frame *)); 1010extern int x_pixel_width P_ ((struct frame *));
996extern int x_pixel_height P_ ((struct frame *)); 1011extern int x_pixel_height P_ ((struct frame *));
997extern int x_char_width P_ ((struct frame *)); 1012extern int x_char_width P_ ((struct frame *));