Mercurial > emacs
annotate lwlib/xlwmenu.h @ 28231:076ed36c3101
Include fontset.h after dispextern.h.
(x_per_char_metric): Don't try FONT->default_char. Even if
pcm->width is zero, glyph bits may exist.
(x_encode_char): Always initialize char2b->byte1.
(x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
(x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
changed.
(x_append_glyph): Set glyph->glyph_not_available_p.
(x_produce_glyphs): Set it->glyph_not_available_p. Don't set
it->charset. Handle the case that per char metric is not
available. If it->multibyte_p is zero and it->c is a multibyte
character, convert it to a unibyte character.
(struct glyph_string): Delete member `charset'.
(x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
the case that per char metric is not available correctly.
(x_fill_glyph_string): Handle the case that the specific glyph is
not available correctly.
(BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
(BUILD_COMPOSITE_GLYPH_STRING): Likewise.
(x_new_font): Call FS_LOAD_FONT, not fs_load_font.
(x_new_fontset): Call fontset_ascii to get ASCII font name of the
fontset. Don't call FS_LOAD_FONT.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 21 Mar 2000 00:43:55 +0000 |
parents | 8b90339beb04 |
children | 6ed38ee607e9 |
rev | line source |
---|---|
5626 | 1 #ifndef _XlwMenu_h |
2 #define _XlwMenu_h | |
3 | |
4 /*********************************************************************** | |
5 * | |
6 * XlwMenu Widget | |
7 * | |
8 ***********************************************************************/ | |
9 | |
10 #include "lwlib.h" | |
11 | |
12 /* Resource names used by the XlwMenu widget */ | |
13 #define XtNbuttonForeground "buttonForeground" | |
14 #define XtCButtonForeground "ButtonForeground" | |
15 #define XtNmargin "margin" | |
16 #define XtNhorizontalSpacing "horizontalSpacing" | |
17 #define XtNverticalSpacing "verticalSpacing" | |
18 #define XtNarrowSpacing "arrowSpacing" | |
19 #define XtNmenu "menu" | |
20 #define XtCMenu "Menu" | |
21 #define XtNopen "open" | |
22 #define XtNselect "select" | |
27339
8b90339beb04
(XtNhighlightCallback): New define.
Gerd Moellmann <gerd@gnu.org>
parents:
8786
diff
changeset
|
23 #define XtNhighlightCallback "highlightCallback" |
5626 | 24 #define XtNmenuBorderWidth "menuBorderWidth" |
25 #define XtNhorizontal "horizontal" | |
26 #define XtCHorizontal "Horizontal" | |
27 #define XtNcursor "cursor" | |
28 #define XtNCursor "Cursor" | |
8786 | 29 #define XtNshowGrip "showGrip" |
30 #define XtCShowGrip "ShowGrip" | |
31 #define XtNresizeToPreferred "resizeToPreferred" | |
32 #define XtCResizeToPreferred "ResizeToPreferred" | |
33 #define XtNallowResize "allowResize" | |
34 #define XtCAllowResize "AllowResize" | |
5626 | 35 |
36 /* Motif-compatible resource names */ | |
37 #define XmNshadowThickness "shadowThickness" | |
38 #define XmCShadowThickness "ShadowThickness" | |
39 #define XmNtopShadowColor "topShadowColor" | |
40 #define XmCTopShadowColor "TopShadowColor" | |
41 #define XmNbottomShadowColor "bottomShadowColor" | |
42 #define XmCBottomShadowColor "BottomShadowColor" | |
43 #define XmNtopShadowPixmap "topShadowPixmap" | |
44 #define XmCTopShadowPixmap "TopShadowPixmap" | |
45 #define XmNbottomShadowPixmap "bottomShadowPixmap" | |
46 #define XmCBottomShadowPixmap "BottomShadowPixmap" | |
47 #define XmRHorizontalDimension "HorizontalDimension" | |
48 | |
49 typedef struct _XlwMenuRec *XlwMenuWidget; | |
50 typedef struct _XlwMenuClassRec *XlwMenuWidgetClass; | |
51 | |
52 extern WidgetClass xlwMenuWidgetClass; | |
53 | |
54 void | |
8786 | 55 pop_up_menu (); |
5626 | 56 |
57 #endif /* _XlwMenu_h */ |