Mercurial > emacs
annotate lwlib/xlwmenuP.h @ 35926:d2997845573f
(hi-lock-mode): Toggling hi-lock-mode now affects all
buffers. When hi-lock turned on rather than only checking current
buffer for regexps, all buffers are checked. Moved activation of
font-lock to hi-lock-refontify. When font-lock turned off rather
than removing added highlighting just in current buffer, remove it
in all buffers. Changed edit menu text from "Automatic
Highlighting" to "Regexp Highlighting" Documentation for
highlighting phrases, minor documentation changes.
(hi-lock-set-file-patterns): Execute only if there are new or
existing file patterns.
(hi-lock-refontify): Assume font-lock-fontify-buffer will first
unfontify and, if a support mode is active, will not refontify the
whole buffer. If necessary, turn on font lock. (Removed
font-lock-unfontify and font-lock support-mode-specific calls,
such as lazy-lock-fontify-window.)
(hi-lock-find-patterns): Do not turn on hi-lock-mode even if
patterns are found. Not useful now since find-file-hook is removed
if hi-lock is off, but may be needed for per-buffer hi-lock
activation.
(hi-lock-face-phrase-buffer): New function. Also added related
menu item and keybinding.
(highlight-phrase): New alias, to hi-lock-face-phrase-buffer.
(hi-lock-process-phrase): New function.
(hi-lock-line-face-buffer): Doc fixes.
(hi-lock-face-buffer): Doc fixes.
(hi-lock-unface-buffer): Doc fixes.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 06 Feb 2001 15:43:37 +0000 |
parents | bb36becbd66b |
children | 762469b26903 |
rev | line source |
---|---|
7359 | 1 #ifndef _XlwMenuP_h |
2 #define _XlwMenuP_h | |
3 | |
4 #include "xlwmenu.h" | |
5 #include <X11/CoreP.h> | |
6 | |
7 /* Elements in the stack arrays. */ | |
8 typedef struct _window_state | |
9 { | |
10 Window window; | |
11 Position x; | |
12 Position y; | |
13 Dimension width; | |
14 Dimension height; | |
15 Dimension label_width; | |
25033
584c34c7cf53
(_window_state): Add button_width.
Gerd Moellmann <gerd@gnu.org>
parents:
7360
diff
changeset
|
16 |
584c34c7cf53
(_window_state): Add button_width.
Gerd Moellmann <gerd@gnu.org>
parents:
7360
diff
changeset
|
17 /* Width of toggle buttons or radio buttons. */ |
584c34c7cf53
(_window_state): Add button_width.
Gerd Moellmann <gerd@gnu.org>
parents:
7360
diff
changeset
|
18 Dimension button_width; |
7359 | 19 } window_state; |
20 | |
21 | |
22 /* New fields for the XlwMenu widget instance record */ | |
23 typedef struct _XlwMenu_part | |
24 { | |
25 /* slots set by the resources */ | |
26 XFontStruct* font; | |
7360 | 27 Pixel foreground; |
7359 | 28 Pixel button_foreground; |
29 Dimension margin; | |
30 Dimension horizontal_spacing; | |
31 Dimension vertical_spacing; | |
32 Dimension arrow_spacing; | |
33 Dimension shadow_thickness; | |
34 Pixel top_shadow_color; | |
35 Pixel bottom_shadow_color; | |
36 Pixmap top_shadow_pixmap; | |
37 Pixmap bottom_shadow_pixmap; | |
7360 | 38 Cursor cursor_shape; |
7359 | 39 XtCallbackList open; |
27340
1d84a7873d7c
(_XlwMenu_part): Add `highlight' callback list.
Gerd Moellmann <gerd@gnu.org>
parents:
25033
diff
changeset
|
40 XtCallbackList select, highlight; |
7359 | 41 widget_value* contents; |
42 int horizontal; | |
29699
bb36becbd66b
(_XlwMenu_part): Add free_top_shadow_color_p and
Gerd Moellmann <gerd@gnu.org>
parents:
27340
diff
changeset
|
43 |
bb36becbd66b
(_XlwMenu_part): Add free_top_shadow_color_p and
Gerd Moellmann <gerd@gnu.org>
parents:
27340
diff
changeset
|
44 /* True means top_shadow_color and/or bottom_shadow_color must be freed. */ |
bb36becbd66b
(_XlwMenu_part): Add free_top_shadow_color_p and
Gerd Moellmann <gerd@gnu.org>
parents:
27340
diff
changeset
|
45 unsigned free_top_shadow_color_p : 1; |
bb36becbd66b
(_XlwMenu_part): Add free_top_shadow_color_p and
Gerd Moellmann <gerd@gnu.org>
parents:
27340
diff
changeset
|
46 unsigned free_bottom_shadow_color_p : 1; |
7359 | 47 |
48 /* State of the XlwMenu */ | |
49 int old_depth; | |
50 widget_value** old_stack; | |
51 int old_stack_length; | |
52 | |
53 /* New state after the user moved */ | |
54 int new_depth; | |
55 widget_value** new_stack; | |
56 int new_stack_length; | |
57 | |
58 /* Window resources */ | |
59 window_state* windows; | |
60 int windows_length; | |
61 | |
62 /* Internal part, set by the XlwMenu */ | |
63 GC foreground_gc; | |
64 GC button_gc; | |
65 GC background_gc; | |
66 GC inactive_gc; | |
67 GC inactive_button_gc; | |
68 GC shadow_top_gc; | |
69 GC shadow_bottom_gc; | |
70 Cursor cursor; | |
71 Boolean popped_up; | |
72 Pixmap gray_pixmap; | |
73 } XlwMenuPart; | |
74 | |
75 /* Full instance record declaration */ | |
76 typedef struct _XlwMenuRec | |
77 { | |
78 CorePart core; | |
79 XlwMenuPart menu; | |
80 } XlwMenuRec; | |
81 | |
82 /* New fields for the XlwMenu widget class record */ | |
83 typedef struct | |
84 { | |
85 int dummy; | |
86 } XlwMenuClassPart; | |
87 | |
88 /* Full class record declaration. */ | |
89 typedef struct _XlwMenuClassRec | |
90 { | |
91 CoreClassPart core_class; | |
92 XlwMenuClassPart menu_class; | |
93 } XlwMenuClassRec; | |
94 | |
95 /* Class pointer. */ | |
96 extern XlwMenuClassRec xlwMenuClassRec; | |
97 | |
98 #endif /* _XlwMenuP_h */ |