|
Revision 4220, 3.3 kB
(checked in by miyoshi, 5 months ago)
|
Sync up with Emacs22.2.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
#ifndef _XlwMenuP_h |
|---|
| 24 |
#define _XlwMenuP_h |
|---|
| 25 |
|
|---|
| 26 |
#include "xlwmenu.h" |
|---|
| 27 |
#include <X11/CoreP.h> |
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
typedef struct _window_state |
|---|
| 31 |
{ |
|---|
| 32 |
Window window; |
|---|
| 33 |
Position x; |
|---|
| 34 |
Position y; |
|---|
| 35 |
Dimension width; |
|---|
| 36 |
Dimension height; |
|---|
| 37 |
Dimension label_width; |
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
Dimension button_width; |
|---|
| 41 |
} window_state; |
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
typedef struct _XlwMenu_part |
|---|
| 46 |
{ |
|---|
| 47 |
|
|---|
| 48 |
#ifdef HAVE_X_I18N |
|---|
| 49 |
XFontSet fontSet; |
|---|
| 50 |
XFontSetExtents *font_extents; |
|---|
| 51 |
#endif |
|---|
| 52 |
XFontStruct* font; |
|---|
| 53 |
Pixel foreground; |
|---|
| 54 |
Pixel disabled_foreground; |
|---|
| 55 |
Pixel button_foreground; |
|---|
| 56 |
Dimension margin; |
|---|
| 57 |
Dimension horizontal_spacing; |
|---|
| 58 |
Dimension vertical_spacing; |
|---|
| 59 |
Dimension arrow_spacing; |
|---|
| 60 |
Dimension shadow_thickness; |
|---|
| 61 |
Pixel top_shadow_color; |
|---|
| 62 |
Pixel bottom_shadow_color; |
|---|
| 63 |
Pixmap top_shadow_pixmap; |
|---|
| 64 |
Pixmap bottom_shadow_pixmap; |
|---|
| 65 |
Cursor cursor_shape; |
|---|
| 66 |
XtCallbackList open; |
|---|
| 67 |
XtCallbackList select, highlight; |
|---|
| 68 |
XtCallbackList enter, leave; |
|---|
| 69 |
widget_value* contents; |
|---|
| 70 |
int horizontal; |
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 |
unsigned free_top_shadow_color_p : 1; |
|---|
| 74 |
unsigned free_bottom_shadow_color_p : 1; |
|---|
| 75 |
|
|---|
| 76 |
|
|---|
| 77 |
int top_depth; |
|---|
| 78 |
int old_depth; |
|---|
| 79 |
widget_value** old_stack; |
|---|
| 80 |
int old_stack_length; |
|---|
| 81 |
widget_value* inside_entry; |
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 |
int new_depth; |
|---|
| 85 |
widget_value** new_stack; |
|---|
| 86 |
int new_stack_length; |
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 |
window_state* windows; |
|---|
| 90 |
int windows_length; |
|---|
| 91 |
|
|---|
| 92 |
|
|---|
| 93 |
GC foreground_gc; |
|---|
| 94 |
GC button_gc; |
|---|
| 95 |
GC background_gc; |
|---|
| 96 |
GC disabled_gc; |
|---|
| 97 |
GC inactive_button_gc; |
|---|
| 98 |
GC shadow_top_gc; |
|---|
| 99 |
GC shadow_bottom_gc; |
|---|
| 100 |
Cursor cursor; |
|---|
| 101 |
Boolean popped_up; |
|---|
| 102 |
Pixmap gray_pixmap; |
|---|
| 103 |
} XlwMenuPart; |
|---|
| 104 |
|
|---|
| 105 |
|
|---|
| 106 |
typedef struct _XlwMenuRec |
|---|
| 107 |
{ |
|---|
| 108 |
CorePart core; |
|---|
| 109 |
XlwMenuPart menu; |
|---|
| 110 |
} XlwMenuRec; |
|---|
| 111 |
|
|---|
| 112 |
|
|---|
| 113 |
typedef struct |
|---|
| 114 |
{ |
|---|
| 115 |
int dummy; |
|---|
| 116 |
} XlwMenuClassPart; |
|---|
| 117 |
|
|---|
| 118 |
|
|---|
| 119 |
typedef struct _XlwMenuClassRec |
|---|
| 120 |
{ |
|---|
| 121 |
CoreClassPart core_class; |
|---|
| 122 |
XlwMenuClassPart menu_class; |
|---|
| 123 |
} XlwMenuClassRec; |
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 |
extern XlwMenuClassRec xlwMenuClassRec; |
|---|
| 127 |
|
|---|
| 128 |
#endif |
|---|
| 129 |
|
|---|
| 130 |
|
|---|
| 131 |
|
|---|